arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.08631cs.LGcs.CL
收藏

SWSC: 大语言模型中相似通道的权重共享

SWSC: Shared Weight for Similar Channel in LLM

College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机学院)

Binrui Zeng, Yongtao Tang, Xiaodong Liu, Xiaopeng Li

AI总结:

针对大语言模型参数量大带来的存储计算负担,提出基于相似通道权重共享的SWSC压缩方法,结合奇异值分解补偿精度,可在低精度下有效保障压缩后模型性能。

摘要:

大语言模型(LLMs)已推动多个行业的发展,但其参数量的不断增长带来了巨大的存储与计算负担,因此探索可减少参数、便于部署的模型压缩技术至关重要。我们提出SWSC,一种基于“相似通道权重共享”理念的大语言模型压缩方法。该方法使用K-Means聚类算法对模型权重按通道逐通道聚类,生成每个簇内向量高度相似的簇,再从每个簇中选取一个代表向量近似替代簇内所有向量,大幅减少模型权重参数量。然而,近似还原不可避免会损害模型性能。为解决这一问题,我们对压缩前后的权重误差值进行奇异值分解,保留较大的奇异值及其对应的奇异向量以补偿精度。实验结果表明,即使在低精度条件下,我们的方法也能有效保障压缩后大语言模型的性能。

英文摘要:

Large language models (LLMs) have spurred development in multiple industries. However, the growing number of their parameters brings substantial storage and computing burdens, making it essential to explore model compression techniques for parameter reduction and easier deployment. We propose SWSC, an LLM compression method based on the concept of Shared Weight for Similar Channel. It uses the K-Means clustering algorithm to cluster model weights channel-by-channel, generating clusters with highly similar vectors within each. A representative vector from each cluster is selected to approximately replace all vectors in the cluster, significantly reducing the number of model weight parameters. However, approximate restoration will inevitably cause damage to the performance of the model. To tackle this issue, we perform singular value decomposition on the weight error values before and after compression and retain the larger singular values and their corresponding singular vectors to compensate for the accuracy. The experimental results show that our method can effectively ensure the performance of the compressed LLM even under low-precision conditions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑