Introduction
Discrete Flow Models (DFMs) have emerged as a compelling alternative to discrete diffusion models for learning distributions over finite state spaces, such as text tokens or quantized image features. However, standard sampling techniques for DFMs suffer from high discretization errors, creating a bottleneck for efficient generation. This paper introduces two novel approaches—Time-Corrected (TC) and Location-Corrected (LC) samplers—that significantly reduce these errors with virtually no extra computational cost, enabling faster and higher-quality generation for complex tasks like text-to-image synthesis.
The Bottleneck in Discrete Flow Models
Current sampling methods, such as tau-leaping and Euler solvers, are computationally inefficient. They operate under the assumption that the rate at which a state changes remains constant throughout a discrete time interval (a "frozen" rate). To keep the resulting discretization error manageable, practitioners must use very small time steps, often leading to hundreds of iterations and sluggish inference times.
Furthermore, existing theoretical guarantees for these samplers rely on restrictive assumptions, like bounded transition rates or specific uniform starting distributions, which frequently fail to hold in real-world scenarios.
Proposed Methodology: Correcting the Samplers
The authors establish a unified theoretical framework that proves error bounds for standard samplers without relying on restrictive assumptions. By conducting a "one-step lower bound" analysis, they pinpoint exactly where the Euler sampler falls short: the error stems from both a "time-lag" and a "location-lag." To combat these specific error sources, they propose two corrected samplers:
1. Time-Corrected Sampler (TC)
Standard samplers freeze both the neural network's output (the posterior) and the time-dependent schedule (how fast the process moves through the flow). The TC sampler allows the time schedule to vary continuously within the step while only freezing the neural network output. This yields a closed-form "survival function" that makes jump timing significantly more accurate.
2. Location-Corrected Sampler (LC)
Inspired by randomized midpoint methods, the LC sampler re-evaluates the neural network after the first jump occurs within a time interval. It treats the step as a two-stage process, correcting the trajectory based on the new state.
Crucially, both methods maintain parallelism, allowing all dimensions of a data point (e.g., all pixels in an image) to be updated simultaneously.
Theoretical Insights and Complexity Gains
A major contribution of this work is the rigorous proof that the LC sampler boasts a lower iteration complexity than standard parallel samplers. Specifically, in cases where the model is time-independent (such as masked language modeling), the dependence on the dimension $D$ improves from $D^2$ to $D^{3/2}$.
Because these corrections primarily involve changing the interpretation of the time variable or adding at most one extra function call only when a jump actually occurs, the "wall-clock" time increase is negligible compared to the massive gains in accuracy.
Experimental Validation
The researchers evaluated their samplers across two distinct domains:
- Low-Dimensional Simulations: Using a 9-dimensional synthetic dataset with a vocabulary size of 8 and a complex "blockwise AR(1)" structure, the corrected samplers reached lower Total Variation (TV) error levels much faster than tau-leaping, Euler, or even higher-order Runge-Kutta (RK2) samplers.
- High-Dimensional Text-to-Image: The authors applied their methods to the FUDOKI model (a state-of-the-art DFM) on a 576-dimensional space with a massive vocabulary of 16,384. On the GenEval benchmark, the Time-Corrected sampler achieved an overall score of 72.19 in just 8 steps, significantly outperforming the standard Euler sampler's score of 68.32 at the same step count. The Location-Corrected sampler similarly achieved better generation quality than standard methods while requiring fewer total iterations.
Limitations and Future Directions
The authors note that when the neural network's prediction changes very rapidly over time, the error remains dominated by the "time-Lipschitz" constant of the network. To address this and further advance the field, they propose several future directions:
- Average Rate Modeling: Training models to predict the average transition rate over an interval, rather than at a specific instant, could further smooth out discretization errors.
- Few-Step Optimization: Pushing the limits of the "few-step" regime (generating an image in 1–4 steps) remains a challenge that requires specialized theoretical analysis.
- Multistage Samplers: Extending the two-stage LC sampler to a $J$-stage sampler could potentially approach the accuracy of exact (but slow) simulation methods while preserving generation speed.
Summary updated