arXiv:2505.20112cs.CLcs.AI2025-05被引 5

通过控制误差提升大模型压缩效果,减少精度损失。

ERC-SVD: Error-Controlled SVD for Large Language Model Compression

  • 利用截断残差矩阵降低压缩损失,改进传统SVD方法。
  • 只压缩最后几层模型,在固定压缩比下显著缓解误差传播。
  • 在多个大模型和数据集上表现优于现有方法,适合部署优化。

大语言模型(LLM)在众多自然语言处理任务中表现出色,但其庞大的规模和内存需求限制了实际部署,因此高效压缩策略至关重要。奇异值分解(SVD)能将矩阵分解为正交分量,实现低秩近似,特别适用于存在显著冗余的模型权重矩阵。然而,现有基于SVD的方法忽略截断产生的残差矩阵,导致显著的截断损失;且对所有层进行压缩会引发严重的误差传播。为此,本文提出一种从误差控制角度出发的后训练SVD压缩方法ERC-SVD:首先利用截断过程中生成的残差矩阵减少截断损失;其次,在固定整体压缩比下,选择性压缩模型最后几层,有效缓解误差传播并提升压缩后模型性能。在多种大模型族和多个基准数据集上的全面评估表明,ERC-SVD持续优于现有方法,验证了其实际有效性。

原文摘要 · Abstract (English)

Large language models (LLMs) have demonstrated impressive capabilities in a wide range of downstream natural language processing tasks. Nevertheless, their considerable sizes and memory demands hinder practical deployment, underscoring the importance of developing efficient compression strategies. Singular value decomposition (SVD) decomposes a matrix into orthogonal components, enabling efficient low-rank approximation. This is particularly suitable for LLM compression, where weight matrices often exhibit significant redundancy. However, current SVD-based methods neglect the residual matrix from truncation, resulting in significant truncation loss. Additionally, compressing all layers of the model results in severe error propagation. To overcome these limitations, we propose ERC-SVD, a new post-training SVD-based LLM compression method from an error-controlled perspective. Specifically, we leverage the residual matrix generated during the truncation process to reduce truncation loss. Moreover, under a fixed overall compression ratio, we selectively compress the last few layers of the model, which mitigates error propagation and improves compressed model performance. Comprehensive evaluations on diverse LLM families and multiple benchmark datasets indicate that ERC-SVD consistently achieves superior performance over existing counterpart methods, demonstrating its practical effectiveness.

模型压缩SVD大模型误差控制

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。