arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.05437cs.LG
收藏

ESPACE:用于模型压缩的激活值降维

ESPACE: Dimensionality Reduction of Activations for Model Compression

NVIDIA Research(英伟达研究院)

Charbel Sakr, Brucek Khailany

AI总结:

该研究提出以激活值降维为核心的LLM压缩技术ESPACE,理论上构建了最优精度投影矩阵,实验中在多模型上实现低精度损失的高压缩率,甚至低压缩率下可超越基线,还能降低推理延迟,推动张量分解压缩技术发展。

摘要:

我们提出了ESPACE,一种基于激活值降维的大语言模型(LLM)压缩技术。与以往以权重为中心的张量分解工作不同,ESPACE将激活值投影到一组预先校准的主成分上。该方法以激活为中心的特性使得在重训练LLM时不会损失表达能力;而在推理阶段,权重分解可作为矩阵乘法结合律的副产品得到。我们给出了关于构建具有最优计算精度的投影矩阵的理论结果。实验中我们发现,ESPACE可实现GPT3、Llama2和Nemotron4模型50%的压缩率,且精度下降很小,GPT3-22B上的困惑度仅增加0.18。在20%到40%的较低压缩率下,ESPACE使GPT3模型的表现优于基线,GPT3-8B的困惑度最多可降低0.38。ESPACE还能在现有硬件上减少通用矩阵乘法(GEMM)执行时间和预填充推理延迟。通过矩阵分解压缩Llama2-7B的相关工作对比表明,ESPACE是推动LLM张量分解压缩技术达到当前最优水平的第一步。

英文摘要:

We propose ESPACE, an LLM compression technique based on dimensionality reduction of activations. Unlike prior works on weight-centric tensor decomposition, ESPACE projects activations onto a pre-calibrated set of principal components. The activation-centrality of the approach enables retraining LLMs with no loss of expressivity; while at inference, weight decomposition is obtained as a byproduct of matrix multiplication associativity. Theoretical results on the construction of projection matrices with optimal computational accuracy are provided. Experimentally, we find ESPACE enables 50% compression of GPT3, Llama2, and Nemotron4 models with small accuracy degradation, as low as a 0.18 perplexity increase on GPT3-22B. At lower compression rates of 20% to 40%, ESPACE drives GPT3 models to outperforming their baseline, by up to a 0.38 decrease in perplexity for GPT3-8B. ESPACE also reduces GEMM execution time and prefill inference latency on existing hardware. Comparison with related works on compressing Llama2-7B via matrix factorization shows that ESPACE is a first step in advancing the state-of-the-art in tensor decomposition compression of LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑