ShortGPT:大型语言模型中的层比你预期的更冗余
ShortGPT: Layers in Large Language Models are More Redundant Than You Expect
AI总结:
本研究发现LLMs中存在高度冗余的层,提出基于Block Influence(BI)指标直接移除冗余层的ShortGPT剪枝方法,显著超越SOTA且可与量化方法结合,揭示了模型架构的高度冗余性。
摘要:
随着大型语言模型(LLMs)在性能上的不断提升,其规模显著扩大,当前的LLMs包含数十亿甚至数万亿个参数。然而,在本研究中,我们发现LLMs的许多层表现出高度相似性,且一些层在网络功能中起着微不足道的作用。基于这一观察,我们定义了一个称为Block Influence(BI)的指标来衡量LLMs中每一层的重要性。随后,我们提出了一种直接的剪枝方法:层移除,即根据它们的BI分数直接删除LLMs中的冗余层。实验表明,我们称为ShortGPT的方法在模型剪枝方面显著优于以前的最先进(SOTA)方法。此外,ShortGPT与量化类方法正交,能够进一步减少参数和计算量。通过简单的层移除而非更复杂的剪枝技术获得更好结果的能力,表明模型架构中存在高度冗余。
英文摘要:
As Large Language Models (LLMs) continue to advance in performance, their size has escalated significantly, with current LLMs containing billions or even trillions of parameters. However, in this study, we discovered that many layers of LLMs exhibit high similarity, and some layers play a negligible role in network functionality. Based on this observation, we define a metric called Block Influence (BI) to gauge the significance of each layer in LLMs. We then propose a straightforward pruning approach: layer removal, in which we directly delete the redundant layers in LLMs based on their BI scores. Experiments demonstrate that our method, which we call ShortGPT, significantly outperforms previous state-of-the-art (SOTA) methods in model pruning. Moreover, ShortGPT is orthogonal to quantization-like methods, enabling further reduction in parameters and computation. The ability to achieve better results through simple layer removal, as opposed to more complex pruning techniques, suggests a high degree of redundancy in the model architecture.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。