Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Discrete Diffusion Modeling by Estimating the Ratios of the Data Distribution

About

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).

Aaron Lou, Chenlin Meng, Stefano Ermon• 2023

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText2
Perplexity31.04
4085
Language ModelingWikiText-2
Perplexity (PPL)42.02
2862
Language ModelingWikiText-2 (test)--
2416
Language ModelingPTB
Perplexity87.12
1234
Language ModelingWikiText-103 (test)--
773
Language ModelingPTB (test)
Perplexity97.87
543
Language ModelingWikiText2
Perplexity41.84
447
Code GenerationHumanEval+
Pass@117.6
393
Language ModelingWikiText-103 (val)
PPL26.37
290
Language ModelingLAMBADA
Perplexity42.77
254
Showing 10 of 89 rows
...

Other info

Follow for update