arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.00899stat.MLcs.LG
收藏

HASSLE-free:面向LLM的稀疏加低秩矩阵分解统一框架

HASSLE-free: A unified Framework for Sparse plus Low-Rank Matrix Decomposition for LLMs

MIT Operations Research Center(麻省理工学院运筹学中心);Google Research(谷歌研究院)

Mehdi Makni, Kayhan Behdin, Zheng Xu, Natalia Ponomareva, Rahul Mazumder

AI总结:

本文提出名为HASSLE-free的统一框架,通过最小化局部逐层重建误差目标,实现基础模型稠密权重的稀疏加低秩矩阵分解,在LLM评估基准上显著优于现有方法。

摘要:

大型基础模型令人印象深刻的能力是以消耗大量计算资源为代价的。压缩这些预训练模型具有实际意义,因为它可以通过降低与推理相关的成本,使广大机器学习社区能够部署这些模型。一种有前景的压缩方案是将基础模型的稠密权重分解为稀疏矩阵与低秩矩阵之和。在本文中,我们设计了一个名为HASSLE-free的统一框架,用于基础模型的(半结构化)稀疏加低秩矩阵分解。我们的框架为这种分解引入了局部逐层重建误差目标,我们证明了先前的工作求解的是该优化问题的松弛形式;并且我们提供了高效且可扩展的方法来最小化所引入的精确优化问题。在所引入的目标和广泛的LLM评估基准方面,HASSLE-free大幅优于最先进的方法。对于具有2:4稀疏分量加上64秩分量分解的Llama3-8B模型(近期工作表明该压缩方案在GPU上能实现重要的推理加速),与现有方法相比,HASSLE-free将WikiText-2数据集的测试困惑度降低了12%,并将八个流行的零样本任务平均值(与稠密模型相比)的差距缩小了15%。

英文摘要:

The impressive capabilities of large foundation models come at a cost of substantial computing resources to serve them. Compressing these pre-trained models is of practical interest as it can democratize deploying them to the machine learning community at large by lowering the costs associated with inference. A promising compression scheme is to decompose foundation models' dense weights into a sum of sparse plus low-rank matrices. In this paper, we design a unified framework coined HASSLE-free for (semi-structured) sparse plus low-rank matrix decomposition of foundation models. Our framework introduces the local layer-wise reconstruction error objective for this decomposition, we demonstrate that prior work solves a relaxation of this optimization problem; and we provide efficient and scalable methods to minimize the exact introduced optimization problem. HASSLE-free substantially outperforms state-of-the-art methods in terms of the introduced objective and a wide range of LLM evaluation benchmarks. For the Llama3-8B model with a 2:4 sparsity component plus a 64-rank component decomposition, a compression scheme for which recent work shows important inference acceleration on GPUs, HASSLE-free reduces the test perplexity by 12% for the WikiText-2 dataset and reduces the gap (compared to the dense model) of the average of eight popular zero-shot tasks by 15% compared to existing methods.

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

↑