Discrete Flow-based Models (DFMs) are powerful tools for generating high-quality images and text. However, they are notoriously slow, typically requiring many iterative steps to produce coherent outputs. ReDi (Rectified Discrete Flow) introduces a novel approach to solve this bottleneck by iteratively "rectifying" the coupling between noise and data. This reduces the mathematical error caused by assuming data dimensions are independent, allowing ReDi to achieve high-quality results in just a few steps—or even a single step—significantly outperforming existing distillation methods.
The Problem: Factorization Approximation
Generating high-dimensional discrete data, such as a grid of image tokens or a sequence of text, is computationally demanding. To make this tractable, most DFMs rely on a factorization approximation. When the model transitions from one state to the next, it assumes each dimension (e.g., each pixel or word) is independent of the others, given the previous state.
While this approximation holds up during "slow" generation with many tiny steps, it breaks down catastrophically during "fast" generation with large steps. In few-step scenarios, the model fails to capture the complex correlations between dimensions. This leads to glaring structural artifacts—such as the "two-headed goldfish" often seen in low-step MaskGIT outputs. Existing solutions usually involve complex "knowledge distillation," where a fast student model tries to mimic a slow teacher, but these methods are memory-intensive and difficult to train.
The ReDi Solution: Straightening the Path
The authors introduce ReDi as an iterative method to "straighten" the probabilistic path between the source distribution (noise) and the target distribution (data).
- Conditional Total Correlation (TC): The authors identify TC as the key metric quantifying factorization error. High TC means dimensions are highly dependent; low TC means the factorized approximation is accurate.
- The Rectification Loop: ReDi operates on a simple but effective loop:
- Train a DFM on the current data-noise pairs (the "coupling").
- Use that trained model to generate a new set of pairs.
- Use these new pairs to train the next version of the model.
- Theoretical Guarantee: The paper provides a formal proof that each iteration of this process monotonically decreases the Conditional TC, effectively "simplifying" the mapping the model needs to learn.
- Perturbed Rectification: For high-cardinality data like text, where the state space is massive, ReDi employs a "perturbed" strategy. Instead of starting from pure noise, the model starts from real data, adds a bit of noise, and then "rectifies" that specific transition. This prevents the model from drifting too far from the real data distribution.
Key Results and Visual Coherence
The "aha moment" of ReDi is realizing that the bottleneck for fast sampling isn't just the model architecture—it's the way we pair noise with data. By iteratively updating these pairs, ReDi creates a "straighter" path that the factorized model can follow in a single jump.
Evaluated on ImageNet (256x256 images as 16x16 VQ tokens), ReDi achieved a massive one-step breakthrough. It reached an FID of 11.68 in a single step. For context, the baseline MaskGIT scored a dismal 95.16, and previous distillation methods like Di4C only reached ~90. Qualitative results clearly show that ReDi-generated images possess significantly better global structure (e.g., the correct number of heads and limbs) compared to other few-step models, proving that reducing TC successfully captures inter-dimensional correlations.
Text Generation Speedups
ReDi's efficiency extends beyond images. The authors also evaluated the model on OpenWebText, generating long-form text sequences of 1024 tokens using a GPT-2 tokenizer.
For text generation, ReDi achieved quality comparable to a 1024-step teacher model in just 8 to 16 steps. This represents a staggering 64x to 128x speedup. Furthermore, ReDi is highly data-efficient; the rectification process doesn't even need the full dataset to saturate the model's performance.
Limitations and Future Work
While ReDi offers a simple, plug-and-play alternative to distillation, it is not without limitations:
- Error Propagation: Because ReDi relies on an iterative refinement method, if the model used to generate the new "rectified" pairs is poor, errors can accumulate over successive iterations.
- Autoregressive Models: Currently, ReDi focuses on non-autoregressive (parallel) decoding. Extending this framework to autoregressive models—the standard for modern LLMs—could be a highly promising avenue for speeding up sequential sampling.
- Theoretical Gaps: While the proof for monotonic TC decrease is strong, a deeper theoretical link between discrete rectification and its continuous-domain counterpart (Rectified Flow) remains an open area of exploration.
Summary updated