arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.12013cs.CLcs.AIcs.LG
收藏

MoE-Pruner:利用其路由器提示剪枝混合专家大语言模型

MoE-Pruner: Pruning Mixture-of-Experts Large Language Model using the Hints from Its Router

Northeastern University(东北大学);ByteDance Inc.(字节跳动公司)

Yanyue Xie, Zhi Zhang, Ding Zhou, Cong Xie, Ziang Song, Xin Liu, Yanzhi Wang, Xue Lin, An Xu

AI总结:

针对MoE架构内存消耗高和专家冗余问题,提出一次性剪枝方法MoE-Pruner,结合路由器提示剪枝权重,并在无需重训练下显著优于现有方法,结合知识蒸馏后50%稀疏度模型保持99%性能。

摘要:

混合专家(MoE)架构面临高内存消耗和专家冗余等挑战。剪枝MoE可以在保持模型性能的同时减少网络权重。受大语言模型(LLM)和MoE路由策略中涌现的大幅度特征这一最新观察的启发,我们提出了MoE-Pruner,该方法在每个输出神经元上,剪枝幅度最小且乘以相应输入激活和路由器权重的权重。我们的剪枝方法是一次性的,无需重新训练或更新权重。我们在多个语言基准上对Mixtral-8x7B和Mixtral-8x22B评估了该方法。实验结果表明,我们的剪枝方法显著优于最先进的LLM剪枝方法。此外,我们剪枝后的MoE模型可以通过专家级知识蒸馏从预训练教师模型中获益,从而提升剪枝后的性能。实验结果表明,具有50%稀疏度的Mixtral-8x7B模型在经过专家级知识蒸馏后,保持了原始模型99%的性能。

英文摘要:

Mixture-of-Experts (MoE) architectures face challenges such as high memory consumption and redundancy in experts. Pruning MoE can reduce network weights while maintaining model performance. Motivated by the recent observation of emergent large magnitude features in Large Language Models (LLM) and MoE routing policy, we propose MoE-Pruner, a method that prunes weights with the smallest magnitudes multiplied by the corresponding input activations and router weights, on each output neuron. Our pruning method is one-shot, requiring no retraining or weight updates. We evaluate our method on Mixtral-8x7B and Mixtral-8x22B across multiple language benchmarks. Experimental results show that our pruning method significantly outperforms state-of-the-art LLM pruning methods. Furthermore, our pruned MoE models can benefit from a pretrained teacher model through expert-wise knowledge distillation, improving performance post-pruning. Experimental results demonstrate that the Mixtral-8x7B model with 50% sparsity maintains 99% of the performance of the original model after the expert-wise knowledge distillation.

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

↑