2025-02-10 · 进阶 · 自然语言处理 · 机器学习

CMoE: Fast Carving of Mixture-of-Experts for Efficient LLM Inference

这篇论文提出了CMoE(Carved MoE),一种通过参数重组和轻量级自适应从密集语言模型中高效裁剪混合专家(MoE)架构的新框架。

更新于 2025-02-10。作者:Zehua Pei、Lancheng Zou、Hui-Ling Zhen、Xianzhi Yu、Wulong Liu、Sinno Jialin Pan、Mingxuan Yuan、Bei Yu。

中文摘要

大型语言模型(LLMs)通过扩展模型参数实现了令人印象深刻的性能,但这种做法伴随着显著的推理开销。前馈网络(FFNs),其在LLMs参数中占主导地位,隐藏神经元表现出高激活稀疏性。为了利用这一点,研究人员提出了混合专家(MoE)架构,其中只有参数的子集被激活。然而,现有的方法通常需要大量的训练数据和资源,限制了其实用性。我们提出了CMoE(Carved MoE),这是一个新颖的框架,可以高效地从密集模型中雕刻MoE模型。CMoE通过高效的专家分组和轻量级适应实现了显著性能。首先,根据激活率将神经元分组为共享和路由专家。接下来,我们构建了一个无需从头开始训练的路由机制,结合了可微的路由过程和负载均衡。使用适度的数据,CMoE在五分钟内从7B密集模型中生成一个设计精良、可用的MoE。通过轻量级微调,它在一小时内实现了高性能恢复。我们将在https://github.com/JarvisPei/CMoE上公开我们的代码。

英文摘要

Large language models (LLMs) achieve impressive performance by scaling model parameters, but this comes with significant inference overhead. Feed-forward networks (FFNs), which dominate LLM parameters, exhibit high activation sparsity in hidden neurons. To exploit this, researchers have proposed using a mixture-of-experts (MoE) architecture, where only a subset of parameters is activated. However, existing approaches often require extensive training data and resources, limiting their practicality. We propose CMoE (Carved MoE), a novel framework to efficiently carve MoE models from dense models. CMoE achieves remarkable performance through efficient expert grouping and lightweight adaptation. First, neurons are grouped into shared and routed experts based on activation rates. Next, we construct a routing mechanism without training from scratch, incorporating a differentiable routing process and load balancing. Using modest data, CMoE produces a well-designed, usable MoE from a 7B dense model within five minutes. With lightweight fine-tuning, it achieves high-performance recovery in under an hour. We make our code publicly available at https://github.com/JarvisPei/CMoE.

解读

一句话总结

这篇论文提出了CMoE(Carved MoE),一种通过参数重组和轻量级自适应从密集语言模型中高效裁剪混合专家(MoE)架构的新框架。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源