Introduction
While continuous diffusion models have revolutionized image generation, applying them to discrete data—like text or tokenized images—remains a significant challenge. Existing discrete diffusion models (such as D3PM or SEDD) often rely on complex variational lower bounds or regression tasks to estimate probability ratios. These methods can be mathematically cumbersome and often scale poorly with vocabulary size. Furthermore, a noticeable performance gap persists between discrete diffusion models and standard autoregressive models like GPT.
The Glauber Generative Model (GGM) addresses these issues by rethinking discrete diffusion. It reduces the complex task of denoising sequences to a simple series of binary classification problems: "Is this token signal or noise?" By leveraging Glauber dynamics (a staple of statistical physics), GGM outperforms existing discrete diffusion models in language generation and achieves high-quality image synthesis and zero-shot infilling.
Methods: The Exact Reduction to Binary Classification
The core innovation of GGM is the integration of Glauber Dynamics (also known as heat bath dynamics or Gibbs sampling) within a diffusion framework.
- The Forward Process: A clean sequence is gradually corrupted by picking one token at a time in a round-robin fashion and replacing it with noise from a target distribution.
- The "Exact Reduction": The authors prove a key theoretical result: the task of learning to reverse this noise process is mathematically equivalent to solving a binary classification task. Given a noisy sequence, the model simply learns to predict whether a token at a specific position is the original "signal" data or "noise."
- Architecture & Inference: The model utilizes a Transformer (specifically the Diffusion Transformer or DiT architecture). During training, a "mask" token is placed at the evaluated position, and the model outputs a probability for every possible token in the vocabulary, representing the likelihood that the token is "signal." During inference, the model starts with pure noise and iterates through the sequence, using the trained binary classifier to estimate the true conditional distribution of each token and updating them sequentially.
Key Insights
- Binary Classification is Enough: The most surprising takeaway is that complex importance sampling or variational bounds are unnecessary. If a model can distinguish signal from noise, it can perfectly reconstruct the denoising Markov chain.
- Linear Scaling: Unlike prior discrete models that scale quadratically ($O(|V|^2)$) with vocabulary size $|V|$, GGM scales linearly ($O(|V|)$), making it highly efficient for large vocabularies.
- Time-Dependent Dynamics: Standard Gibbs sampling is notoriously slow to converge. GGM accelerates this by making the dynamics time-dependent, effectively "heating up" or "cooling down" the process to reach the target distribution much faster.
- Zero-Shot Versatility: Because the model learns the joint distribution of tokens, it can perform tasks like text infilling or image outpainting out-of-the-box without task-specific fine-tuning.
Results
GGM was evaluated on language modeling (OpenWebText) and image generation (CelebA-HQ and FFHQ at 256×256 resolution, using a general-purpose VQGAN tokenizer).
Language Generation: GGM (387M parameters) achieved a generative perplexity of 18.0, significantly outperforming other discrete diffusion models like SEDD-medium (25.2) and MDLM (40.9). Remarkably, it performed comparably to the much larger Plaid model (1.3B parameters) despite having 3.4× fewer parameters.
Image Generation & Infilling: On CelebA-HQ, GGM achieved an FID score of 9.8, outperforming VQ-DDM and rivaling several GAN-based approaches. The model also demonstrated strong qualitative results in zero-shot image infilling, successfully reconstructing faces even when large portions of the original image were masked in pixel space.
Limitations and Future Work
Despite its strong performance relative to other diffusion models, GGM still faces the autoregressive gap—it lags behind pure autoregressive models (like GPT-2) in raw perplexity, a hurdle common to all current diffusion-based language models. Additionally, because Glauber dynamics updates tokens one-by-one (or in small blocks), sampling can be slower than continuous diffusion models that update all pixels simultaneously. Finally, for image generation, the model's performance is currently bottlenecked by the quality of the discrete tokenizer (VQGAN), suggesting that more expressive, dataset-specific tokenizers could further close the gap to state-of-the-art image generators.
Summary updated