arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.08083cs.CL

大语言模型的高保真剪枝

High-Fidelity Pruning for Large Language Models

Central South University(中南大学)

Yijun Zhu, Jianxin Wang, Chengchao Shen

AI总结:

本文提出基于模型输出分布信息熵的高保真剪枝方法,有效提升大语言模型的剪枝效率和预测保真度。

摘要:

大语言模型(LLMs)在广泛的任务上展示了卓越的性能,但其显著的计算和内存需求对部署构成了重大挑战。一种常见的方法是使用损失函数的泰勒展开来估计神经元的重要性。然而,其依赖于one-hot交叉熵损失,一个关键限制是它仅基于模型对单个预测下一个token的概率来评估重要性,从而忽略了原始模型的其他潜在预测。解决这一问题的直观方法是使用自我蒸馏准则来评估重要性。然而,这种方法通过需要一个单独的教师模型进行监督而引入了显著的计算开销。为此,我们提出了一种简单但有效的准则,即模型输出分布的信息熵,以高效地评估泰勒剪枝中的神经元重要性,而无需额外的教师模型。与普通的交叉熵准则相比,它为泰勒剪枝提供了更全面的准则,以在全局范围内剪枝对模型预测影响最小的神经元,从而保持模型预测能力的保真度。在广泛的零样本基准测试中,我们的方法在LLaMA和Qwen系列模型上一致优于现有的剪枝方法。源代码和训练后的权重可在https://github.com/visresearch/HFPrune上获得。

英文摘要:

Large Language Models (LLMs) have demonstrated exceptional performance across a wide range of tasks, yet their significant computational and memory requirements present major challenges for deployment. A common approach uses Taylor expansion on the loss function to estimate neuron importance. However, its reliance on one-hot cross entropy loss, a key limitation is that it narrowly assesses importance based only on the probability assigned to the single predicted next token, thereby ignoring the other potential predictions of the original model. An intuitive solution to address this is to employ self distillation criterion for importance evaluation. However, this approach introduces significant computational overhead by requiring a separate teacher model for supervision. To this end, we propose a simple but effective criterion, information entropy of the model's output distribution, to efficiently evaluate importance scores of neurons with Taylor pruning without requirement of additional teacher. Compared to plain cross entropy criterion, it provides a more holistic criterion for Taylor pruning to prune neurons with the least impact on the prediction of model in a global manner, thereby preserving the fidelity of the model's predictive capabilities. Experimental results on extensive zero-shot benchmarks demonstrate that our method consistently outperforms existing pruning methods across the LLaMA and Qwen series models. The source code and trained weights are availabel at https://github.com/visresearch/HFPrune.

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

↑