arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.01717cs.LG
收藏

选择你的模型规模:无需重新计算即可对大型语言模型进行任意压缩

Choose Your Model Size: Any Compression of Large Language Models Without Re-Computation

Merantix Momentum(梅兰特克斯动力)

Martin Genzel, Patrick Putzky, Pengfei Zhao, Sebastian Schulze, Mattes Mollenhauer, Robert Seidel, Stefan Dietzel, Thomas Wollmann

AI总结:

本文提出ACIP方法,通过SVD重参数化与迭代剪枝,在单次训练中建立全局分数图,实现无需重新计算即可将大型语言模型压缩到任意目标规模,并取得领先效果。

摘要:

基础模型在资源受限环境中的采用仍然具有挑战性,因为其规模庞大且推理成本高昂。克服这些限制的一种有前景的方法是训练后压缩,其目标是在模型规模缩减与性能下降之间取得平衡。本工作提出了通过迭代剪枝实现任意压缩(Any Compression via Iterative Pruning,ACIP),这是一种新颖的算法方法,可从单次随机梯度下降运行中确定压缩-性能权衡。为了实现参数效率,我们对线性层使用SVD重参数化,并通过稀疏诱导惩罚迭代地剪枝其奇异值。重要的是,参数的剪枝顺序被用来推导出一个全局分数图,从而无需重新计算即可将模型压缩到任意目标规模。我们在大量开源权重的大型语言模型和下游任务上评估了ACIP,与现有的基于分解的压缩方法相比,展示了最先进的结果。我们还表明,ACIP能够无缝地补充常见的基于量化的压缩技术。

英文摘要:

The adoption of Foundation Models in resource-constrained environments remains challenging due to their large size and inference costs. A promising way to overcome these limitations is post-training compression, which aims to balance reduced model size against performance degradation. This work presents Any Compression via Iterative Pruning (ACIP), a novel algorithmic approach to determine a compression-performance trade-off from a single stochastic gradient descent run. To achieve parameter efficiency, we use an SVD-reparametrization of linear layers and iteratively prune their singular values with a sparsity-inducing penalty. Importantly, the pruning order of the parameters is used to derive a global score map that allows compressing a model to any target size without re-computation. We evaluate ACIP on a large selection of open-weight LLMs and downstream tasks, demonstrating state-of-the-art results compared to existing factorization-based compression methods. We also show that ACIP seamlessly complements common quantization-based compression techniques.

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

↑