Text-to-Image Rectified Flow as Plug-and-Play Priors

Xiaofeng Yang, Chen Cheng, Xulei Yang, Fayao Liu, Guosheng Lin

Large-scale diffusion models have achieved remarkable performance in generative tasks. Beyond their initial training applications, these models have proven their ability to function as versatile "plug-and-play" priors. For instance, 2D diffusion models can serve as loss functions to optimize 3D implicit models. However, a novel class of generative models known as Rectified Flow has recently demonstrated superior performance across various domains, surpassing diffusion-based methods in both generation quality and efficiency.

This paper explores how Rectified Flow models (such as Stable Diffusion 3) can be adapted into the plug-and-play prior framework. By introducing RFDS and its enhanced version RFDS-Rev, the authors achieve state-of-the-art text-to-3D generation and image editing results that are higher quality and significantly faster than traditional diffusion-based methods.

The Problem with Diffusion Priors

In recent years, 2D diffusion models have been widely used as priors—essentially acting as a "critic" or loss function—to guide the optimization of other structures. A prominent example is lifting 2D images into 3D models using techniques like DreamFusion's Score Distillation Sampling (SDS) loss.

Unfortunately, diffusion-based priors often suffer from several critical drawbacks:

  • Over-saturation and Blurriness: The optimization tends to produce overly smoothed or unnaturally saturated colors.
  • The "Janus" Problem: Models struggle with multi-face geometric inconsistencies (e.g., generating a 3D animal with two faces).
  • Slow Convergence: The optimization process is computationally heavy and time-consuming.

Rectified Flow emerges as a promising alternative. It connects data and noise via straight-line trajectories, making it more efficient and easier to sample. This research bridges the gap by proving that Rectified Flow models can overcome the limitations of their diffusion predecessors when used as priors.

Proposed Methods: Distilling Rectified Flow

The authors propose three primary distillation methods based on the Rectified Flow framework:

  1. RFDS (Rectified Flow Distillation Sampling): This baseline method is analogous to the SDS used in diffusion. It calculates gradients by reversing the flow-matching training process. The authors mathematically prove that when applied to diffusion models, RFDS is identical to SDS.
  2. iRFDS (inverse RFDS): Leveraging the unique time-symmetry of Rectified Flow—where the path from noise to image is a straight line—the authors created a method to map an image back to its original noise representation. This inversion is essential for high-fidelity 2D image editing.
  3. RFDS-Rev (RFDS Reversal): This is the flagship method for 3D generation. Standard RFDS, like SDS, tends to produce blurry results because it averages gradients over random noise (the "averaging trap"). RFDS-Rev solves this using a two-stage process: first, it uses iRFDS to find a "static" noise point corresponding to the current state of the 3D model; then, it applies RFDS using that specific noise. This "anchoring" significantly improves detail and color accuracy.

Key Results and Applications

2D editing and 3D generation results using Rectified Flow priors.

The researchers evaluated their methods using the T3Bench dataset for 3D generation and a real-world image collection for 2D editing, utilizing Stable Diffusion v3 (SD3) and InstaFlow as base models.

  • Text-to-3D Superiority: On the T3Bench dataset, RFDS-Rev + SD3 achieved an average score of 56.5, significantly outperforming ProlificDreamer (VSD) at 46.4 and Dreamfusion (SDS) at 20.5. It currently sets a new benchmark for "2D lifting" methods across all tested categories.
  • High-Fidelity 2D Editing: In user studies, the iRFDS method was preferred 43.6% of the time for semantic coherence, compared to only 20.1% for the popular "Null Inversion" diffusion method.
  • Massive Efficiency Gains: Because Rectified Flow is inherently more direct, the optimization converges much faster. Generating a 3D scene with RFDS-Rev takes less than 20 minutes, compared to 40 minutes for SDS and over 1.5 hours for VSD.

Key Insights

  • Straight Lines Matter: The straight-line trajectories of Rectified Flow aren't just for fast sampling; they make "inversion" (finding the noise that created an image) much more stable and accurate than in diffusion models.
  • Solving the "Averaging" Trap: The mode-seeking nature of standard distillation leads to blurred results because the model tries to satisfy many random noise samples at once. RFDS-Rev ensures the optimization is always pointing toward a specific, consistent data-noise pair.

Limitations and Future Work

While Rectified Flow priors offer a massive leap forward, some challenges remain. Like all methods relying on 2D priors for 3D generation, the model occasionally suffers from the "Janus" issue, as the 2D prior lacks inherent 3D geometric understanding. Additionally, the current version of iRFDS does not fully account for Classifier-Free Guidance (CFG) scale mismatches, which can occasionally affect color saturation. Future work may involve combining these methods with pose-aware 2D models to further resolve 3D consistency.

Summary updated

BibTeX
@inproceedings{yang2025text,
  author = {Xiaofeng Yang and Chen Cheng and Xulei Yang and Fayao Liu and Guosheng Lin},
  title = {{Text-to-Image Rectified Flow as Plug-and-Play Priors}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=SzPZK856iI},
}
Figure