TL;DR
Large Language Models (LLMs) are notoriously difficult to compress without losing factual knowledge. This paper introduces Fisher-Aligned Subspace Compression (FASC), a novel method that uses activation-gradient coupling to identify and preserve critical dimensions for factual recall, outperforming standard variance-based methods. FASC enables significant compression while maintaining factual accuracy, making LLMs more deployable on resource-constrained hardware.
What Problem Does This Paper Address?
Deploying massive Large Language Models (LLMs) on everyday devices is a major challenge due to their enormous size and computational demands. Compression techniques are essential, but traditional methods like Singular Value Decomposition (SVD) often fail to preserve factual knowledge. SVD relies on preserving high-variance dimensions in model activations, assuming they are the most important. However, research suggests that factual knowledge, unlike syntactic information, is often encoded in lower-variance but highly sensitive dimensions. This means SVD can inadvertently discard crucial information, leading to a significant drop in factual recall. This paper aims to bridge this gap by developing a compression method that specifically targets and preserves factual knowledge.
Methods
The core of this paper is the Fisher-Aligned Subspace Compression (FASC) framework. Unlike standard SVD, which focuses on activation variance, FASC directly models the coupling between activations and their gradients with respect to the loss function. This is achieved by finding a projection matrix that minimizes a second-order surrogate of the loss function.
Key components of FASC include:
- Fisher Information Matrix (FIM) Approximation: FASC uses the empirical FIM (outer product of gradients) as a proxy for the Hessian matrix. This captures the local curvature of the loss landscape, highlighting directions where the loss is most sensitive.
- Dependence Violation Score ($\rho$): A novel diagnostic metric is introduced to quantify the activation-gradient coupling within each layer. Layers with high $\rho$ values are identified as critical for factual knowledge and are prioritized for FASC.
- Scalable Implementation: For wide layers, FASC employs a Randomized Cross-Covariance Sketch to reduce dimensionality and computational cost. A dynamic sketch sizing strategy, guided by the $\rho$ score, further optimizes efficiency.
Datasets
The paper uses several datasets for calibration and evaluation:
- Calibration Data: C4 dataset (4096 samples) is used for computing compression statistics. WikiText-2 and instruction-tuning data (Alpaca format) are also used to validate subspace stability across different distributions.
- Evaluation Benchmarks:
- Knowledge Retrieval: MMLU (massive multitask language understanding), LAMA (factual cloze-tests), Natural Questions (open-domain QA), BLIMP (linguistic minimal pairs), mLAMA (multilingual factual recall).
- Reasoning: BBH (complex reasoning chains).
- General Language Understanding: Benchmarks from Wang et al. (2018), Clark et al. (2020), Wang et al. (2019).
- Language Modeling: WikiText-2 perplexity.
Key Insights and Ideas
- Factual knowledge resides in low-variance, high-gradient-sensitivity dimensions: This is the central hypothesis, contrasting with SVD's focus on high variance. FASC's success validates this.
- SVD acts as a "syntactic filter": It preserves general language structure but discards specific factual associations.
- The $\rho$ score is a powerful diagnostic: It effectively identifies layers critical for factual knowledge, allowing for targeted application of FASC and enabling a hybrid compression strategy.
- Middle-to-late MLP layers are crucial for factual recall: Layer-wise sensitivity analysis reveals these layers are most impacted by compression and are where FASC provides the most benefit.
- FASC enables significant model capacity doubling: A compressed 7B model using FASC can match the factual recall of an uncompressed 13B model.
Key Results
- Improved Accuracy: FASC preserves 6-8% more accuracy on knowledge-intensive benchmarks (MMLU, LAMA) compared to variance-based methods at 50% rank reduction.
- Factual Recall Matching: A 7B model compressed with FASC achieves factual recall comparable to a 13B uncompressed model.
- Efficiency: FASC maintains similar inference throughput and latency to SVD, with only a marginal increase due to the additional gradient computations.
- Diagnostic Power: The $\rho$ score strongly correlates with FASC performance gain, validating its utility in identifying critical layers.
- Robustness: FASC subspaces are consistent across different calibration distributions, and the $\rho$ metric is robust to calibration size and model families.
Limitations and Future Work
- Computational Cost: While FASC is made practical with dynamic sketching, it is still more computationally expensive than standard SVD, limiting its applicability in extremely resource-constrained scenarios.
- Calibration Data Dependency: FASC relies on a representative calibration dataset, which may not always be available.
- MoE Models: Applying FASC to individual experts in Mixture-of-Experts (MoE) models requires careful consideration of routing dynamics. Future work could explore expert-level compression strategies that account for these patterns.
- Further Evaluation: The authors suggest evaluating FASC on additional model families, specialized domains (e.g., code generation, multilingual tasks), and tasks to strengthen generalizability claims.
- Hybrid Compression: The paper highlights the potential for a hybrid approach, using FASC on critical layers and SVD on others, balancing performance and efficiency.
- Quantization Integration: FASC can be combined with quantization techniques in a two-stage pipeline, which is left for future work.
Summary updated