Simplified and Generalized Masked Diffusion for Discrete Data

Jiaxin Shi, Kehang Han, Zhe Wang, Arnaud Doucet, Michalis K. Titsias
2/3/2026

No official code found. Best implementation: google-deepmind/md4 (161 stars, Apache-2.0, last commit 2025-02-27). 1 more below.

Abstract

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.

View on arXivView PDF

Code Implementations(2)

google-deepmind/md4Community100%
Apache-2.0

Official Jax Implementation of MD4 Masked Diffusion Models

16117Shell, PythonDec 9, 20241 years agoApache-2.0

Pytorch Implementation of MD4: Simplified and Generalized Masked Diffusion for Discrete Data

131PythonFeb 5, 20251 years ago
diffusion-modelsdiscrete-datadiscrete-diffusiongenaigenerative-modelling+2 more

Similar Papers

Cite this paper

@article{shi2026simplified,
  title  = {Simplified and Generalized Masked Diffusion for Discrete Data},
  author = {Jiaxin Shi and Kehang Han and Zhe Wang and Arnaud Doucet and Michalis K. Titsias},
  year   = {2026},
  eprint = {2406.04329},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.04329},
  url    = {https://arxiv.org/abs/2406.04329},
  journal = {NEURIPS 2024 2024}
}

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

Discussion