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

RCPU: 结构化剪枝中旋转约束的误差补偿

RCPU: Rotation-Constrained Error Compensation for Structured Pruning of Large Language Models

AI Division, KDDI Research, Inc.(KDDI研究公司人工智能部门)

Shuichiro Haruta, Kazunori Matsumoto, Zhi Li, Yanan Wang, Mori Kurokawa

AI总结:

本文提出RCPU方法,通过旋转约束更新和方差感知评分,有效补偿结构化剪枝中的误差,提升LLM的性能。

摘要:

在本文中,我们提出了一种旋转约束补偿方法,以解决由大型语言模型(LLMs)结构化剪枝引入的误差。LLMs在大规模数据集上进行训练,并在其表示空间中积累丰富的语义知识。相比之下,剪枝通常仅使用少量校准数据进行,这使得输出不匹配不可避免。尽管直接最小二乘拟合可以减少此类误差,但其倾向于过度拟合有限的校准集,破坏性地修改预训练权重。为克服这一困难,我们通过旋转约束更新剪枝参数。这种受约束的更新保持了输出表示的几何特性(即范数和内积),并同时重新对齐剪枝子空间与原始输出。此外,在旋转约束补偿中,移除对输出主方向贡献强的组件会使误差恢复困难。由于输入维度中方差大的维度强烈影响这些主方向,我们设计了一种方差感知的重要性评分,确保此类维度在剪枝模型中优先保留。通过将此评分规则与旋转约束更新相结合,所提出的方法在保留几何特性的情况下有效补偿误差。在实验中,我们将所提出的方法应用于Llama-7B和Llama-2-13B,并在WikiText2和多个语言理解基准上进行评估。结果表明,与现有基线相比,其在困惑度和任务准确性上表现一致更优。

英文摘要:

In this paper, we propose a rotation-constrained compensation method to address the errors introduced by structured pruning of large language models (LLMs). LLMs are trained on massive datasets and accumulate rich semantic knowledge in their representation space. In contrast, pruning is typically carried out with only a small amount of calibration data, which makes output mismatches unavoidable. Although direct least-squares fitting can reduce such errors, it tends to overfit to the limited calibration set, destructively modifying pretrained weights. To overcome this difficulty, we update the pruned parameters under a rotation constraint. This constrained update preserves the geometry of output representations (i.e., norms and inner products) and simultaneously re-aligns the pruned subspace with the original outputs. Furthermore, in rotation-constrained compensation, removing components that strongly contribute to the principal directions of the output makes error recovery difficult. Since input dimensions with large variance strongly affect these principal directions, we design a variance-aware importance score that ensures such dimensions are preferentially kept in the pruned model. By combining this scoring rule with rotation-constrained updates, the proposed method effectively compensates errors while retaining the components likely to be more important in a geometry-preserving manner. In the experiments, we apply the proposed method to Llama-7B and Llama-2-13B, and evaluate it on WikiText2 and multiple language understanding benchmarks. The results demonstrate consistently better perplexity and task accuracy compared with existing baselines.

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

↑