Abstract
Autoregressive models (ARMs) are widely regarded as the cornerstone of large language models (LLMs). We challenge this notion by introducing LLaDA, a diffusion model trained from scratch under the pre-training and supervised fine-tuning (SFT) paradigm. LLaDA models distributions through a forward data masking process and a reverse process, parameterized by a vanilla Transformer to predict masked tokens. By optimizing a likelihood bound, it provides a principled generative approach for probabilistic inference. Across extensive benchmarks, LLaDA demonstrates strong scalability, outperforming our self-constructed ARM baselines. Remarkably, LLaDA 8B is competitive with strong LLMs like LLaMA3 8B in in-context learning and, after SFT, exhibits impressive instruction-following abilities in case studies such as multi-turn dialogue. Moreover, LLaDA addresses the reversal curse, surpassing GPT-4o in a reversal poem completion task. Our findings establish diffusion models as a viable and promising alternative to ARMs, challenging the assumption that key LLM capabilities discussed above are inherently tied to ARMs.
Community
Question for the authors, how does this technique compare to Discrete Diffusion with Planned Denoising (https://arxiv.org/abs/2410.06264)?
Thank you for your question! The paper you mentioned, DDPO, requires training both the planner and the denoiser simultaneously, while LLaDA only needs to train a denoiser. This leads to differences in both the training and sampling processes of DDPO and LLaDA.
Will you release the pre training dataset in future as it will allow to reproduce and maybe help the community to train different ablations for comparisons ? Anyway thanks for wonderful work 🥳
Thank you for your attention. We have no plan to open-source the pre-training data of LLaDA. We have previously open-sourced the data, training code, and checkpoint for a work (https://arxiv.org/abs/2410.18514) related to masked diffusion models. However, in this work, the number of model parameters is smaller (just 1B), and the data quality is also relatively poor.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Enabling Autoregressive Models to Fill In Masked Tokens (2025)
- MAGNET: Augmenting Generative Decoders with Representation Learning and Infilling Capabilities (2025)
- Segment-Based Attention Masking for GPTs (2024)
- From Drafts to Answers: Unlocking LLM Potential via Aggregation Fine-Tuning (2025)
- Scalable Language Models with Posterior Inference of Latent Thought Vectors (2025)
- Next Block Prediction: Video Generation via Semi-Autoregressive Modeling (2025)
- ExLM: Rethinking the Impact of [MASK] Tokens in Masked Language Models (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper