基础模型在资源受限环境中的采用仍然具有挑战性,因为其规模庞大且推理成本高昂。克服这些限制的一种有前景的方法是训练后压缩,其目标是在模型规模缩减与性能下降之间取得平衡。本工作提出了通过迭代剪枝实现任意压缩(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.
Coding for Computation: Efficient Compression of Neural Networks for Reconfigurable Hardware
Institute for Digital Communications, Friedrich-Alexander-Universität (FAU), Erlangen, Germany(弗里德里希-亚历山大-埃朗根-纽伦堡大学数字通信研究所);Communications Engineering Lab, Karlsruhe Institute of Technology (KIT), Karlsruhe, Germany(卡尔斯鲁厄理工学院通信工程实验室);Electrical and Computer Engineering Department, University of Toronto, Canada(多伦多大学电气与计算机工程系)
EdgeCompress: Coupling Multidimensional Model Compression and Dynamic Inference for EdgeAI
School of Computer Science and Engineering, Nanyang Technological University(南洋理工大学计算机科学与工程学院);HP-NTU Digital Manufacturing Corporate Lab, Nanyang Technological University(惠普-南洋理工大学数字制造联合实验室);Department of Computer Science, Norwegian University of Science and Technology(挪威科技大学计算机科学系);HP Inc.(惠普公司)