arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.13039cs.CLcs.AI
收藏

大语言模型的逐层特征空间分解:为何、何时以及如何?

Surgical Feature-Space Decomposition of LLMs: Why, When and How?

Nyun AI;Transmute AI Hub;IIT (ISM) Dhanbad(印度理工学院(印度矿业学院)丹巴德分校)

Arnav Chavan, Nahush Lele, Deepak Gupta

AI总结:

本研究实证探索了Transformer大语言模型中权重与特征空间的逐层低秩分解,揭示了其在不同网络段的有效性,并发现该分解不仅能平衡压缩与语言建模性能,有时还能提升常识推理,同时为纠正模型偏见提供新视角。

摘要:

低秩近似,无论是针对权重空间还是特征空间,都能提升深度学习模型的性能,无论是改善泛化能力还是降低推理延迟。然而,对于这些近似方法在大语言模型(LLMs)中的“如何”、“何时”以及“为何”有效,目前尚无明确共识。在本工作中,我们实证研究了基于Transformer的大语言模型中权重与特征空间分解的有效性。我们证明,逐层(外科手术式)分解不仅为压缩与语言建模性能之间的权衡提供了关键见解,有时还能增强LLMs的常识推理能力。我们的实证分析识别出特定网络片段本质上具有低秩结构。此外,我们将研究扩展到低秩近似对模型偏见的影响。总体而言,我们的发现为优化LLMs提供了新颖视角,将低秩近似不仅视为提升性能的工具,也视为可能纠正这些模型内在偏见的途径。我们的代码可在GitHub上获取:https://github.com/nyunAI/SFSD-LLM。

英文摘要:

Low-rank approximations, of the weight and feature space can enhance the performance of deep learning models, whether in terms of improving generalization or reducing the latency of inference. However, there is no clear consensus yet on \emph{how}, \emph{when} and \emph{why} these approximations are helpful for large language models (LLMs). In this work, we empirically study the efficacy of weight and feature space decomposition in transformer-based LLMs. We demonstrate that surgical decomposition not only provides critical insights into the trade-off between compression and language modelling performance, but also sometimes enhances commonsense reasoning performance of LLMs. Our empirical analysis identifies specific network segments that intrinsically exhibit a low-rank structure. Furthermore, we extend our investigation to the implications of low-rank approximations on model bias. Overall, our findings offer a novel perspective on optimizing LLMs, presenting the low-rank approximation not only as a tool for performance enhancements, but also as a means to potentially rectify biases within these models. Our code is available at \href{https://github.com/nyunAI/SFSD-LLM}{GitHub}.

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

↑