SVD-LLM V2:优化大语言模型压缩中的奇异值截断
SVD-LLM V2: Optimizing Singular Value Truncation for Large Language Model Compression
AI总结:
本文提出 SVD-LLM V2,通过按理论截断损失分配层间压缩率并采用损失优化的权重截断,在十个数据集和五个 LLM 上优于现有 SVD 压缩方法。
摘要:
尽管大语言模型(LLM)已取得显著进展,但其庞大的规模往往阻碍实际部署,因此需要有效的压缩技术。奇异值分解(SVD)是一种很有前景的 LLM 压缩技术。然而,现有基于 SVD 的压缩方法在降低截断损失方面存在不足,导致压缩后模型的性能缺乏竞争力。在本工作中,我们提出 SVD-LLM V2,这是一种基于 SVD 的 LLM 压缩方法,通过两项技术优化 SVD 压缩中的奇异值截断。首先,SVD-LLM V2 提出利用权重矩阵的理论截断损失,为不同层中的每个权重矩阵分配独特的压缩率,以适应权重冗余的异质性。其次,SVD-LLM V2 提出损失优化的权重截断,以确保被截断的奇异值在实际中产生更低且更稳定的截断损失。我们在十个数据集和五个不同规模的 LLM 上评估了 SVD-LLM V2。结果表明,SVD-LLM V2 优于最先进的基于 SVD 的 LLM 压缩方法。我们的代码可在 https://github.com/AIoT-MLSys-Lab/SVD-LLM 获取。
英文摘要:
Despite significant advancements, the practical deployment of Large Language Models (LLMs) is often hampered by their immense sizes, highlighting the need for effective compression techniques. Singular Value Decomposition (SVD) is a promising LLM compression technique. However, existing SVD-based compression methods fall short in reducing truncation losses, leading to less competitive performance in compressed models. In this work, we introduce SVD-LLM V2, a SVD-based LLM compression method that optimizes singular value truncation in SVD compression with two techniques. First, SVD-LLM V2 proposes to use theoretical truncation loss of weight matrices to assign a unique compression ratio to each weight matrix at different layers to accommodate weight redundancy heterogeneity. Second, SVD-LLM V2 proposes loss-optimized weight truncation to ensure that the truncated singular values result in a lower and more stable truncation loss in practice. We evaluate SVD-LLM V2 on ten datasets and five LLMs at various scales. Our results show SVD-LLM V2 outperforms state-of-the-art SVD-based LLM compression methods. Our code is available at https://github.com/AIoT-MLSys-Lab/SVD-LLM
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。