The Diffusion Duality

Subham Sekhar Sahoo, Justin Deschenaux, Aaron Gokaslan, Guanghan Wang, Justin T Chiu, Volodymyr Kuleshov

Abstract

Generative modeling for discrete data, such as text, has traditionally lagged behind continuous-space counterparts like Gaussian diffusion in both efficiency and sampling speed. This paper introduces Duo, a framework that establishes a formal mathematical duality between continuous Gaussian diffusion and discrete uniform-state diffusion. By demonstrating that discrete diffusion is a pushforward of Gaussian diffusion via an argmax operation, the authors successfully transfer powerful continuous-space techniques—including curriculum learning and consistency distillation—to the discrete domain. Duo achieves a 2x training speedup and a 100x sampling acceleration, outperforming standard autoregressive models on several zero-shot benchmarks while maintaining high generation quality.

Introduction

While Gaussian Diffusion Models have revolutionized image and video generation, their application to discrete data (like language) has been historically difficult. Discrete Diffusion Models, specifically Uniform-State Diffusion Models (USDMs), have been plagued by high training variance and agonizingly slow sampling speeds, often requiring over 1,000 steps to generate coherent sequences.

Because discrete and continuous diffusion were previously viewed as fundamentally different processes, the "bag of tricks" that made image diffusion efficient—such as consistency distillation—could not be easily applied to language. The authors of this work set out to prove that these two worlds are actually two sides of the same coin, providing a mathematical bridge to unify generative modeling across data types.

The Diffusion Duality Theorem

The core of the paper is the Diffusion Duality theorem. The authors prove that a uniform-state discrete diffusion process naturally emerges when an argmax operation is applied to an underlying Gaussian diffusion process. This "bridge" allows researchers to treat discrete models not as a separate species, but as a specific manifestation of continuous latent processes. This insight enables the migration of five years of progress in continuous image generation to the realm of discrete text generation.

Technical Innovations

Building on this duality, the authors introduce three key technical innovations to stabilize and accelerate discrete diffusion:

  1. Curriculum Learning via Tempered Softmax: Training on discrete tokens is inherently noisy. Duo employs a "soft" approximation of the argmax (a tempered softmax) during training. The process begins by focusing on continuous Gaussian latents and gradually "hardens" them into discrete tokens as training progresses, acting as a stabilizer for gradient descent.
  2. Discrete Consistency Distillation (DCD): Consistency distillation is a technique used to collapse a multi-step iterative model into a fast, few-step model. Duo adapts this to the discrete setting by leveraging the underlying Gaussian "Probability Flow ODE" to create deterministic trajectories that the model learns to jump across in just a few steps.
  3. Rao-Blackwellized NELBO: The authors derive a mathematically optimized training objective that avoids the need to materialize massive one-hot vectors. This significantly reduces memory overhead and further stabilizes the gradients during the learning process.

Experimental Results

The Duo framework was evaluated on large-scale language modeling benchmarks, including LM1B (One Billion Word Benchmark) and OpenWebText (OWT). To test generalization, the model underwent zero-shot evaluation across seven diverse datasets: PTB, WikiText, LM1B, Lambada, AG News, Pubmed, and Arxiv.

Efficiency and Speed

  • Training: Duo achieved a 2x training speedup compared to previous state-of-the-art discrete diffusion models.
  • Inference: Through Consistency Distillation, Duo achieved a two-order-of-magnitude speedup in sampling. The model reduced the required steps from 1,024 down to just 8–16 steps with minimal loss in quality.

Performance and Quality

Duo established a new state-of-the-art for USDMs. Remarkably, it surpassed standard Autoregressive (AR) Transformers in zero-shot perplexity on 3 out of 7 benchmarks: Lambada, Pubmed, and Arxiv. Furthermore, the authors empirically verified that the discrete ELBO induced by the duality provides a tighter bound on the likelihood than the standard Gaussian ELBO.

Discussion: The Power of Self-Correction

A key advantage of the Duo framework over traditional Masked Diffusion models is the property of self-correction. In masked models, a token is typically either "hidden" or "fixed." In Duo, tokens are allowed to change multiple times during the generation process. This allows the model to "fix" an early mistake in a later step, leading to more coherent long-form generation.

Limitations and Future Work

Despite its successes, Duo introduces new hyperparameters, such as the temperature $\tau$ and the annealing schedule for curriculum learning, which require manual tuning for different domains. While Duo outperforms AR models on several tasks, it still slightly trails the very best "Masked" discrete diffusion models (like MDLM) in raw perplexity on specific benchmarks, though it remains significantly faster at sampling.

Future research directions include exploring "Gaussian Parameterizations" (predicting noise $\epsilon$ instead of data $x$) for discrete models and applying classifier guidance to domains like drug discovery and molecule generation.

Summary updated

BibTeX
@inproceedings{sahoo2025diffusion,
  author = {Subham Sekhar Sahoo and Justin Deschenaux and Aaron Gokaslan and Guanghan Wang and Justin T Chiu and Volodymyr Kuleshov},
  title = {{The Diffusion Duality}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=9P9Y8FOSOk},
}
Figure