不需微调即可压缩大模型,通过激活稀疏性和低秩分解提升效率。
SoLA: Leveraging Soft Activation Sparsity and Low-Rank Decomposition for Large Language Model Compression

- 利用激活稀疏性与低秩分解,训练免费压缩大模型。
- 70B模型压缩30%后,困惑度降至4.44,下游任务准确率提升10%。
- 适合部署资源有限但需高性能的场景,如边缘设备。
大语言模型在各类任务中表现卓越,但百亿级参数带来部署挑战。现有方法或依赖特殊硬件,或需昂贵微调以保持性能。为实现高效低成本压缩,我们提出无需训练的压缩方法SoLA,结合软激活稀疏性与低秩分解。基于对现代大模型前馈网络激活模式的分析,SoLA识别并保留对推理贡献显著的少数组件,其余部分通过低秩分解压缩,并采用自适应组件级低秩分配策略缓解分解损失。在LLaMA-2-7B/13B/70B和Mistral-7B模型上进行广泛实验,结果表明,无须微调,SoLA在语言建模与下游任务中均取得显著提升。例如,在LLaMA-2-70B模型上实现30%压缩率时,困惑度从6.95降至4.44,下游任务准确率提升10%。
原文摘要 · Abstract (English)
Large language models (LLMs) have demonstrated impressive capabilities across various tasks, but the billion-scale parameters pose deployment challenges. Although existing methods attempt to reduce the scale of LLMs, they require either special hardware support or expensive post-training to maintain model quality. To facilitate efficient and affordable model slimming, we propose a novel training-free compression method for LLMs, named "SoLA", which leverages \textbf{So}ft activation sparsity and \textbf{L}ow-r\textbf{A}nk decomposition. SoLA can identify and retain a minority of components significantly contributing to inference, while compressing the majority through low-rank decomposition, based on our analysis of the activation pattern in the feed-forward network (FFN) of modern LLMs. To alleviate the decomposition loss, SoLA is equipped with an adaptive component-wise low-rank allocation strategy to assign appropriate truncation positions for different weight matrices. We conduct extensive experiments on LLaMA-2-7B/13B/70B and Mistral-7B models across a variety of benchmarks. SoLA exhibits remarkable improvement in both language modeling and downstream task accuracy without post-training. For example, with a 30\% compression rate on the LLaMA-2-70B model, SoLA surpasses the state-of-the-art method by reducing perplexity from 6.95 to 4.44 and enhancing downstream task accuracy by 10\%.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。