ReDi: Rectified Discrete Flow

Jaehoon Yoo, Wonjung Kim, Seunghoon Hong · DOI

TL;DR

This paper introduces ReDi (Rectified Discrete Flow), a novel method to accelerate discrete generative models (DFMs) by directly addressing the "factorization error" that hinders efficient few-step generation. ReDi iteratively "rectifies" the coupling between data distributions, theoretically guaranteeing convergence to a lower-error coupling, which then enables faster and higher-quality generation, even in a single step.

What Problem Does This Paper Address?

Discrete Flow-based Models (DFMs) are powerful for generating high-quality discrete data like images and text. However, they suffer from slow sampling speeds because they rely on iterative, multi-step decoding processes. This slowness stems from an approximation made to handle high-dimensional data: the factorization approximation, which assumes independence between dimensions given previous states. This assumption becomes increasingly inaccurate for longer steps, leading to a "factorization error" that degrades generation quality and speed. Existing solutions often involve complex distillation techniques, requiring separate teacher and student models and specialized training.

Methods

The core of ReDi is an iterative process to "rectify" the coupling between the source and target distributions. This rectification aims to reduce the factorization error, which the authors quantify using Conditional Total Correlation (TC).

  1. Factorization Error Analysis: The paper first analyzes the factorization error in DFMs, characterizing it using Conditional Total Correlation (TC). They show that this error is dependent on the "coupling" (the joint distribution of source and target states).
  2. Coupling Rectification: ReDi iteratively refines this coupling. In each iteration, a DFM is trained with the current coupling. Then, this trained DFM is used to generate new sample pairs (X0, X1). These new pairs form a new coupling, denoted πk+1, which is theoretically proven to have a lower or equal Conditional TC than the previous coupling πk.
  3. Perturbed Rectification: For high-dimensional data like text, a "perturbed rectification" strategy is introduced. Instead of directly sampling X0 and then generating X1, this method samples a target X1, perturbs it to an intermediate state Xt, and then generates X1 from Xt. This helps to reduce the discrepancy between the rectified coupling and the true target distribution.
  4. One-Step Generation: The rectified couplings, with their reduced factorization error, are then used to train efficient one-step generative models, bypassing the need for slow iterative decoding.

Datasets

The paper evaluates ReDi on two benchmark datasets:

  • ImageNet: Used for class-conditional image generation. Images are represented as vector-quantized tokens.
  • OpenWebText: Used for text generation.

Key Insights and Ideas

  • Factorization Error is Key: The paper pinpoints the factorization approximation as the primary bottleneck for efficient few-step generation in DFMs, rather than just the "path straightness" seen in continuous flows.
  • Coupling is the Lever: The core insight is that the factorization error is directly tied to the coupling between distributions. By rectifying this coupling, the error can be systematically reduced.
  • Theoretical Guarantee: ReDi offers a theoretical guarantee that each rectification step monotonically decreases the Conditional TC, ensuring convergence to a better coupling.
  • Simplicity and Generality: ReDi is presented as a simpler alternative to distillation methods, not requiring specialized training objectives or separate teacher/student models, making it broadly applicable.
  • One-Step Advantage: Rectified couplings are shown to be particularly effective for training highly efficient one-step generative models, often outperforming multi-step approaches.

Key Results

  • Image Generation: ReDi significantly improves 4-step generation performance over its teacher model (MaskGIT), achieving comparable results to advanced distillation baselines (Di4C, SDTT). Crucially, ReDi enables highly competitive one-step generation, outperforming other one-step methods and approaching the quality of multi-step models. For instance, ReDi³-distill achieved an FID of 11.67 and IS of 181 for one-step generation.
  • Text Generation: ReDi consistently yields lower perplexity across few-step settings, achieving performance comparable to the teacher model (DUO+DCD) at significantly fewer steps (e.g., 16 and 8 steps instead of 1024).
  • Reduced Conditional TC: Ablation studies empirically demonstrate that ReDi iteratively decreases Conditional TC, supporting the theoretical findings.

Limitations and Future Work

  • Continuous vs. Discrete Flow Connection: The paper notes that the theoretical connection between ReDi (discrete) and Rectified Flow (continuous) is not fully elucidated. Deeper theoretical understanding could lead to unified frameworks.
  • Autoregressive Models: The current work focuses on non-autoregressive DFMs. The authors suggest exploring ReDi's extension to autoregressive models to accelerate their slow sampling.
  • Marginal Approximation Error: The perturbed rectification strategy was introduced to mitigate potential accumulation of marginal approximation errors, especially in high-cardinality data. Further investigation into this trade-off might be beneficial.

Summary updated

BibTeX
@inproceedings{yoo2025redi,
  author = {Jaehoon Yoo and Wonjung Kim and Seunghoon Hong},
  title = {{ReDi: Rectified Discrete Flow}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=49QC2D8exO},
}
Figure