TLDR: MGAA (Multi-Granular Adaptive Allocation) is a novel method for compressing large language models (LLMs) using low-rank approximation. It adaptively allocates compression ratios both between different sublayers and within individual sublayers of the model. By leveraging input-output similarity for sublayer importance and energy distribution for weight matrices, MGAA achieves superior performance, is computationally efficient, task-agnostic, and can be integrated with existing compression techniques, including for multimodal LLMs.
Large Language Models (LLMs) have transformed how we interact with technology, achieving remarkable feats in natural language processing. However, their immense size, often involving billions of parameters, presents a significant challenge for real-world deployment, especially on devices with limited computational resources. To address this, model compression has become a crucial area of research.
The Challenge of LLM Compression
Current model compression techniques generally fall into four categories: quantization (reducing numerical precision), pruning (eliminating redundant parameters), knowledge distillation (transferring knowledge to smaller models), and low-rank approximation (decomposing large weight matrices into smaller, lower-rank ones). Among these, low-rank approximation stands out for its strong theoretical foundation and ability to reduce parameters significantly.
A common limitation in most low-rank approximation methods is the application of a uniform compression ratio across all parts of the model. This approach overlooks the fact that different layers and weight matrices within an LLM contribute differently to its overall performance. Some parts are more critical than others, and compressing them uniformly can lead to a noticeable drop in model quality. While some recent methods have tried to use complex search strategies to find optimal compression ratios, these are often computationally expensive and lack the ability to generalize across different LLMs.
Introducing MGAA: A Smarter Compression Strategy
To overcome these limitations, researchers have proposed a novel method called Multi-Granular Adaptive Allocation (MGAA). This innovative approach adaptively allocates compression parameters at two distinct levels: between different sublayers of the model and within each sublayer. Crucially, MGAA achieves this without needing extensive, task-specific evaluations during the compression process.
MGAA operates through two main components:
- Sublayer-Wise Allocation: This component assigns compression ratios to different sublayers based on the cosine similarity between their inputs and outputs. A lower cosine similarity indicates that a sublayer performs more substantial feature transformations, suggesting it’s more important. By understanding this importance, MGAA can apply a more tailored compression, preserving critical components while compressing less important ones more aggressively.
- Energy-Balanced Matrix Allocation: Within each sublayer, there are multiple weight matrices. These matrices have different ‘energy’ distributions, which reflect their contribution to the model’s information. MGAA allocates different compression ratios to these individual weight matrices, ensuring that each matrix retains a consistent proportion of its total energy. This strategy is based on the observation that maintaining a consistent energy retention ratio across matrices helps preserve model performance.
Key Advantages of MGAA
MGAA offers several significant advantages over existing compression methods:
- Computational Efficiency: Unlike methods that require many iterative adjustments and evaluations, MGAA only needs two forward passes using calibration data. This drastically reduces compression time from hours to just minutes.
- Strong Generalization: By using task-agnostic calibration data, MGAA avoids overfitting to specific downstream tasks. This means the compressed model maintains its ability to perform well across a wide range of tasks, including zero-shot learning scenarios where it encounters unseen tasks.
- Plug-and-Play Compatibility: MGAA is designed to be a versatile module that can be seamlessly integrated with various existing low-rank approximation techniques. This enhances the performance of these methods, demonstrating MGAA’s broad applicability.
Demonstrated Performance and Scalability
Comprehensive evaluations of MGAA across multiple LLM architectures, including LLaMA1, Vicuna, LLaMA3, and Mistral, and various benchmark datasets, have shown its superior performance. MGAA consistently achieves better language modeling (lower perplexity) and common sense reasoning (higher accuracy) compared to other methods, especially at higher compression ratios.
The method also proves its scalability on larger models like LLaMA1-13B, maintaining significant advantages even with aggressive compression (up to 70%). Furthermore, MGAA’s effectiveness extends to multimodal models like LLaVA-1.6, where it significantly improves performance on various multimodal benchmarks, demonstrating its adaptability to complex AI systems.
The research paper detailing this method can be found here.
Also Read:
- OrthoRank: A New Approach to Efficient LLM Inference Through Token Selection
- LoSiA: Optimizing LLM Fine-Tuning with Dynamic Subnet Localization
Future Implications
The development of MGAA marks a significant step forward in efficient LLM compression. Its adaptive, multi-granular approach, combined with its computational efficiency and broad compatibility, paves the way for deploying powerful LLMs in more resource-constrained environments and for a wider range of applications. This work provides valuable insights into adaptive compression strategies, contributing to the ongoing effort to make large AI models more accessible and practical.


