Importance-Aware Activation Space Reconstruction
Md Mokarram Chowdhury, Daniel Agyei Asante, Ernie Chang, Yang Li
TL;DR
This work tackles the challenge of deploying large language models in resource-limited environments by reframing compression from weights to activations with an importance-aware objective. The authors derive IMPACT, a principled framework whose core insight is that the optimal activation reconstruction directions are the top eigenvectors of an importance-weighted activation covariance matrix $\mathbf{C} = \mathrm{Cov}(\mathbf{y}) \odot \mathbf{M}$, where $\mathbf{M}$ encodes gradient-driven importance. By transforming activations, bounding the objective, and solving a tractable eigenproblem, IMPACT yields a closed-form, two-layer compressed representation $\hat{\mathbf{y}}$ that minimizes performance degradation. Empirically, IMPACT achieves up to 48.6% greater size reduction while maintaining accuracy across mathematical reasoning and code generation tasks on Llama 2 and CodeLlama models, and it can synergize with quantization to further improve efficiency and throughput. These results demonstrate a practical, scalable path to deploying capable transformers in constrained settings without sacrificing performance.
Abstract
Large language models (LLMs) achieve strong performance across many domains but are difficult to deploy in resource-constrained settings due to their size. Low-rank weight matrix compression is a popular strategy for reducing model size, typically by minimizing weight reconstruction error under the assumption that weights are low-rank. However, this assumption often does not hold in LLMs. Instead, LLM activations exhibit stronger low-rank structure-prompting a shift toward minimizing activation reconstruction error. We show that this shift alone is insufficient: activation dimensions contribute unequally to model performance, and uniform reconstruction can harm performance. We propose IMPACT, a principled framework for importance-aware activation reconstruction that links model compression decisions to their impact on model behavior. IMPACT formulates an optimization problem that considers both activation structure and gradient sensitivity, and derives a closed-form solution where the optimal reconstruction bases are the eigenvectors of an importance-weighted activation covariance matrix. This enables low-rank approximations explicitly optimized to preserve accuracy. Experiments across diverse models and tasks show that IMPACT achieves up to 48.6% greater model size reduction with accuracy comparable to state-of-the-art baselines.
