Pivoting Factorization:大型语言模型中稀疏性的紧凑元低秩表示以实现高效推理
Pivoting Factorization: A Compact Meta Low-Rank Representation of Sparsity for Efficient Inference in Large Language Models
AI总结:
本文提出PIFA,一种无损元低秩表示方法,通过识别枢轴行并线性组合非枢轴行,消除冗余信息,实现额外内存节省和推理加速,并结合无需重训练的重构方法MPIFA,显著优于现有低秩剪枝,性能媲美半结构化剪枝。
摘要:
大型语言模型的快速增长推动了对有效模型压缩技术的需求,以降低内存和计算成本。低秩剪枝因其在所有密度下的GPU兼容性而受到关注。然而,低秩剪枝难以匹敌半结构化剪枝的性能,在相似密度下困惑度常常翻倍。在本文中,我们提出了Pivoting Factorization(PIFA),一种新颖的无损元低秩表示,它无监督地学习任意低秩表示的紧凑形式,有效消除冗余信息。PIFA识别枢轴行(线性独立的行)并将非枢轴行表示为线性组合,在秩为维度的50%时,实现了24.2%的额外内存节省和24.6%的推理加速。为缓解低秩剪枝导致的性能下降,我们引入了一种新颖的、无需重训练的重构方法,该方法最小化误差累积(M)。MPIFA将M和PIFA结合为一个端到端框架,显著优于现有的低秩剪枝方法,并实现了与半结构化剪枝相当的性能,同时在GPU效率和兼容性上超越它。我们的代码可在https://github.com/biomedical-cybernetics/pivoting-factorization获取。
英文摘要:
The rapid growth of Large Language Models has driven demand for effective model compression techniques to reduce memory and computation costs. Low-rank pruning has gained attention for its GPU compatibility across all densities. However, low-rank pruning struggles to match the performance of semi-structured pruning, often doubling perplexity at similar densities. In this paper, we propose Pivoting Factorization (PIFA), a novel lossless meta low-rank representation that unsupervisedly learns a compact form of any low-rank representation, effectively eliminating redundant information. PIFA identifies pivot rows (linearly independent rows) and expresses non-pivot rows as linear combinations, achieving 24.2% additional memory savings and 24.6% faster inference over low-rank layers at rank = 50% of dimension. To mitigate the performance degradation caused by low-rank pruning, we introduce a novel, retraining-free reconstruction method that minimizes error accumulation (M). MPIFA, combining M and PIFA into an end-to-end framework, significantly outperforms existing low-rank pruning methods, and achieves performance comparable to semi-structured pruning, while surpassing it in GPU efficiency and compatibility. Our code is available at https://github.com/biomedical-cybernetics/pivoting-factorization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。