TL;DR
Researchers have developed a "data-free" method to compress Large Language Models (LLMs) by treating their weight matrices as noisy, low-rank structures. By performing Joint Rank-k Approximation—compressing related weight matrices (like Query and Key) together rather than in isolation—they achieved an 80% reduction in parameters while retaining over 93% of the original performance, all without needing a single byte of calibration data.
What Problem Does This Paper Address?
As LLMs scale to hundreds of billions of parameters, they hit a hard ceiling: GPU memory. While techniques like pruning and quantization help, they usually require "calibration data"—a representative corpus used to fine-tune the model after it's been mangled by compression. This creates two problems:
- Data Dependency: You need high-quality data and extra compute for the calibration phase.
- Generalization Bias: Fine-tuning on a specific calibration set can make the model "forget" how to handle diverse, out-of-distribution tasks, effectively trading general intelligence for specialized performance.
The authors ask: Can we compress these models using only the mathematical properties of the weights themselves, without any extra data?
Methods
The core of their approach is Joint Rank-k Approximation.
Standard matrix approximation uses Singular Value Decomposition (SVD) to break a weight matrix $W$ into three parts ($U \Lambda V^T$) and keeps only the most important "singular values." Most prior work does this for each matrix individually.
However, LLM architectures like Transformers have parallel structures. In the Feed-Forward (FFN) module, the gate and up projections process the same input. In the Attention module, the query ($W_Q$) and key ($W_K$) matrices also share an input space.
The authors propose concatenating these related matrices into one large "joint" matrix before applying SVD. This allows the compression algorithm to:
- Capture shared relationships: The joint SVD perceives more information about how the matrices interact with the input.
- Reduce overhead: SVD introduces extra parameters to represent the decomposed matrices. Joining them reduces the relative "cost" of these extra parameters, allowing for a higher compression rate.
Datasets
The researchers evaluated their method using the OpenCompass benchmark, focusing on zero-shot classification across several diverse datasets:
- Common Sense Reasoning: PIQA, WinoGrande, HellaSwag.
- Reading Comprehension: BoolQ, OpenbookQA.
- Science Question Answering: ARC-easy, ARC-challenge.
They tested their method on popular open-source models including LLaMA-7B, LLaMA2-7B, and Mistral-7B.
Key Insights and Ideas
- The Denoise Hypothesis: The authors argue that LLM weights aren't just low-rank; they are noisy. Because models are trained via Stochastic Gradient Descent (SGD) to local optima, the weight matrices contain "noise" in their low-intensity components. Truncating these via low-rank approximation acts as a filter, potentially improving performance on some tasks by removing this training noise.
- Joint is Better than Separate: Experiments showed that joining $W_Q$ and $W_K$ (Attention) or $W_{gate}$ and $W_{up}$ (FFN) consistently outperformed compressing them separately at the same parameter count.
- Layer Sensitivity: Not all layers are equal. Compressing layers closer to the input (bottom layers) hurts performance much more than compressing layers near the output. This suggests that early layers extract fundamental features that are less redundant than the high-level concepts handled by later layers.
- Watermark Purification: To prove their denoising theory, they "watermarked" a model by fine-tuning it to memorize a specific sentence (a form of intentional overfitting/noise). They found that their compression method could actually "purify" the model, making it forget the overfitted watermark while maintaining general performance.
Key Results
- High Compression, Low Loss: At a 20% "prune ratio" (meaning 80% of parameters were removed), the compressed LLaMA-7B model retained 93.43% of its original average performance.
- Outperforming Competitors: In a strictly data-free environment, this method beat other popular compression techniques like LLM-Pruner and LORAPrune, which showed much steeper performance drops when denied calibration data.
- Robustness: The method proved effective across different model families (LLaMA and Mistral), suggesting the low-rank, noisy nature of weights is a fundamental property of the Transformer architecture itself.
Limitations and Future Work
- Attention Value Matrix ($W_V$): The authors found that they couldn't include the Value matrix ($W_V$) in the joint approximation. The non-linear
softmaxoperation in attention breaks the mathematical affinity between $W_V$ and the $W_Q/W_K$ pair. - Extreme Compression: While 80% pruning is impressive, the performance drop becomes significant beyond that point.
- Hardware Acceleration: The paper focuses on parameter reduction; future work is needed to determine how these decomposed matrices can be best optimized for specific hardware kernels to realize actual wall-clock speedups.
For researchers looking to deploy LLMs on edge devices or memory-constrained servers without the luxury of massive calibration datasets, this "mathematical surgery" offers a promising, robust path forward.
Summary updated