Large Language Model Compression via the Nested Activation-Aware Decomposition
Jun Lu, Tianyi Xu, Bill Ding, David Li, Yu Kang
TL;DR
This work tackles practical post-training compression of large language models by introducing a nested activation-aware decomposition (NSVD) for low-rank weight compression. It combines truncation-aware data whitening with a two-stage, shared-rank decomposition (ranks $k_1$ and $k_2$ with $k_1+k_2=k$) to reduce activation-induced bias, supported by activation-aware theory and Eckart-Young-Mirsky principles. NSVD variants (NSVD-I/NSVD-II) and flexible NID-I/NID-II options enable robust, training-free compression that matches or exceeds prior SVD-based methods (ASVD-0, ASVD-I) across eight datasets, six models, and three LLM families, particularly at 30–50% compression and in multilingual multitask settings. The results demonstrate significant perplexity reductions with comparable computational cost, highlighting the method’s practical value for deploying compressed LLMs in diverse languages and tasks.
Abstract
In this paper, we tackle the critical challenge of compressing large language models (LLMs) to facilitate their practical deployment and broader adoption. We introduce a novel post-training compression paradigm that focuses on low-rank decomposition of LLM weights. Our analysis identifies two main challenges in this task: the variability in LLM activation distributions and handling unseen activations from different datasets and models. To address these challenges, we propose a nested activation-aware framework (NSVD) for LLMs, a training-free approach designed to enhance the accuracy of low-rank decompositions by managing activation outliers through transforming the weight matrix based on activation distribution and the original weight matrix. This method allows for the absorption of outliers into the transformed weight matrix, improving decomposition accuracy. Our comprehensive evaluation across eight datasets and six models from three distinct LLM families demonstrates the superiority of NSVD over current state-of-the-art methods, especially at medium to large compression ratios or in multilingual and multitask settings.
