Skip to main content
QUICK REVIEW

[Paper Review] EvoMoE: An Evolutional Mixture-of-Experts Training Framework via Dense-To-Sparse Gate

Xiaonan Nie, Xupeng Miao|arXiv (Cornell University)|Dec 29, 2021
Expert finding and Q&A systemsComputer Science7 citations
TL;DR

EvoMoE proposes a two-phase training framework that evolves a single expert into a sparse Mixture-of-Experts (MoE) model via expert-diversify and gate-sparsify stages. It introduces a Dense-to-Sparse gate (DTS-Gate) that starts dense and gradually becomes sparse, improving training stability and performance, achieving state-of-the-art results on GLUE with gains of up to 0.562 and 0.403 over baselines.

ABSTRACT

Mixture-of-experts (MoE) is becoming popular due to its success in improving the model quality, especially in Transformers. By routing tokens with a sparse gate to a few experts (i.e., a small pieces of the full model), MoE can easily increase the model parameters to a very large scale while keeping the computation cost in a constant level. Most existing works just initialize some random experts, set a fixed gating strategy (e.g., Top-k), and train the model from scratch in an ad-hoc way. We identify that these MoE models are suffering from the immature experts and unstable sparse gate, which are harmful to the convergence performance. In this paper, we propose an efficient end-to-end MoE training framework called EvoMoE. EvoMoE starts from training one single expert and gradually evolves into a large and sparse MoE structure. EvoMoE mainly contains two phases: the expert-diversify phase to train the base expert for a while and spawn multiple diverse experts from it, and the gate-sparsify phase to learn an adaptive sparse gate and activate a dynamic number of experts. EvoMoE naturally decouples the joint learning of both the experts and the sparse gate and focuses on learning the basic knowledge with a single expert at the early training stage. Then it diversifies the experts and continues to train the MoE with a novel Dense-to-Sparse gate (DTS-Gate). Specifically, instead of using a permanent sparse gate, DTS-Gate begins as a dense gate that routes tokens to all experts, then gradually and adaptively becomes sparser while routes to fewer experts. Evaluations are conducted on three popular models and tasks, including RoBERTa for masked language modeling task, GPT for language modeling task and Transformer for machine translation task. The results show that EvoMoE outperforms existing baselines, including Switch, BASE Layer, Hash Layer and StableMoE.

Motivation & Objective

  • To address the instability and poor convergence in existing MoE training due to randomly initialized experts and sparse gates.
  • To improve training efficiency and model quality by decoupling expert and gate learning.
  • To enable a smooth transition from dense to sparse routing through adaptive sparsification.
  • To achieve better performance and FLOPs efficiency compared to existing MoE methods.
  • To explore a more stable and scalable training paradigm for large-scale MoE models.

Proposed method

  • In the expert-diversify phase, a single base expert is trained first, then diversified into multiple experts using random masking to introduce structural diversity.
  • In the gate-sparsify phase, a Dense-to-Sparse gate (DTS-Gate) is introduced, starting with a soft, dense routing over all experts and gradually becoming sparse via temperature decay in Gumbel-Softmax.
  • The DTS-Gate uses a content-based routing mechanism that activates experts whose gate weights exceed a learned threshold, enabling adaptive and dynamic expert selection.
  • The framework decouples expert and gate training: experts are pre-trained in a shared manner before sparse routing is introduced.
  • A temperature decay schedule is applied to the Gumbel-Softmax to progressively encourage sparsity in the gate output.
  • The method is applied end-to-end across multiple models, including RoBERTa, GPT, and Transformer, on diverse NLP tasks.

Experimental results

Research questions

  • RQ1Can a gradual evolution from a single expert to a sparse MoE architecture improve training stability and model performance?
  • RQ2Does a dense-to-sparse gate mechanism lead to better convergence and routing accuracy than fixed sparse gates like Top-k?
  • RQ3Can expert diversification from a shared base expert enhance knowledge generalization and reduce training instability?
  • RQ4How does EvoMoE compare in performance and FLOPs efficiency to existing MoE methods like Switch, BASELayer, and StableMoE?
  • RQ5To what extent does decoupling expert and gate training improve the learning dynamics of MoE models?

Key findings

  • EvoMoE outperforms existing MoE baselines on the GLUE benchmark by up to 0.562 and 0.403 in average score, demonstrating superior model quality.
  • The DTS-Gate mechanism enables smoother routing adaptation and reduces sensitivity to random initialization compared to fixed Top-k gates.
  • The expert-diversify phase leads to more stable and effective expert specialization, improving overall model robustness.
  • EvoMoE achieves better FLOPs efficiency than dense MoE and competitive performance against sparse MoE baselines.
  • The framework shows consistent improvements across multiple tasks, including masked language modeling, language modeling, and machine translation.
  • The ablation study confirms that both the expert-diversify and gate-sparsify phases are essential for optimal performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.