Standard diffusion models, such as Denoising Diffusion Probabilistic Models (DDPMs), have achieved massive success in generating continuous data like images. However, they are fundamentally designed for continuous state spaces where pixel values are treated as floating-point numbers. When dealing with discrete data—such as text tokens, segmentation maps, or the raw 8-bit integers of an image—researchers typically rely on discrete-time models.
Discrete-time models have a major drawback: they force the user to choose a fixed number of steps (a "partition") during training. This limits the model to a simple ancestral sampling strategy. In contrast, continuous-time models for continuous data (like Score-based SDEs) allow for much more flexible sampling and better theoretical analysis.
Presented at NeurIPS 2022, this paper introduces a mathematically rigorous way to apply the power of continuous-time diffusion models to discrete data. By modeling the "noising" process as a Continuous Time Markov Chain (CTMC), the authors unlock more flexible sampling techniques and better theoretical guarantees, significantly closing the performance gap between discrete and continuous generative models.
Methods: The CTMC Framework
The core innovation of this paper is treating the forward noising process as a Continuous Time Markov Chain (CTMC) rather than a sequence of discrete steps.
- The Forward Process: Instead of discrete transition matrices, the authors define a transition rate matrix $R_t$. This matrix describes the instantaneous probability of a data point jumping from one discrete state to another at any point in continuous time.
- The Reverse Process: They derive the mathematical time-reversal of this CTMC. To make it practical, they train a neural network to estimate the "clean" data distribution given a noisy state, which in turn parameterizes the reverse transition rates.
Tau-Leaping and Advanced Sampling
Simulating a high-dimensional CTMC exactly is computationally expensive because it typically requires one computational step per single-dimension change. To overcome this, the authors borrow a technique from chemical physics called tau-leaping.
Tau-leaping allows the model to "leap" forward in time by a step $\tau$, changing multiple dimensions (e.g., multiple pixels or tokens) simultaneously. This makes the simulation of high-dimensional discrete chains efficient enough for practical generation tasks.
Furthermore, the authors introduce a novel discrete predictor-corrector sampler. The "predictor" takes a tau-leap step, and the "corrector" applies additional steps to pull the sample closer to the true marginal distribution at that time point. This scheme, a staple in continuous SDE-based models, is shown here to significantly improve sample quality for discrete jump processes by "cleaning up" errors introduced by large sampling steps.
Experiments and Key Results
The authors evaluated their framework on three distinct types of data:
- Toy 2D Data: A synthetic dataset arranged in a "$\tau$" shape verified the mathematical framework and the fidelity of the tau-leaping simulation.
- CIFAR-10: Images were treated strictly as discrete 8-bit data (256 possible values per color channel). Their model ($\tau$LDR-10) achieved a Fréchet Inception Distance (FID) of 3.74, vastly outperforming previous discrete-state methods like D3PM (which scored 7.34). This result brings discrete modeling much closer to the performance of continuous models like DDPM (FID 3.17).
- Lakh Pianoroll: On this dataset of monophonic music sequences (129 possible states: 128 notes + 1 rest), the continuous-time uniform rate model outperformed discrete-time counterparts in terms of Hellinger distance and produced fewer "outlier" notes, indicating better stylistic consistency.
Additionally, the continuous-time treatment enabled the authors to derive a novel theoretical bound on the error between the generated sample distribution and the true data distribution. Crucially, they showed the error grows at most quadratically with the dimension $D$, suggesting the method scales well to high-resolution data.
Limitations and Future Work
While tau-leaping is faster than exact simulation, it still requires a significant number of network evaluations (often 500-1000 steps) to reach peak quality. Interestingly, while the model produces better samples than discrete-time models, its ELBO (likelihood) values were slightly lower, indicating a tradeoff where the authors prioritized sample quality over compression performance.
Finally, the study utilized standard U-Net and Transformer architectures. The authors suggest that developing neural architectures specifically tailored to predict discrete transition rates could further close the performance gap with continuous-space models.
Summary updated