arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.15877cs.LGcs.ARcs.CL
收藏

基底选择:为特定应用预训练大语言模型的低秩分解

Basis Selection: Low-Rank Decomposition of Pretrained Large Language Models for Target Applications

Iowa State University(爱荷华州立大学);Meta

Yang Li, Daniel Agyei Asante, Changsheng Zhao, Ernie Chang, Yangyang Shi, Vikas Chandra

AI总结:

本文提出了一种针对特定应用的LLM低秩分解方法,通过识别并去除冗余部分,有效压缩模型大小并保持性能。

摘要:

大语言模型(LLMs)显著提升了各种应用的性能,但它们计算成本高且能耗大。这使得在资源有限的设备上部署变得具有挑战性,如个人电脑和移动/可穿戴设备,并在资源丰富的云服务器环境中导致显著的推理成本。为了扩展LLMs的使用,我们介绍了一种低秩分解方法,以有效压缩这些模型,以满足特定应用的需求。我们观察到,预训练在通用数据集上的LLMs包含许多不需要的冗余组件,这些组件对特定应用来说并不必要。我们的方法专注于识别并去除这些冗余部分,只保留用于目标应用的必要元素。具体来说,我们将LLMs的权重矩阵表示为基组件的线性组合。然后我们修剪无关的基并增强模型以使用对特定应用有益的新基。在Llama 2-7b和-13B模型上进行的深度压缩结果,包括数学推理和代码生成等目标应用,表明我们的方法在减少模型大小的同时,保持了与最先进的低秩压缩技术相当的准确性。

英文摘要:

Large language models (LLMs) significantly enhance the performance of various applications, but they are computationally intensive and energy-demanding. This makes it challenging to deploy them on devices with limited resources, such as personal computers and mobile/wearable devices, and results in substantial inference costs in resource-rich environments like cloud servers. To extend the use of LLMs, we introduce a low-rank decomposition approach to effectively compress these models, tailored to the requirements of specific applications. We observe that LLMs pretrained on general datasets contain many redundant components not needed for particular applications. Our method focuses on identifying and removing these redundant parts, retaining only the necessary elements for the target applications. Specifically, we represent the weight matrices of LLMs as a linear combination of base components. We then prune the irrelevant bases and enhance the model with new bases beneficial for specific applications. Deep compression results on the Llama 2-7b and -13B models, conducted on target applications including mathematical reasoning and code generation, show that our method significantly reduces model size while maintaining comparable accuracy to state-of-the-art low-rank compression techniques.

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

↑