Abstract
Discrete diffusion models have seen a surge of attention with applications on naturally discrete data such as language and graphs. Although discrete-time discrete diffusion has been established for a while, only recently has a framework for continuous-time discrete diffusion been introduced. However, previous training and sampling processes differed significantly between the two, necessitating nontrivial approximations for tractability. In this paper, we present USD3 (Unified Simplified Discrete Denoising Diffusion), a framework that provides mathematical simplifications of the variational lower bound (VLB) to enable more accurate and easy-to-optimize training. We derive a simple formulation for backward denoising that enables exact and accelerated sampling, resulting in an elegant unification of discrete-time and continuous-time discrete diffusion. Experiments show that USD3 outperforms all state-of-the-art baselines on established datasets.
Introduction
Diffusion models have revolutionized generative AI, but their primary success has been in continuous domains like image synthesis. Applying these models to categorical data—where values are discrete and unordered, such as words, musical notes, or graph nodes—is significantly more challenging.
Currently, researchers utilize two main paradigms: discrete-time models, which operate on fixed steps, and continuous-time models, which follow a smooth denoising path. While continuous-time models often yield higher quality, their mathematical implementation has historically been complex, requiring tedious approximations and multiple network evaluations. USD3 bridges this gap, providing a mathematically clean and efficient framework that unifies these two approaches.
Methodology
The USD3 framework is built upon several key mathematical advancements that simplify the training and sampling of discrete diffusion models:
1. VLB Simplification
The authors derived a simplified version of the Variational Lower Bound (VLB), the standard loss function for diffusion. This formulation is exact and easier to optimize than previous versions. Crucially, it allows for different noise distributions to be applied to different elements of a multi-element object simultaneously, providing greater flexibility in handling complex data structures.
2. Closed-form Backward Probability
USD3 introduces a clean, closed-form equation for the backward denoising step, $p_\theta(x_s|x_t)$. This eliminates the need for the inexact sampling approximations used in prior continuous-time work, leading to more stable and accurate generation.
3. Paradigm Unification
By carefully parameterizing the forward transition matrices, the authors prove that discrete-time and continuous-time processes can share the exact same forward and backward logic. This unification allows the same codebase to handle both modes, with only a single line of code differentiating the two during execution.
Key Insights
- Predicting $x_0$: Similar to continuous diffusion models like DDPM, USD3 finds that parameterizing the model to predict the original clean data ($x_0$) is significantly more effective than predicting noise or the immediate previous step.
- Loss Scaling: The standard VLB loss is often sensitive to time-based scaling factors that hinder optimization. USD3 introduces a robust loss function ($\tilde{\mathcal{L}}_t$) that removes these sensitive scales, leading to faster convergence.
- Cross-Pollination of Techniques: Because the paradigms are unified, discrete-time models can now utilize "MCMC correctors"—a technique previously exclusive to continuous-time models—to refine sample quality during the final generation stages.
Experimental Evaluation
USD3 was evaluated against state-of-the-art (SOTA) baselines, including D3PM, RDM, and SEDD, across two primary tasks:
Music Generation (Lakh Pianoroll)
Using monophonic music sequences, USD3 achieved the lowest Hellinger distances for 2-gram and 3-gram note sequences. This indicates a superior ability to capture the rhythmic and structural dependencies inherent in music. The authors also utilized a subset called PIANO-P to ensure the model was generalizing rather than simply memorizing training data.
Image Generation (VQCIFAR10)
To test categorical limits, the CIFAR-10 dataset was converted into discrete hash-codes using a pre-trained VQGAN. USD3 reached an Inception Score (IS) of 9.27 and a FID of 12.07, significantly outperforming the discrete-time D3PM baseline (IS 8.13, FID 18.08).
Conclusion and Future Work
USD3 establishes a new standard for discrete diffusion by simplifying the underlying mathematics and unifying disparate paradigms. While the model is highly efficient, the use of MCMC correctors can increase sampling time, representing a potential bottleneck for real-time applications. Future research directions include extending the framework to ordinal data (where categories have a natural order) and scaling the unified approach to Large Language Models (LLMs) to test its performance on massive, high-dimensional datasets.
Summary updated