一分钱买两个:曲率感知剪枝也能保留影响函数
Two For The Price Of One: Curvature-Aware Pruning Preserves Influence Functions Too
AI总结:
本文提出曲率感知剪枝优化器$\texttt{CACTUS}$,可高效保留影响函数,在模型压缩任务中比LLM-Surgeon加速超28倍,在数据选择上表现优于ALPS,结合LoGRA仍能保持梯度对齐。
摘要:
训练后剪枝可实现高效部署,但传统方法未明确保留稀疏模型与稠密模型间的内部梯度对齐。本文研究压缩模型的下游性能与通过保留影响函数来保留梯度信息的能力之间的新关联,该关联的核心是考虑层激活和反向传播梯度的曲率感知目标。尽管该目标颇具潜力,但因缺乏高效求解器,在剪枝领域仍未得到充分探索。本文提出一种新型基于ADMM的优化器$\texttt{CACTUS}$,支持预训练权重的剪枝及稀疏加低秩分解。与目标相同的LLM-Surgeon相比,$\texttt{CACTUS}$可实现一个数量级以上的加速。在Qwen3-4B进行50%剪枝时,$\texttt{CACTUS}$将C4困惑度与稠密模型的差距缩小45%,在WikiText-2上将压缩模型与稠密模型的逐样本梯度余弦相似度从0.670提升至0.755,且在性能弱得多的硬件上运行速度比LLM-Surgeon快28倍以上。通过保留影响函数,$\texttt{CACTUS}$支持有效的数据选择:在Llama-3.2-3B上,用$\texttt{CACTUS}$选出的5%数据微调全新稠密模型,在BIG-Bench Hard上准确率达49.44%,而使用ALPS为47.22%,使用稠密模型选择为49.54%。最后,将$\texttt{CACTUS}$与近期梯度投影策略LoGRA结合,在Qwen3-4B的MLP层剪枝至2:4稀疏度并采用秩64修正时,仍保持与稠密LoGRA投影的C4梯度0.711的余弦对齐。
英文摘要:
Post-training pruning enables efficient deployment, but conventional methods do not explicitly preserve internal-gradient alignment between sparse and dense models. We study novel connections between downstream performance of compressed models and the ability to retain gradient information via influence-function preservation. Central to this connection is a curvature-aware objective that accounts for both layer activations and backpropagated gradients. Despite its promise, this objective remains underexplored in pruning due to a lack of efficient solvers. We introduce $\texttt{CACTUS}$, a novel ADMM-based optimizer supporting both pruning and sparse-plus-low-rank decompositions of pre-trained weights. Compared to LLM-Surgeon which targets the same objective, $\texttt{CACTUS}$ can achieve over an order-of-magnitude speedup. At $50\%$ pruning of Qwen3-4B, $\texttt{CACTUS}$ reduces the C4 perplexity gap to the dense model by $45\%$, improves compressed-to-dense per-sample gradient cosine similarity on WikiText-2 from $0.670$ to $0.755$, and runs over $28\times$ faster than LLM-Surgeon on substantially weaker hardware. By preserving influence functions, $\texttt{CACTUS}$ supports effective data selection. On Llama-3.2-3B, fine-tuning a fresh dense model on the $5\%$ of data selected by $\texttt{CACTUS}$ achieves $49.44\%$ accuracy on BIG-Bench Hard, compared with $47.22\%$ using ALPS and $49.54\%$ using dense-model selection. Finally, integrating $\texttt{CACTUS}$ with LoGRA, a recent gradient-projection strategy, on Qwen3-4B with MLP layers pruned to 2:4 sparsity and a rank-64 correction retains a $0.711$ cosine alignment with dense LoGRA-projected C4 gradients.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。