arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.05085cs.CLcs.LG

面向大语言模型高效压缩的迭代逐层蒸馏

Iterative Layer-wise Distillation for Efficient Compression of Large Language Models

Lomonosov Moscow State University, Russia(莫斯科罗蒙诺夫国立大学)

Grigory Kovalev, Mikhail Tikhomirov

AI总结:

本文提出基于 ShortGPT 的迭代逐层蒸馏方法,通过评估层重要性并结合 KL 散度与均方误差联合损失进行微调,在 Qwen2.5-3B 上以较小质量损失实现模型层数压缩,适用于资源受限部署。

摘要:

本工作研究大语言模型(LLMs)的蒸馏方法,目标是开发保持高性能的紧凑模型。文中回顾了若干现有方法,并讨论了它们各自的优势与局限。基于 ShortGPT 方法,本文提出了一种改进方法,其核心思想是引入层重要性的迭代评估。在每一步中,通过在一组代表性数据集上测量移除单个层时的性能下降来评估重要性。该过程与进一步训练相结合,使用基于 KL 散度和均方误差的联合损失函数。在 Qwen2.5-3B 模型上的实验表明,层数可以从 36 层减少到 28 层(得到 24.7 亿参数模型),质量损失仅为 9.7%;减少到 24 层时质量损失为 18%。研究结果表明,中间 transformer 层对推理的贡献较小,凸显了所提方法在构建高效模型方面的潜力。实验结果证明了迭代蒸馏与微调的有效性,使该方法适用于资源受限环境中的部署。

英文摘要:

This work investigates distillation methods for large language models (LLMs) with the goal of developing compact models that preserve high performance. Several existing approaches are reviewed, with a discussion of their respective strengths and limitations. An improved method based on the ShortGPT approach has been developed, building upon the idea of incorporating iterative evaluation of layer importance. At each step, importance is assessed by measuring performance degradation when individual layers are removed, using a set of representative datasets. This process is combined with further training using a joint loss function based on KL divergence and mean squared error. Experiments on the Qwen2.5-3B model show that the number of layers can be reduced from 36 to 28 (resulting in a 2.47 billion parameter model) with only a 9.7% quality loss, and to 24 layers with an 18% loss. The findings suggest that the middle transformer layers contribute less to inference, underscoring the potential of the proposed method for creating efficient models. The results demonstrate the effectiveness of iterative distillation and fine-tuning, making the approach suitable for deployment in resource-limited settings.

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

↑