Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution

Aaron Lou, Chenlin Meng, Stefano Ermon
2/12/2026

Official code: ozekri/SEPO (32 stars, MIT, last commit 2025-05-19). 2 more implementations below.

Abstract

Despite their groundbreaking performance for many generative modeling tasks, diffusion models have fallen short on discrete data domains such as natural language. Crucially, standard diffusion models rely on the well-established theory of score matching, but efforts to generalize this to discrete structures have not yielded the same empirical gains. In this work, we bridge this gap by proposing score entropy, a novel loss that naturally extends score matching to discrete spaces, integrates seamlessly to build discrete diffusion models, and significantly boosts performance. Experimentally, we test our Score Entropy Discrete Diffusion models (SEDD) on standard language modeling tasks. For comparable model sizes, SEDD beats existing language diffusion paradigms (reducing perplexity by $25$-$75$\%) and is competitive with autoregressive models, in particular outperforming GPT-2. Furthermore, compared to autoregressive mdoels, SEDD generates faithful text without requiring distribution annealing techniques like temperature scaling (around $6$-$8\times$ better generative perplexity than un-annealed GPT-2), can trade compute and quality (similar quality with $32\times$ fewer network evaluations), and enables controllable infilling (matching nucleus sampling quality while enabling other strategies besides left to right prompting).

View on arXivView PDF

Code Implementations(3)

ozekri/SEPOOfficial60%
MIT

Code for the paper: "Fine-Tuning Discrete Diffusion Models with Policy Gradient Methods"

322Shell, PythonFeb 3, 20251 years agoMIT
mstarodub/dllmCommunity70%

Score Entropy Discrete Diffusion language model - https://arxiv.org/abs/2310.16834

181PythonApr 28, 20251 years ago
MIT

[ICML 2024 Best Paper] Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution (https://arxiv.org/abs/2310.16834)

739102PythonFeb 21, 20242 years agoMIT

Similar Papers

Cite this paper

@article{lou2026discrete,
  title  = {Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution},
  author = {Aaron Lou and Chenlin Meng and Stefano Ermon},
  year   = {2026},
  eprint = {2310.16834},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.16834},
  journal = {ICML 2023 2023}
}

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/2310.16834.svg)](https://codeofpaper.com/paper/2310.16834)

Discussion