TL;DR
AdaSVD introduces an adaptive low-rank compression framework designed to make Large Multimodal Models (LMMs) small enough for resource-constrained devices. By dynamically assigning layer-specific compression ratios and iteratively correcting truncation errors using a stable pseudoinverse update, AdaSVD drastically reduces memory overhead while retaining model accuracy far better than existing SVD techniques at high compression rates.
What Problem Does This Paper Address?
Large Multimodal Models (LMMs) and Large Language Models (LLMs) boast incredible capabilities, but their massive parameter counts make them memory-bound and incredibly difficult to deploy on edge devices like smartphones.
Singular Value Decomposition (SVD) is a popular, hardware-agnostic method to compress these models. It breaks down large weight matrices into smaller, low-rank components, reducing memory without requiring specialized hardware or custom compute kernels (unlike quantization).
However, standard SVD approaches suffer from two major flaws:
- Uniform Compression: They apply the exact same compression ratio to every single layer, ignoring the fact that some layers contribute far more to the model's performance than others.
- Truncation Errors: Dropping the smallest singular values introduces significant errors. Existing methods fail to effectively adjust the remaining weights to compensate for this loss, causing performance to plummet at high compression ratios (e.g., compressing more than 60% of the parameters).
Methods
AdaSVD tackles these challenges with a two-pronged adaptive strategy: adaCR and adaComp.
1. Adaptive Compression Ratio (adaCR)
Instead of treating all layers equally, adaCR quantifies the importance of each layer by measuring the cosine similarity between its input and output activations using a small set of calibration data. Layers that drastically alter activations are deemed highly important and are compressed conservatively, while less critical layers are compressed more aggressively.
2. Adaptive Compensation (adaComp)
When you truncate a matrix using SVD, the remaining components ($U$ and $V^\top$) are no longer optimal for the remaining data. adaComp iteratively updates $U$ and $V^\top$ in an alternating fashion to minimize the reconstruction error of the layer's activations.
To prevent the numerical instability and wild error fluctuations common with standard matrix inversion techniques, the authors reformulate the optimization as a Least Squares Estimation (LSE) problem and solve it using the Moore-Penrose pseudoinverse. Furthermore, they introduce a Stack-of-Batch (SOB) strategy, which shuffles and averages calibration samples into memory-efficient "buckets," allowing the algorithm to utilize more calibration data without exceeding GPU memory limits.
Datasets
The authors evaluated AdaSVD across a diverse suite of benchmarks:
- Language Modeling (Perplexity): WikiText-2, PTB, and C4.
- Zero-Shot Common-Sense Reasoning (Accuracy): WinoGrande, HellaSwag, PIQA, ARC-e, and MMLU.
- Vision-Language Tasks: COCO dataset (evaluated using the LLaVA-7B architecture).
Key Insights and Ideas
- The "Bowl-Shaped" Importance Curve: Across multiple model families (including LLaMA and OPT), layer importance is highly non-uniform. The first layer is consistently the most critical, and the overall importance across layers typically forms a bowl shape—meaning the earliest and latest layers require the most protection during compression.
- Stability via Pseudoinverse: Naive optimization updates for SVD compensation fluctuate wildly and can ruin model weights. Switching to a Moore-Penrose pseudoinverse formulation provides a smooth, stable, and monotonic reduction in reconstruction error.
Key Results
AdaSVD demonstrates a massive performance advantage over vanilla SVD and state-of-the-art baselines like SVD-LLM and ASVD, particularly at aggressive compression levels.
- Perplexity Maintenance: At a 60% compression ratio on the WikiText-2 dataset using LLaMA2-7B, vanilla SVD fails completely (perplexity $>65,000$). SVD-LLM scores a perplexity of 89.90, while AdaSVD achieves a superior perplexity of 50.33.
- Generalizability: The method delivers consistent improvements across multiple model families, including OPT-6.7B, LLaMA2-7B, Mistral-7B, and Vicuna-7B.
- Complementary to Quantization: Because SVD is orthogonal to quantization, the authors combined AdaSVD with 4-bit GPTQ quantization. The combined
AdaSVD + GPTQ-INT4approach consistently outperformedSVD-LLM + GPTQ-INT4across all testing thresholds.
Limitations and Future Work
The authors noted an interesting trade-off regarding the number of optimization iterations in adaComp. At lower compression ratios (e.g., 40%), running too many iterations can actually cause the model to overfit to the small calibration dataset, leading to a slight drop in performance. Conversely, at high compression ratios (70-80%), more iterations consistently help.
Future work will likely focus on dynamically balancing the iteration count based on the target compression scale to prevent overfitting automatically.
Summary updated