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

Wanda++:通过区域梯度剪枝大型语言模型

Wanda++: Pruning Large Language Models via Regional Gradients

University of California, Santa Barbara(加州大学圣芭芭拉分校);Amazon AGI(亚马逊人工智能研究院)
Yifan Yang, Kai Zhen, Bhavana Ganesh, Aram Galstyan, Goeric Huybrechts, Markus Müller, Jonas M. Kübler, Rupak Vignesh Swaminathan, Athanasios Mouchtaris, Sravan… 展开作者

Yifan Yang, Kai Zhen, Bhavana Ganesh, Aram Galstyan, Goeric Huybrechts, Markus Müller, Jonas M. Kübler, Rupak Vignesh Swaminathan, Athanasios Mouchtaris, Sravan Babu Bodapati, Nathan Susanj, Zheng Zhang, Jack FitzGerald, Abhishek Kumar

AI总结:

Wanda++提出基于解码器块区域梯度的剪枝框架,通过改进剪枝分数和区域优化减少输出差异,在语言建模困惑度上比Wanda提升最高32%,并可与LoRA微调正交结合,实现高效轻量的LLM剪枝。

摘要:

大型语言模型(LLMs)剪枝旨在移除不重要的权重,以在最小化精度影响的前提下加速推理。然而,现有方法在不进行全模型稀疏感知微调的情况下,往往会遭受精度下降。本文提出了Wanda++,一种新颖的剪枝框架,通过利用解码器块级别的区域梯度(regional gradients)超越了最先进的方法。具体来说,Wanda++首次利用区域梯度改进剪枝分数,并提出了一种高效的区域优化方法,以最小化稠密与稀疏解码器输出之间由剪枝引起的输出差异。值得注意的是,在语言建模任务中,Wanda++的困惑度相比Wanda最多提升了32%,并能有效泛化到下游任务。此外,尽管通过区域优化更新了权重,Wanda++仍与稀疏感知微调保持正交,通过LoRA进一步大幅降低了困惑度。我们的方法轻量高效,在单个H100 GPU上可在10分钟内剪枝一个7B LLaMA模型。

英文摘要:

Large Language Models (LLMs) pruning seeks to remove unimportant weights for inference speedup with minimal accuracy impact. However, existing methods often suffer from accuracy degradation without full-model sparsity-aware fine-tuning. This paper presents Wanda++, a novel pruning framework that outperforms the state-of-the-art methods by utilizing decoder-block-level \textbf{regional} gradients. Specifically, Wanda++ improves the pruning score with regional gradients for the first time and proposes an efficient regional optimization method to minimize pruning-induced output discrepancies between the dense and sparse decoder output. Notably, Wanda++ improves perplexity by up to 32\% over Wanda in the language modeling task and generalizes effectively to downstream tasks. Moreover, despite updating weights with regional optimization, Wanda++ remains orthogonal to sparsity-aware fine-tuning, further reducing perplexity with LoRA in great extend. Our approach is lightweight, pruning a 7B LLaMA model in under 10 minutes on a single H100 GPU.

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

↑