Diffusion Beats Autoregressive in Data-Constrained Settings

Mihir Prabhudesai, Meng-Ning Wu, A. Zadeh, Katerina Fragkiadaki, Deepak Pathak
7/1/2025
78 citations
diffusion-flow

No official code found. Best implementation: wmn-231314/diffusion-data-constraint (128 stars, Python, last commit 2026-01-10).

Abstract

Autoregressive (AR) models have long dominated the landscape of large language models, driving progress across a wide range of tasks. Recently, diffusion-based language models have emerged as a promising alternative, though their advantages over AR models remain underexplored.

Show full abstract

In this paper, we systematically study masked diffusion models in data-constrained settings where training involves repeated passes over limited data and find that they significantly outperform AR models when compute is abundant but data is scarce. Diffusion models make better use of repeated data, achieving lower validation loss and superior downstream performance. We find new scaling laws for diffusion models and derive a closed-form expression for the critical compute threshold at which diffusion begins to outperform AR. Finally, we explain why diffusion models excel in this regime: their randomized masking objective implicitly trains over a rich distribution of token orderings, acting as an implicit data augmentation that AR's fixed left-to-right factorization lacks. Our results suggest that when data, not compute, is the bottleneck, diffusion models offer a compelling alternative to the standard AR paradigm. Our code is available at: https://diffusion-scaling.github.io.

View on arXivView PDF

Code Implementations(1)

Official PyTorch implementation and models for paper "Diffusion Beats Autoregressive in Data-Constrained Settings". We find diffusion models are significantly more data-efficient than standard left to right autoregressive models, due to their ability to learn from different token orderings.

1286Python, ShellJul 16, 202510 months agoNOASSERTION

Similar Papers

Cite this paper

@article{prabhudesai2025diffusion,
  title  = {Diffusion Beats Autoregressive in Data-Constrained Settings},
  author = {Mihir Prabhudesai and Meng-Ning Wu and A. Zadeh and Katerina Fragkiadaki and Deepak Pathak},
  year   = {2025},
  eprint = {2507.15857},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2507.15857},
  url    = {https://doi.org/10.48550/arXiv.2507.15857},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.15857.svg)](https://codeofpaper.com/paper/2507.15857)

Discussion