Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Simplified and Generalized Masked Diffusion for Discrete Data

About

Masked (or absorbing) diffusion is actively explored as an alternative to autoregressive models for generative modeling of discrete data. However, existing work in this area has been hindered by unnecessarily complex model formulations and unclear relationships between different perspectives, leading to suboptimal parameterization, training objectives, and ad hoc adjustments to counteract these issues. In this work, we aim to provide a simple and general framework that unlocks the full potential of masked diffusion models. We show that the continuous-time variational objective of masked diffusion models is a simple weighted integral of cross-entropy losses. Our framework also enables training generalized masked diffusion models with state-dependent masking schedules. When evaluated by perplexity, our models trained on OpenWebText surpass prior diffusion language models at GPT-2 scale and demonstrate superior performance on 4 out of 5 zero-shot language modeling tasks. Furthermore, our models vastly outperform previous discrete diffusion models on pixel-level image modeling, achieving 2.75 (CIFAR-10) and 3.40 (ImageNet 64x64) bits per dimension that are better than autoregressive models of similar sizes. Our code is available at https://github.com/google-deepmind/md4.

Jiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet, Michalis K. Titsias• 2024

Related benchmarks

TaskDatasetResultRank
Language ModelingWikiText2
Perplexity25.84
1875
Language ModelingPTB
Perplexity66.07
650
Language ModelingWikiText-103
PPL25.84
146
Character-level Language Modelingtext8 (test)
BPC1.34
128
Language ModelingLAMBADA
Perplexity44.12
99
Text GenerationOpenWebText
Perplexity156.8
66
Image ModelingCIFAR-10 (test)
NLL (bits/dim)2.75
36
Language Modelingtext8 (test)
BPC1.37
21
Text GenerationOpenWebText (OWT) GPT-2 tokenizer (val)
PPL21.8
12
Image ModelingImageNet 64x64 (val)
NLL (bits/dim)3.4
11
Showing 10 of 12 rows

Other info

Follow for update