arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.08065cs.LGcs.CL

确定性可微结构剪枝用于大语言模型

Deterministic Differentiable Structured Pruning for Large Language Models

Department of Computer Science and Technology, Tsinghua University, Beijing, China(清华大学计算机科学与技术系)

Weiyu Huang, Pengle Zhang, Xiaolu Zhang, Jun Zhou, Jun Zhu, Jianfei Chen

AI总结:

本文提出确定性可微剪枝方法,通过优化离散l0目标的确定性软替代,减少训练-测试不匹配并提升收敛速度,实验证明在大语言模型中实现高效剪枝。

摘要:

结构化剪枝通过移除低重要性架构组件降低大语言模型(LLM)推理成本。这可以视为在l0稀疏性约束下为每个组件学习一个乘法门。由于l0范数的离散性,先前工作通常采用随机硬-混凝土放松方法以实现可微优化;然而,这种随机性在采样掩码离散化部署时会引入训练-测试不匹配,并限制掩码范围为有限的近二进制范围。为解决此问题,我们提出确定性可微剪枝(DDP),一种仅优化掩码的方法,通过直接优化离散l0目标的确定性软替代来消除随机性。与先前方法相比,DDP提供了更高的表达性,减少了训练-测试不匹配,并加速了收敛。我们将其应用于多种密集和MoE模型,包括Qwen3-32B和Qwen3-30B-A3B,在下游任务中性能损失最小仅为1%,同时在20%稀疏度下优于先前方法。我们进一步展示了在真实部署设置中使用vLLM实现端到端推理加速。

英文摘要:

Structured pruning reduces LLM inference cost by removing low-importance architectural components. This can be viewed as learning a multiplicative gate for each component under an l0 sparsity constraint. Due to the discreteness of the l0 norm, prior work typically adopts stochastic hard-concrete relaxations to enable differentiable optimization; however, this stochasticity can introduce a train--test mismatch when sampled masks are discretized for deployment and restricts masks to a bounded, near-binary range. To address this, we propose Deterministic Differentiable Pruning (DDP), a mask-only optimization method that eliminates stochasticity by directly optimizing a deterministic soft surrogate of the discrete l0 objective. Compared with prior approaches, DDP offers greater expressiveness, reduced train--test mismatch, and faster convergence. We apply our method to several dense and MoE models, including Qwen3-32B and Qwen3-30B-A3B, achieving a performance loss as small as 1% on downstream tasks while outperforming previous methods at 20% sparsity. We further demonstrate end-to-end inference speedups in realistic deployment settings with vLLM.

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

↑