arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.13832cs.CLcs.AIcs.LG
收藏

熵与重要性交汇:一种统一的头部重要性-熵评分用于稳定且高效的Transformer剪枝

Entropy Meets Importance: A Unified Head Importance-Entropy Score for Stable and Efficient Transformer Pruning

Department of Computer Science and Engineering, Korea University, Seoul, South Korea(计算机科学与工程系,韩国大学,首尔,韩国);School of Software, Soongsil University, Seoul, South Korea(软件学院,顺天大学,首尔,韩国)

Minsik Choi, Hyegang Son, Changhoon Kim, Young Geun Kim

AI总结:

本文提出HIES剪枝方法,结合头部重要性评分与注意力熵,提升Transformer模型的压缩效率和稳定性。

摘要:

基于Transformer的模型在NLP任务中取得了显著的性能。然而,其结构特性——多层和注意力头——在推理和部署中引入了效率挑战。为了解决这些挑战,最近提出了各种剪枝方法。值得注意的是,使用头部重要性评分(HIS)的梯度方法因可解释性、效率和识别冗余头的能力而受到关注。然而,HIS单独存在局限性,因为它只捕捉梯度驱动的贡献,忽略了注意力模式的多样性。为克服这些限制,我们引入了一种新的剪枝标准,即头部重要性-熵评分(HIES),它将头部重要性评分与注意力熵相结合,提供了对每个头部贡献的互补证据。经验上,基于HIES的剪枝在模型质量和稳定性方面分别比仅使用HIS的方法提高了15.2%和2.04倍,使模型压缩成为可能,而不会牺牲准确性和稳定性。代码将在发表时发布。

英文摘要:

Transformer-based models have achieved remarkable performance in NLP tasks. However, their structural characteristics-multiple layers and attention heads-introduce efficiency challenges in inference and deployment. To address these challenges, various pruning methods have recently been proposed. Notably, gradient-based methods using Head Importance Scores (HIS) have gained traction for interpretability, efficiency, and ability to identify redundant heads. However, HIS alone has limitations as it captures only the gradient-driven contribution, overlooking the diversity of attention patterns. To overcome these limitations, we introduce a novel pruning criterion, HIES (Head Importance-Entropy Score), which integrates head importance scores with attention entropy, providing complementary evidence on per-head contribution. Empirically, HIES-based pruning yields up to 15.2% improvement in model quality and 2.04x improvement in stability over HIS-only methods, enabling substantial model compression without sacrificing either accuracy or stability. Code will be released upon publication.

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

↑