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

丰富专家知识多样性以实现稀疏混合专家模型中的任务无关剪枝

Diversifying the Expert Knowledge for Task-Agnostic Pruning in Sparse Mixture-of-Experts

University of Rochester(罗切斯特大学);Microsoft Research(微软研究院)

Zeliang Zhang, Xiaodong Liu, Hao Cheng, Chenliang Xu, Jianfeng Gao

AI总结:

针对稀疏 MoE 大模型中专家知识冗余、内存占用高的问题,提出基于相似专家分组与剪枝的任务无关方法,并在 Mixtral、Deepseek-MoE 和 Qwen 上验证其优于现有剪枝方法。

摘要:

通过增加模型参数但在执行任务时稀疏地激活它们,混合专家(MoE)架构的使用显著提升了大型语言模型(LLM)的性能,且不会增加推理成本。然而,由专家数量不断增长导致的内存消耗,给这些模型在许多现实场景中的部署带来了挑战。我们的实证研究表明,部分专家在预训练期间编码了冗余知识。因此,我们提出一种对相似专家进行分组和剪枝的方法,以提高模型的参数效率。我们通过对三种最先进的 MoE 架构进行剪枝验证了该方法的有效性,包括 Mixtral、Deepseek-MoE 和 Qwen。评估结果显示,在一系列自然语言任务上,我们的方法优于其他模型剪枝方法。我们将发布代码,以促进未来研究。

英文摘要:

By increasing model parameters but activating them sparsely when performing a task, the use of Mixture-of-Experts (MoE) architecture significantly improves the performance of Large Language Models (LLMs) without increasing the inference cost. However, the memory consumption due to the growing number of experts presents a challenge to the deployment of these models in many real world settings. Our empirical study reveals that some experts encode redundant knowledge during pre-training. We thus propose a method of grouping and pruning similar experts to improve the model's parameter efficiency. We validate the effectiveness of our method by pruning three state-of-the-art MoE architectures, including Mixtral, Deepseek-MoE, and Qwen. The evaluation shows that our method outperforms other model pruning methods on a range of natural language tasks. We will release our code to facilitate future research.

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

↑