arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2505.03373cs.LGcs.AImath.OC
收藏

SPAP:通过交替优化与罚方法的结构化剪枝

SPAP: Structured Pruning via Alternating Optimization and Penalty Methods

Department of Mathematics The University of Hong Kong(数学系香港大学)

Hanyu Hu, Xiaoming Yuan

AI总结:

本文提出基于交替优化与罚方法的LLM结构化剪枝框架SPAP,通过混合整数优化建模和交替最小化算法,在OPT、LLaMA等模型上实现线性加速与内存降低,同时保持性能。

摘要:

大型语言模型(LLMs)的部署通常受限于其巨大的计算和内存需求。虽然结构化剪枝通过移除整个网络组件提供了一种可行的方法,但现有方法存在性能下降、依赖启发式度量或需要昂贵的微调等问题。为应对这些挑战,我们提出SPAP(Structured Pruning via Alternating Optimization and Penalty Methods,通过交替优化与罚方法的结构化剪枝),这是一种基于优化理论的、新颖且高效的LLM结构化剪枝框架。SPAP通过混合整数优化模型来形式化剪枝问题,采用罚方法有效做出剪枝决策以最小化剪枝误差,并引入一种针对可拆分问题结构定制的交替最小化算法,以实现高效的权重更新和性能恢复。在OPT、LLaMA-3/3.1/3.2和Qwen2.5模型上的大量实验表明,SPAP优于最先进的方法,实现了线性推理加速(在30%稀疏度下加速1.29$\ imes$)和成比例的内存减少。我们的工作为剪枝LLM提供了一种实用且由优化驱动的解决方案,同时保持模型性能。

英文摘要:

The deployment of large language models (LLMs) is often constrained by their substantial computational and memory demands. While structured pruning presents a viable approach by eliminating entire network components, existing methods suffer from performance degradation, reliance on heuristic metrics, or expensive finetuning. To address these challenges, we propose SPAP (Structured Pruning via Alternating Optimization and Penalty Methods), a novel and efficient structured pruning framework for LLMs grounded in optimization theory. SPAP formulates the pruning problem through a mixed-integer optimization model, employs a penalty method that effectively makes pruning decisions to minimize pruning errors, and introduces an alternating minimization algorithm tailored to the splittable problem structure for efficient weight updates and performance recovery. Extensive experiments on OPT, LLaMA-3/3.1/3.2, and Qwen2.5 models demonstrate SPAP's superiority over state-of-the-art methods, delivering linear inference speedups (1.29$\times$ at 30% sparsity) and proportional memory reductions. Our work offers a practical, optimization-driven solution for pruning LLMs while preserving model performance.

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

↑