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

$D^2Prune$:通过双重泰勒展开和注意力分布意识对大型语言模型进行稀疏化

$D^2Prune$: Sparsifying Large Language Models via Dual Taylor Expansion and Attention Distribution Awareness

Lang Xiong, Ning Liu, Ao Ren, Yuheng Bai, Haining Fang, BinYan Zhang, Zhe Jiang, Yujuan Tan, Duo Liu

AI总结:

本文提出$D^2Prune$方法,通过双重泰勒展开和注意力分布意识,解决现有剪枝方法在激活分布偏移和注意力模块长尾分布方面的不足,提升模型压缩效果。

摘要:

大型语言模型(LLMs)由于巨大的计算需求面临显著的部署挑战。尽管剪枝提供了一种有前途的压缩解决方案,但现有方法存在两个关键限制:(1)它们忽略了校准数据与测试数据之间的激活分布偏移,导致误差估计不准确;(2)它们忽视了注意力模块中激活的长尾分布特征。为了解决这些限制,本文提出了一种新的剪枝方法$D^2Prune$。首先,我们提出了一种基于双重泰勒展开的方法,联合建模权重和激活扰动,以精确估计误差,从而实现精确的剪枝掩码选择和权重更新,促进剪枝过程中的误差最小化。其次,我们提出了一种注意力感知的动态更新策略,通过联合最小化注意力分布的KL散度和重建误差,保留长尾注意力模式。广泛的实验表明,$D^2Prune$在各种LLM(如OPT-125M、LLaMA2/3和Qwen3)上 consistently 超过SOTA方法。此外,动态注意力更新机制也很好地泛化到基于ViT的视觉模型如DeiT,在ImageNet-1K上实现了更高的准确性。

英文摘要:

Large language models (LLMs) face significant deployment challenges due to their massive computational demands. % While pruning offers a promising compression solution, existing methods suffer from two critical limitations: (1) They neglect activation distribution shifts between calibration data and test data, resulting in inaccurate error estimations; (2) They overlook the long-tail distribution characteristics of activations in the attention module. To address these limitations, this paper proposes a novel pruning method, $D^2Prune$. First, we propose a dual Taylor expansion-based method that jointly models weight and activation perturbations for precise error estimation, leading to precise pruning mask selection and weight updating and facilitating error minimization during pruning. % Second, we propose an attention-aware dynamic update strategy that preserves the long-tail attention pattern by jointly minimizing the KL divergence of attention distributions and the reconstruction error. Extensive experiments show that $D^2Prune$ consistently outperforms SOTA methods across various LLMs (e.g., OPT-125M, LLaMA2/3, and Qwen3). Moreover, the dynamic attention update mechanism also generalizes well to ViT-based vision models like DeiT, achieving superior accuracy on ImageNet-1K.

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

↑