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

通过函数感知神经元分组提升LLM结构剪枝的泛化能力

Improving Generalization in LLM Structured Pruning via Function-Aware Neuron Grouping

Tao Yu, Yongqi An, Kuan Zhu, Guibo Zhu, Ming Tang, Jinqiao Wang

AI总结:

FANG通过函数感知神经元分组提升LLM结构剪枝的泛化能力,结合FLAP和OBC方法在稀疏性下提升下游任务准确性。

摘要:

大型语言模型(LLMs)在自然语言任务中表现出色,但因其规模而带来显著的计算和存储成本。后训练结构剪枝提供了一种高效的解决方案。然而,当少量校准集无法充分反映预训练数据分布时,现有方法在下游任务中的泛化能力有限。为了解决这个问题,我们提出了函数感知神经元分组(FANG),一种后训练剪枝框架,通过识别并保留对特定功能至关重要的神经元来缓解校准偏差。FANG根据神经元处理的语义上下文类型对神经元进行分组,并独立地对每个组进行剪枝。在每个组内的重要性估计中,与神经元组的功能角色强相关的标记会被赋予更高的权重。此外,FANG还保留了在多种上下文类型中起作用的神经元。为了在稀疏性和性能之间取得更好的平衡,它根据每个块的功能复杂性适应性地分配稀疏性。实验表明,FANG在保持语言建模性能的同时提高了下游准确性。当与FLAP和OBC两种代表性剪枝方法结合时,FANG实现了最先进的(SOTA)结果。具体来说,在30%和40%的稀疏性下,FANG在平均准确率上分别比FLAP和OBC高出1.5%至8.5%。

英文摘要:

Large Language Models (LLMs) demonstrate impressive performance across natural language tasks but incur substantial computational and storage costs due to their scale. Post-training structured pruning offers an efficient solution. However, when few-shot calibration sets fail to adequately reflect the pretraining data distribution, existing methods exhibit limited generalization to downstream tasks. To address this issue, we propose Function-Aware Neuron Grouping (FANG), a post-training pruning framework that alleviates calibration bias by identifying and preserving neurons critical to specific function. FANG groups neurons with similar function based on the type of semantic context they process and prunes each group independently. During importance estimation within each group, tokens that strongly correlate with the functional role of the neuron group are given higher weighting. Additionally, FANG also preserves neurons that contribute across multiple context types. To achieve a better trade-off between sparsity and performance, it allocates sparsity to each block adaptively based on its functional complexity. Experiments show that FANG improves downstream accuracy while preserving language modeling performance. It achieves the state-of-the-art (SOTA) results when combined with FLAP and OBC, two representative pruning methods. Specifically, FANG outperforms FLAP and OBC by 1.5%--8.5% in average accuracy under 30% and 40% sparsity.

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

↑