3BASiL: 一种用于大型语言模型稀疏加低秩压缩的算法框架
3BASiL: An Algorithmic Framework for Sparse plus Low-Rank Compression of LLMs
AI总结:
3BASiL-TM提出了一种高效的单次后训练方法,用于LLMs的稀疏加低秩分解,显著提升了压缩效果和效率。
摘要:
稀疏加低秩(S+LR)分解大型语言模型(LLMs)已成为模型压缩中一个有前途的方向,旨在将预训练模型权重分解为稀疏和低秩矩阵之和(W≈S+LR)。尽管近年来取得了进展,但现有方法往往在性能上比密集模型有显著下降。在本文中,我们引入了3BASiL-TM,一种高效的单次后训练方法,用于LLMs的S+LR分解,以解决这一差距。我们的方法首先引入了一种新的三块交替方向乘子法(ADMM)方法,称为3BASiL,用于最小化层间重建误差并保证收敛性。然后我们设计了一个高效的Transformer匹配(TM)细化步骤,该步骤在Transformer层上联合优化稀疏和低秩组件。此步骤最小化了一个新的内存高效损失,使输出在Transformer层面对齐。值得注意的是,TM过程是通用的,因为它可以增强任何(S+LR)分解,包括纯稀疏性。我们的数值实验表明,3BASiL-TM在(2:4稀疏+64 LR)配置下,相对于密集LLaMA-8B模型的WikiText2困惑度差距降低了超过30%,相比先前方法。此外,我们的方法在A100 GPU上实现了比最先进(S+LR)方法快超过2.5倍的压缩运行时间。我们的代码可在https://github.com/mazumder-lab/3BASiL上获得。
英文摘要:
Sparse plus Low-Rank $(\mathbf{S} + \mathbf{LR})$ decomposition of Large Language Models (LLMs) has emerged as a promising direction in model compression, aiming to decompose pre-trained model weights into a sum of sparse and low-rank matrices $(\mathbf{W} \approx \mathbf{S} + \mathbf{LR})$. Despite recent progress, existing methods often suffer from substantial performance degradation compared to dense models. In this work, we introduce 3BASiL-TM, an efficient one-shot post-training method for $(\mathbf{S} + \mathbf{LR})$ decomposition of LLMs that addresses this gap. Our approach first introduces a novel 3-Block Alternating Direction Method of Multipliers (ADMM) method, termed 3BASiL, to minimize the layer-wise reconstruction error with convergence guarantees. We then design an efficient transformer-matching (TM) refinement step that jointly optimizes the sparse and low-rank components across transformer layers. This step minimizes a novel memory-efficient loss that aligns outputs at the transformer level. Notably, the TM procedure is universal as it can enhance any $(\mathbf{S} + \mathbf{LR})$ decomposition, including pure sparsity. Our numerical experiments show that 3BASiL-TM reduces the WikiText2 perplexity gap relative to dense LLaMA-8B model by over 30% under a (2:4 Sparse + 64 LR) configuration, compared to prior methods. Moreover, our method achieves over 2.5x faster compression runtime on an A100 GPU compared to SOTA $(\mathbf{S} + \mathbf{LR})$ method. Our code is available at https://github.com/mazumder-lab/3BASiL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。