LLaDA-MoE: A Sparse MoE Diffusion Language Model

Fengqi Zhu, Zebin You, Yipeng Xing, Zenan Huang, Lin Liu, Yihong Zhuang, Guoshan Lu, Kangyu Wang, Xudong Wang, Lanning Wei, Hongrui Guo, Jiaqi Hu, Wentao Ye, Tieyuan Chen, Chenchen Li, Chengfu Tang, Haibo Feng, Jun Hu, Jun Zhou, Xiaolu Zhang, Zhenzhong Lan, Junbo Zhao, Da Zheng, Chongxuan Li, Jianguo Li, Ji-Rong Wen

TL;DR

LLaDA-MoE is the first large language diffusion model trained from scratch using a sparse Mixture-of-Experts (MoE) architecture. By combining masked diffusion modeling with MoE, it achieves state-of-the-art performance among diffusion models while drastically lowering inference costs—activating just 1.4B parameters out of a 7B total capacity.

What Problem Does This Paper Address?

While Autoregressive (AR) models currently dominate natural language processing, Masked Diffusion Models (MDMs) have emerged as a promising alternative due to their distinct scaling properties and parallel decoding capabilities. However, while AR models have successfully leveraged sparse Mixture-of-Experts (MoE) architectures to scale up capacity without exploding compute costs, prior MDMs have relied strictly on dense Transformer backbones.

This paper bridges that gap by exploring whether a sparse MoE architecture can be successfully integrated into the training objective of masked diffusion language models to achieve highly efficient inference without sacrificing overall model capacity.

Methods

The authors introduce LLaDA-MoE, a 7B-parameter diffusion language model built with a sparse MoE backbone.

Key components of their approach include:

  • Architecture: A 16-layer Transformer utilizing 64 total experts, routing tokens to the top 8 experts via a gated MoE layer. This results in only 1.4B active parameters per token during inference. It incorporates standard modern components like RMSNorm, SwiGLU activations, and QK-layernorm.
  • Multi-Stage Training Pipeline: The model is trained from scratch on approximately 20 trillion tokens across four distinct phases:
  • Pretrain Stage 1 (10T tokens): General mixed text corpus.
  • Pretrain Stage 2 (10T tokens): Data mixture reweighted to favor mathematics and code.
  • Annealing Stage 1 (500B tokens): High-quality text with a 4k context window.
  • Annealing Stage 2 (500B tokens): Context window expanded to 8k tokens, with the RoPE base raised from 10,000 to 50,000.
  • Variable-Length Training: To mitigate the train-test discrepancy (where the model always sees 4k tokens during training but varies during inference), the authors randomly truncate inputs to variable lengths in 1% of the training steps.
  • Inference Strategy: LLaDA-MoE uses a semi-autoregressive block-level sampling strategy combined with low-confidence remasking to iteratively refine text generation.
Figure 2: Overview of the generation process and architecture. Left: The iterative generation process from fully masked (t = 1) to fully unmasked (t = 0). Blue blocks are fixed user prompt tokens, green blocks are mask tokens. The model iteratively predicts and remasks tokens until generation completes. Right: The MoE architecture with router selecting top-2 experts per token. The histogram shows expert routing distribution, and outputs are weighted combinations of selected experts, enabling efficient sparse activation.

Datasets

LLaDA-MoE was pretrained on a massive, proprietary 20T+ token mixed text corpus. For evaluation, the authors utilized a comprehensive suite of standard benchmarks:

  • General Knowledge: MMLU, MMLU-Pro, CEval, CMMLU, RACE
  • Reasoning: BBH, Drop, KorBench
  • Mathematics: GSM8K, MATH, OlympiadBench
  • Coding: CRUX-O, MBPP, MultiPL-E, HumanEval, LiveCodeBench v6, BigCodeBench-Full
  • Agent & Alignment: IFEval, BFCL Live

Key Insights and Ideas

  • MoE and Diffusion Compatibility: The most significant insight is that sparse MoE routing works seamlessly with the masked language diffusion objective. The auxiliary routing losses (Z-loss and load-balancing loss) stabilize rapidly early in the pretraining phase.
  • Sparse Beats Dense: Activating only 1.4B parameters allows LLaDA-MoE to outperform much larger dense diffusion models (like the 8B dense LLaDA baseline). This proves that sparse activation is a highly viable path forward for making diffusion language models computationally practical.
  • The Truncation Trick: Incorporating variable-length sequences into just 1% of the pretraining steps yielded substantial gains on evaluation metrics, successfully narrowing the distribution mismatch between training and inference.

Key Results

LLaDA-MoE establishes a new state-of-the-art for diffusion language models:

  • Base Model Performance: LLaDA-MoE-7B-A1B-Base achieved an average score of 46.94% across all benchmarks, outperforming the larger dense LLaDA-8B-Base (43.53%) and Dream-v0-Base-7B (46.66%).
  • Instruct Model Performance: After Supervised Fine-Tuning (SFT), LLaDA-MoE-7B-A1B-Instruct achieved an average score of 53.12%, vastly outperforming LLaDA-8B-Instruct (42.65%) and nearly matching the highly competitive autoregressive model Qwen2.5-3B-Instruct (53.51%).
  • Domain Strengths: The instruct model showed massive improvements in specialized domains, scoring 61.59% on HumanEval (coding) and 58.68% on MATH, compared to LLaDA-8B-Instruct's 49.40% and 42.20% respectively.
Figure 1: Benchmark results. We compare LLaDA-MoE with larger MDMs and Qwen2.5-3B-Instruct across key tasks in knowledge, reasoning, mathematics, coding, and agent tasks. Despite using fewer activated parameters, LLaDA-MoE consistently outperforms other diffusion language models and achieves performance comparable to Qwen2.5-3B-Instruct.

Limitations and Future Work

  • Scale Constraints: The study is currently bounded by a 7B total parameter size. The authors acknowledge that scaling LLaDA-MoE to larger capacities is an essential next step to uncover the true limits of sparse MDMs.
  • SFT Context Restrictions: While the model successfully expanded to an 8k context window during the annealing phase, the authors had to restrict SFT samples to 4k tokens. Padding sequences to 8k during instruction tuning caused the model to over-generate |EOS| tokens, indicating that long-context alignment for diffusion models requires further refinement.

Summary updated

BibTeX
@misc{zhu2025llada,
  author = {Fengqi Zhu and Zebin You and Yipeng Xing and Zenan Huang and Lin Liu and Yihong Zhuang and Guoshan Lu and Kangyu Wang and Xudong Wang and Lanning Wei and Hongrui Guo and Jiaqi Hu and Wentao Ye and Tieyuan Chen and Chenchen Li and Chengfu Tang and Haibo Feng and Jun Hu and Jun Zhou and Xiaolu Zhang and Zhenzhong Lan and Junbo Zhao and Da Zheng and Chongxuan Li and Jianguo Li and Ji-Rong Wen},
  title = {{LLaDA-MoE: A Sparse MoE Diffusion Language Model}},
  year = {2025},
  eprint = {2509.24389},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.24389},
}
Figure