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

在行动前剪枝:面向推理语言模型的自反思结构剪枝

Think Before You Prune: Self-Reflective Structured Pruning for Reasoning Language Models

University of North Carolina at Charlotte(北卡罗来纳大学夏洛特分校);University of Minnesota(明尼苏达大学);Intel Corporation(英特尔公司)

Ziyan Wang, Enmao Diao, Qi Le, Pu Wang, Guanchu Wang, Minwoo Lee, Shu-ping Yeh, Li Yang

AI总结:

RESP通过自反思结构化剪枝框架,在保持推理连贯性的同时显著提升稀疏度下的性能

摘要:

推理大语言模型(RLMs)如OpenAI o1、DeepSeek-R1和Qwen3通过链式思维生成实现了强大的多步推理,但其庞大的模型规模和漫长的解码时间输出使其部署成本高且不适合资源受限的环境。为了降低计算和内存成本,剪枝提供了一个有前途的解决方案,通过移除不重要的参数。然而,尽管在标准LLMs上取得了成功,现有的剪枝方法严重损害了RLMs,因为即使中等程度的稀疏度(例如20%)也会导致准确性崩溃并完全破坏模型的推理连贯性。我们首先分析现有剪枝流程为何在推理LLMs上失败,并发现其脆弱性主要源于校准数据、剪枝目标和模型解码时推理行为之间的不匹配。我们的研究进一步表明,最可靠的校准信号不来自人工标注的标签,而是来自模型自身生成的推理轨迹,这更准确地反映了其推理分布。受这些见解的启发,我们引入了RESP,一种自反思的结构化剪枝框架,通过自生成的校准、仅解码的基于梯度的重要性估计以及逐步再生来对齐剪枝决策与模型的推理动态。在Qwen3-8B上的实验表明,RESP在GSM8K和MathQA上均显著优于现有的结构化剪枝方法,在20-30%稀疏度下保持接近密集的准确性,并在更高稀疏度水平上大幅减轻性能崩溃。在40%稀疏度下,RESP在GSM8K上达到81.3%的准确率,在MathQA上达到59.6%的准确率,分别超过最强基线方法66.87%和47%。

英文摘要:

Reasoning LLMs (RLMs) such as OpenAI o1, DeepSeek-R1, and Qwen3 deliver strong multi-step reasoning through chain-of-thought generation, but their large model sizes and lengthy decode-time outputs make them costly to deploy and unsuitable for resource-constrained settings. To reduce computing and memory cost, pruning offers a promising solution by removing unimportant parameters. However, despite their success on standard LLMs, existing pruning methods severely damage RLMs, as even moderate sparsity (e.g., 20%) can collapse accuracy and completely disrupt the model's reasoning coherence. We begin by analyzing why existing pruning pipelines fail on reasoning LLMs and find that their brittleness largely stems from a mismatch between the calibration data, the pruning objective, and the model's decode-time reasoning behavior. Our study further shows that the most reliable calibration signal comes not from human-written labels but from the model's own self-generated reasoning traces, which more accurately reflect its inference distribution. Guided by these insights, we introduce RESP, a self-reflective structured pruning framework that aligns pruning decisions with the model's reasoning dynamics through self-generated calibration, decode-only gradient-based importance estimation, and progressive regeneration that maintains calibration fidelity as sparsity increases. Experiments on Qwen3-8B demonstrate that RESP markedly outperforms existing structured pruning methods on both GSM8K and MathQA, preserving near-dense accuracy at 20-30% sparsity and substantially mitigating performance collapse at higher sparsity levels. At 40% sparsity, RESP attains 81.3% accuracy on GSM8K and 59.6% on MathQA, surpassing the strongest baselines by 66.87% and 47%, respectively.

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

↑