Introduction
Continuous diffusion models have revolutionized generative modeling, largely due to the existence of a deterministic "Probability Flow ODE." This flow allows for a one-to-one mapping between noise and data, facilitating tasks like image editing and latent space interpolation. In contrast, discrete diffusion models—essential for categorical data like text or quantized images—have remained inherently stochastic. This stochasticity introduces "sampling uncertainty," where a single noise point can lead to diverse, unpredictable outputs. This paper introduces a framework to bridge this gap by formulating a Discrete Probability Flow (DPF) through the lens of Optimal Transport (OT).
The Theoretical Link: Probability Flow as Optimal Transport
The authors begin by establishing a rigorous mathematical connection between continuous probability flow and Optimal Transport. They prove that under specific conditions, the continuous probability flow corresponds to a Monge optimal transport map. This insight suggests that "flow" in a generative context is essentially the most efficient redistribution of probability mass.
To translate this to the discrete domain, the authors address the "mutual flow" problem. In standard discrete diffusion, probability mass can move between states $A$ and $B$ simultaneously in both directions, creating unnecessary noise. By redefining the transition rate matrix $Q$ using a ReLU-based formulation, the authors ensure that mass moves in a single, optimal direction at any given time, effectively eliminating "wasted" motion.
Discrete Probability Flow (DPF)
Building on the Kantorovich problem—a relaxation of the Monge problem suitable for discrete settings—the authors define the Discrete Probability Flow. The core of this approach is the modification of the reverse transition rate. While standard samplers allow for jumps to any state, the DPF sampler's "reverse generator" restricts transitions. It identifies adjacent states with higher probability densities and "pushes" the sample toward the data distribution along an optimal path. This mechanism mimics the gradient ascent behavior seen in continuous ODE samplers.
Experimental Evaluation
The DPF framework was evaluated on synthetic 2D datasets and the CIFAR-10 benchmark to test its scalability and precision.
Synthetic Datasets
Using seven classic distributions (e.g., 2spirals, checkerboard, swissroll) converted via Gray code, the authors measured the Conditional Standard Deviation (CSD). DPF achieved a staggering 89% reduction in CSD on the checkerboard dataset compared to the Score-based Discrete Diffusion Model (SDDM). Visual analysis confirmed that DPF produces tightly clustered samples from a single noise point, whereas traditional models scatter samples across the distribution.
CIFAR-10
On high-dimensional image data, DPF maintained high generation quality, as measured by Maximum Mean Discrepancy (MMD), while significantly outperforming existing methods like $\tau$LDR-0 in terms of sampling certainty and category consistency. This demonstrates that the deterministic-like behavior of DPF does not come at the cost of overall dataset diversity.
Limitations and Future Directions
While DPF marks a significant advancement, some challenges remain. The current proof of optimality is valid over small time intervals (local optimality); extending this to global optimality across the entire diffusion process is a subject for future research. Additionally, the method requires a neural network to approximate the term $Q_t(y, x)$, which introduces minor fitting errors. Future work will also focus on extending this OT-based framework to a broader range of discrete diffusion architectures.
Conclusion
By framing discrete diffusion as an optimal transport problem, this work provides a robust "probability flow" for categorical data. The resulting Discrete Probability Flow offers a path toward deterministic sampling in discrete spaces, opening new possibilities for precise manipulation and encoding in non-continuous generative models.
Summary updated