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

MoreauPruner:面向权重扰动的鲁棒大语言模型剪枝

MoreauPruner: Robust Pruning of Large Language Models against Weight Perturbations

The Chinese University of Hong Kong(香港中文大学)

Zixiao Wang, Jingwei Zhang, Wenqian Zhao, Farzan Farnia, Bei Yu

AI总结:

针对单样本梯度剪枝在 LLM 权重扰动及精度格式切换下的不稳定问题,提出基于 Moreau 包络和 ℓ1 正则化的结构化剪枝方法 MoreauPruner,并在多个 LLM 上验证其鲁棒性与准确率优势。

摘要:

少样本梯度方法已被广泛用于现有模型剪枝方法中,这些方法将模型权重视为静态值,而没有考虑潜在权重扰动的影响。然而,广泛使用的大语言模型(LLM)拥有数十亿个模型参数,这可能会加剧少样本梯度剪枝的脆弱性。在本工作中,我们通过实验表明,单样本梯度剪枝算法在模型权重受到扰动时可能产生不稳定结果;而且,在 bfloat16 与 float16 数据格式之间切换所产生的微小误差,就可能导致截然不同的结果。为解决此类不稳定性,我们借助优化分析,提出了一种名为 MoreauPruner 的 LLM 结构化剪枝方法,该方法对权重扰动具有可证明的鲁棒性。在 MoreauPruner 中,模型权重重要性基于神经网络的 Moreau 包络进行估计,并可灵活结合 ℓ1 范数正则化技术,以诱导剪枝任务所需的稀疏性。我们在多个知名 LLM 上广泛评估了 MoreauPruner 算法,包括 LLaMA-7B、LLaMA-13B、LLaMA3-8B 和 Vicuna-7B。数值结果表明 MoreauPruner 对权重扰动具有鲁棒性,并且与若干现有剪枝方法相比,MoreauPruner 在基于准确率的得分上取得了成功。我们已在 https://github.com/ShiningSord/MoreauPruner 发布代码。

英文摘要:

Few-shot gradient methods have been extensively utilized in existing model pruning methods, where the model weights are regarded as static values and the effects of potential weight perturbations are not considered. However, the widely used large language models (LLMs) have several billion model parameters, which could increase the fragility of few-shot gradient pruning. In this work, we experimentally show that one-shot gradient pruning algorithms could lead to unstable results under perturbations to model weights. And the minor error of switching between data formats bfloat16 and float16 could result in drastically different outcomes. To address such instabilities, we leverage optimization analysis and propose an LLM structural pruning method, called MoreauPruner, with provable robustness against weight perturbations. In MoreauPruner, the model weight importance is estimated based on the neural network's Moreau envelope, which can be flexibly combined with $\ell_1$-norm regularization techniques to induce the sparsity required in the pruning task. We extensively evaluate the MoreauPruner algorithm on several well-known LLMs, including LLaMA-7B, LLaMA-13B, LLaMA3-8B, and Vicuna-7B. Our numerical results suggest the robustness of MoreauPruner against weight perturbations, and indicate the MoreauPruner's successful accuracy-based scores in comparison to several existing pruning methods. We have released the code in \url{https://github.com/ShiningSord/MoreauPruner}.

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

↑