Papers › Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution

Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution

25 Oct 2023arXiv:2310.16834archive 2025-07-28

Aaron Lou, Chenlin Meng, Stefano Ermon

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× better generative perplexity than un-annealed GPT-2), can trade compute and quality (similar quality with 32× fewer network evaluations), and enables controllable infilling (matching nucleus sampling quality while enabling other strategies besides left to right prompting).

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2310.16834")

Code

Syntology Ran 13 of 18 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 10 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 13 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

louaaron/score-entropy-discrete-diffusion officialmentioned in papermentioned on GitHubpytorchMIT report
gabeguo/any-order-speculative-decoding mentioned on GitHubpytorch report
lingxiaoshawn/usd3 mentioned on GitHubpytorch report
ozekri/SEPO mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 13 ran; 1 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · our draft was wrong
1ran · fixture could not drive it
10ran
5unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from louaaron/Score-Entropy-Discrete-Diffusion. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

bias_dropout_add_scale louaaron/Score-Entropy-Discrete-Diffusion/model/fused_add_dropout_scale.py official repository ran MIT (permissive) · 0bb0f3f46e52f14d · report
get_bias_dropout_add_scale louaaron/Score-Entropy-Discrete-Diffusion/model/fused_add_dropout_scale.py official repository ran MIT (permissive) · 06f8b66017690883 · report
get_model_fn louaaron/Score-Entropy-Discrete-Diffusion/model/utils.py official repository ran MIT (permissive) · 4a58edfade53c8c1 · report
lm1b_detokenizer louaaron/Score-Entropy-Discrete-Diffusion/data.py official repository ran fingerprinted MIT (permissive) · 576e1b9b9bcae8ff · report
modulate louaaron/Score-Entropy-Discrete-Diffusion/model/transformer.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 03310bba324ae4fb · report
modulate louaaron/Score-Entropy-Discrete-Diffusion/model/fused_add_dropout_scale.py official repository ran fingerprinted MIT (permissive) · 819cf4771f4eebf0 · report
optimization_manager louaaron/Score-Entropy-Discrete-Diffusion/losses.py official repository ran MIT (permissive) · 9b714e281bb784b7 · report
ptb_detokenizer louaaron/Score-Entropy-Discrete-Diffusion/data.py official repository ran fingerprinted MIT (permissive) · 9f7fbdbe7ca280e0 · report
residual_linear louaaron/Score-Entropy-Discrete-Diffusion/model/transformer.py official repository ran fingerprinted MIT (permissive) · e1d1b19d3f2e9f49 · report
rotate_half louaaron/Score-Entropy-Discrete-Diffusion/model/rotary.py official repository ran · honoured contract fingerprinted MIT (permissive) · 8526ce179df04bd4 · report
sample_categorical louaaron/Score-Entropy-Discrete-Diffusion/catsample.py official repository ran · fixture could not drive it MIT (permissive) · 172aa319a831b3ab · report
unsqueeze_as louaaron/Score-Entropy-Discrete-Diffusion/graph_lib.py official repository ran MIT (permissive) · f3598c5ced32bdac · report
wt_detokenizer louaaron/Score-Entropy-Discrete-Diffusion/data.py official repository ran fingerprinted MIT (permissive) · 46c10627206a7795 · report
apply_rotary_pos_emb louaaron/Score-Entropy-Discrete-Diffusion/model/rotary.py official repository unverified MIT (permissive) · 05816c8a9ef162b5 · report
get_noise louaaron/Score-Entropy-Discrete-Diffusion/noise_lib.py official repository unverified MIT (permissive) · c7a7325b30d3491b · report
get_optimizer louaaron/Score-Entropy-Discrete-Diffusion/losses.py official repository unverified MIT (permissive) · 32fa27b9da9341dc · report
get_score_fn louaaron/Score-Entropy-Discrete-Diffusion/model/utils.py official repository unverified MIT (permissive) · 660f0f7bb11e9f74 · report
gumbel_softmax louaaron/Score-Entropy-Discrete-Diffusion/catsample.py official repository unverified MIT (permissive) · a017bf60b761f427 · report

Tasks

DenoisingLanguage ModelingLanguage Modelling

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Language Modelling OpenWebText SEDD eval_perplexity 24.10 #12 of 12 Archive leaderboard report
Language Modelling OpenWebText SEDD parameters 131M #12 of 12 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDiffusionDiscriminative Fine-TuningDropoutGPT-2Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections