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

通过保留注意力机制的MLP修剪解锁推理语言模型的结构化剪枝

Unlocking Structured Pruning for Reasoning Language Models via Attention-Preserving MLP Trimming

Seoul National University(首尔大学);New York University(纽约大学);University of Southern California(南加州大学)

Woosang Lim, Haneul Yoo, Vincent-Daniel Yun, Sungjoo Yoo

AI总结:

提出无训练结构化剪枝方法LayerTrim,通过保留注意力机制修剪MLP特征,在多模型多基准测试中优于现有方法,提升推理效率与性能。

摘要:

结构化剪枝通过移除模型组件生成更小的密集模型,以降低大语言模型(LLM)的推理成本。然而,现有方法会在AIME等长文本推理任务上导致推理性能崩溃。我们提出LayerTrim,这是一种无需训练的结构化剪枝方法,可识别冗余解码器层并选择性修剪其多层感知机(MLP)特征,同时保留注意力机制和解码器深度。LayerTrim是首个旨在无需梯度或恢复训练即可保留长文本推理能力的无训练结构化剪枝方法。在三个推理语言模型和五个基准测试中,LayerTrim在多数评估场景下优于现有结构化剪枝方法,较RESP的平均准确率提升最高达21.4个百分点。在Qwen3-14B上,LayerTrim实现了1.24倍的预填充速度,峰值GPU内存比密集模型降低19.7%,同时更好地保留了推理能力。它还在所有评估的剪枝模型中实现了最短的平均生成长度,同时保持最高的平均准确率。这些结果表明,LayerTrim通过结构压缩和减少令牌生成提升了推理效率。

英文摘要:

Structured pruning reduces LLM inference costs by removing model components to produce smaller dense models. However, existing methods can cause reasoning performance to collapse on long-form reasoning tasks such as AIME. We propose \textit{LayerTrim}, a training-free structured pruning method that identifies redundant decoder layers and selectively trims their MLP features while preserving attention and decoder depth. LayerTrim is the first training-free structured pruning method designed to preserve long-form reasoning without gradients or recovery training. Across three reasoning language models and five benchmarks, LayerTrim outperforms existing structured pruning methods in most evaluated settings, improving average accuracy by up to 21.4 percentage points over RESP. On \texttt{Qwen3-14B}, LayerTrim achieves 1.24$\times$ faster prefill and 19.7\% lower peak GPU memory than the dense model, while better preserving reasoning ability. It also achieves the shortest average generation length among evaluated pruned models, while retaining the highest average accuracy. These results demonstrate that LayerTrim improves reasoning efficiency through both structural compression and reduced token generation.

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

↑