NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Large Language Diffusion Models

Shen Nie, Fengqi Zhu, Zebin You, Xiaolu Zhang, Jingyang Ou, Jun Hu, Jun Zhou, Yankai Lin, Ji-Rong Wen, Chongxuan Li

Abstract

Modern Large Language Models (LLMs) are almost exclusively built upon the autoregressive (AR) paradigm, which predicts the next token in a sequence from left to right. This paper introduces LLaDA (Large Language Diffusion), an 8-billion parameter diffusion model trained from scratch that challenges the necessity of autoregressive modeling for achieving state-of-the-art performance. By utilizing a masked diffusion process, LLaDA demonstrates that bidirectional context and generative principles—rather than sequential prediction—are the primary drivers of LLM capabilities. LLaDA matches the performance of strong autoregressive models like LLaMA3 8B and effectively overcomes the "reversal curse" inherent in sequential models.

Introduction

The success of models like GPT-4 and LLaMA has solidified the assumption that the path to artificial general intelligence lies in next-token prediction. While effective, this autoregressive approach has fundamental limitations, most notably the "reversal curse." Because AR models are trained to predict $B$ given $A$, they often fail to recognize that $A$ follows $B$ in a reverse context. This research investigates whether a different generative framework—diffusion models, which have revolutionized image generation—can be scaled to match the language modeling capabilities of the AR paradigm.

Methodology: Masked Diffusion for Text

LLaDA is built on a Masked Diffusion Model (MDM) framework. Unlike AR models that process text linearly, LLaDA treats text generation as a denoising process.

The Forward and Reverse Processes

During training, the model employs a forward process where tokens in a sequence are randomly replaced with a special [MASK] token. The masking ratio is varied uniformly from 0% to 100%. The model is then trained to predict the original tokens for all masked positions simultaneously using a Transformer architecture.

Inference via Low-Confidence Remasking

Generation in LLaDA does not happen in a single pass. Instead, the model uses a "low-confidence remasking" strategy. Starting from a sequence of total masks, the model predicts all tokens. It retains the tokens it predicts with high confidence and re-masks the low-confidence ones. This process is repeated over several steps (e.g., 32 to 128 steps), allowing the model to iteratively refine the entire sequence by considering the bidirectional context of all tokens.

Experimental Setup

LLaDA 8B was trained on a massive dataset of 2.3 trillion tokens, comprising 61% English, 11% Chinese, and 28% code and mathematics. Following pre-training, the model underwent Supervised Fine-Tuning (SFT) using 4.5 million instruction-response pairs, including 1 million human-annotated and 3.5 million synthetic examples.

To evaluate the model, the researchers utilized standard benchmarks such as MMLU, GSM8K, and HumanEval. Additionally, a specialized benchmark of 496 Chinese poem pairs was developed to specifically test the model's ability to handle the reversal curse by requiring it to generate the preceding line of a known poem.

Key Results

Competitive Performance

LLaDA 8B Base demonstrates performance comparable to, and in some cases exceeding, highly optimized AR models. It outperformed LLaMA2 7B on nearly all 15 standard benchmarks and remained competitive with LLaMA3 8B. Notably, in zero-shot mathematical reasoning (GSM8K), LLaDA 8B scored 70.3%, significantly higher than LLaMA3 8B's 48.7%.

Breaking the Reversal Curse

One of the most significant findings is LLaDA's ability to reason bidirectionally. On the Chinese poem reversal task, LLaDA achieved an accuracy of 45.6%. This is a substantial improvement over state-of-the-art AR models like GPT-4o (34.3%) and Qwen2.5-7B (38.0%), which struggle to access information in reverse order.

Scaling and Flexibility

The study confirms that Masked Diffusion Models follow predictable scaling laws similar to AR models, maintaining performance up to $10^{23}$ FLOPs. Furthermore, LLaDA offers a unique trade-off between compute and quality; users can increase the number of sampling steps at inference time to achieve higher-quality outputs without retraining the model.

Discussion and Limitations

While LLaDA proves that diffusion is a viable alternative to autoregression, several challenges remain:

  1. Fixed Generation Length: Unlike AR models that generate until an <EOS> token is reached, LLaDA currently requires a pre-specified sequence length (the "canvas size") before generation begins.
  2. Inference Efficiency: Diffusion requires multiple forward passes, making it computationally more expensive than AR models during inference. LLaDA currently lacks the highly optimized system-level kernels (like KV caching) that accelerate AR models.
  3. Alignment: The current iteration of LLaDA has only undergone SFT. Future work involves applying Reinforcement Learning from Human Feedback (RLHF) or Direct Preference Optimization (DPO) to better align the model with human intent.

Conclusion

LLaDA demonstrates that the core capabilities of LLMs—instruction following, in-context learning, and mathematical reasoning—are not exclusive to autoregressive modeling. By leveraging bidirectional context through a diffusion process, LLaDA provides a robust solution to the reversal curse and opens a new frontier for large-scale generative language modeling.

Summary updated

BibTeX
@inproceedings{nie2025large,
  author = {Shen Nie and Fengqi Zhu and Zebin You and Xiaolu Zhang and Jingyang Ou and Jun Hu and JUN ZHOU and Yankai Lin and Ji-Rong Wen and Chongxuan Li},
  title = {{Large Language Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=KnqiC0znVF},
}
Figure