TL;DR
This paper demonstrates that Expert-Choice (EC) routing is a superior alternative to standard Token-Choice (TC) routing for Mixture-of-Experts (MoE) Diffusion Language Models. By switching to EC, the authors achieved a 2.0× speedup in training convergence and enabled "timestep-adaptive" computation, which concentrates processing power on the most critical stages of the denoising process to improve final model accuracy.
What Problem Does This Paper Address?
Diffusion Language Models (DLMs) are gaining traction because they generate text in parallel rather than one token at a time. To scale these models, researchers often use Mixture-of-Experts (MoE) architectures. However, most current MoE DLMs inherit Token-Choice (TC) routing from autoregressive models like GPT-4.
In TC routing, each token independently chooses its preferred experts. This leads to two major issues in parallel systems:
- Load Imbalance: Some experts get swamped with tokens while others sit idle. This creates "stragglers" that force the entire GPU cluster to wait, wasting significant compute.
- Rigid Allocation: TC routing makes it difficult to control exactly how much computation is spent at different stages of the diffusion process.
Methods
The authors propose replacing TC with Expert-Choice (EC) routing. In EC, the selection is inverted: each expert chooses a fixed number of tokens ($c$) from the entire sequence.
Because DLMs process all tokens simultaneously (non-causally) in every denoising step, they are uniquely suited for EC, which requires a global view of all tokens to make its selections. This provides deterministic load balancing by design—every expert always processes exactly $c$ tokens, eliminating idle time.
Building on this, the authors introduced Timestep-Adaptive Expert Capacity. Since EC capacity is an external hyperparameter, they can vary it based on the denoising timestep. They tested several schedules, most notably Linear-Reverse, which allocates more expert capacity as the mask ratio decreases (i.e., as the model gets closer to the final clean text).
Datasets
- Pretraining: OpenWebText (~9B tokens) for small-scale studies and Nemotron-CC for scaling up to 8B parameters.
- Downstream Benchmarks: GSM8K (math), HumanEval/HumanEval+ (code), MedQA (medical), MMLU (general knowledge), and ARC-Challenge.
Key Insights and Ideas
- The Learning Frontier: The authors discovered a "mechanistic explanation" for why certain timesteps matter more. Tokens in low-mask-ratio contexts (where most of the sentence is already visible) exhibit an order-of-magnitude higher learning efficiency.
- Marginal Returns: Concentrating compute on these high-efficiency steps yields the largest marginal return. High-mask steps (where most tokens are hidden) are so noisy that adding more experts provides diminishing returns.
- Retrofitting is Viable: You don't have to train from scratch. A pretrained TC model can be "retrofitted" by swapping the router and performing a brief task-specific finetuning, resulting in immediate speed and accuracy gains.
Key Results
-
Training Speed: EC reaches the same loss level 2.0× faster in wall-clock time than TC variants. Training loss vs. wall-clock time showing EC's significant convergence advantage.
-
Throughput: EC achieved 52.1 TFLOP/s/GPU, which is 1.5–2.1× higher than all TC configurations tested.
-
Accuracy Gains: At the 8B-A1B scale, the dynamic EC model consistently outperformed the static baseline across validation perplexity, MMLU, and ARC-Challenge. Comparison of static vs. dynamic EC at the 8B scale, showing consistent improvements in perplexity and downstream accuracy.
-
Inference Speed: Retrofitted EC models achieved 1.3–1.5× faster decoding during evaluation because they eliminate the straggler effect at inference time.
Limitations and Future Work
- Hand-Designed Schedules: The authors used fixed mathematical functions (like linear or cosine) for capacity scheduling. They suggest that learned capacity predictors or reinforcement learning policies could find even more optimal ways to distribute compute.
- Semi-Autoregressive Settings: While EC works perfectly for fully parallel denoising, the authors note that applying it to "block-wise" or semi-autoregressive decoding (where some causal masking is involved) remains a challenge for future work.
- Token Coverage: A potential risk of EC is that some tokens might not be picked by any expert. While the authors argue that "shared experts" (which process all tokens) mitigate this, deeper study into cross-layer token drop correlations is needed.
Summary updated