TL;DR
This paper introduces the first framework to utilize pretrained text-to-image Rectified Flow models as plug-and-play priors (loss functions) for downstream tasks. By proposing Rectified Flow Distillation Sampling (RFDS) and its reversal variant (RFDS-Rev), the authors achieve state-of-the-art text-to-3D generation and 2D image editing while significantly reducing optimization time compared to traditional diffusion-based priors.
What Problem Does This Paper Address?
Generative AI has seen a massive shift from standard 2D image synthesis to complex downstream applications like text-to-3D generation and real-image editing. Traditionally, this "lifting" from 2D to 3D relies on pretrained diffusion models acting as optimization priors via algorithms like Score Distillation Sampling (SDS) or Variational Score Distillation (VSD).
Recently, Rectified Flow (RF) models (such as Stable Diffusion v3 and InstaFlow) have emerged as powerful alternatives to diffusion models, offering straight-line trajectories between noise and data that lead to better image quality and faster inference. However, it remained an open question whether these large-scale RF models could be repurposed as effective plug-and-play priors. This paper bridges that gap, establishing a theoretical and practical foundation for utilizing rectified flow models as optimization losses.
Methods
The authors introduce three core distillation methods based on the generalized Stochastic Interpolants framework:
- RFDS (Rectified Flow Distillation Sampling): A baseline method analogous to diffusion-based SDS. It calculates the gradients of an input image by reversing the flow-matching training process. Crucially, the authors find that dropping the network's Jacobian matrix (setting it to the identity matrix) is necessary to make the optimization computationally tractable and stable.
- iRFDS (inverse RFDS): Capitalizing on the unique time-symmetry property of rectified flows (the ability to flow seamlessly from noise to image and back), iRFDS takes the "negative gradient" of RFDS to optimize latent noise. This enables high-quality image inversion and prompt-based editing.
- RFDS-Rev (RFDS Reversal): Standard SDS-like losses often suffer from over-smoothing and a lack of detail due to their mode-seeking nature. RFDS-Rev addresses this via a two-stage iterative process: it first uses iRFDS to perform noise reversal (finding a static, optimal noise map for a given view), and then applies RFDS to refine the content based on that specific noise.
Datasets
The authors evaluated their approach across both 2D and 3D tasks using:
- T3Bench: The largest available text-to-3D benchmark, consisting of 300 text prompts categorized into single objects, surroundings, and multiple objects.
- 2D Image Editing Dataset: A collection of 15 real-world images randomly sourced from the internet to evaluate image inversion and prompt-faithful editing.
Key Insights and Ideas
- The Power of Time-Symmetry: Unlike diffusion models where noise corruption is stochastic, rectified flows define a deterministic, straight-line trajectory. This allows iRFDS to trace an image back to its exact latent noise representation far more effectively than standard diffusion inversion techniques.
- Bridging the Gap to Euler Sampling: The authors mathematically demonstrate that standard RFDS fails to generate sharp details because it samples random noise at each step, leading to an "averaged" blurry gradient. RFDS-Rev fixes this by finding a static noise map per view, effectively aligning the optimization process with high-quality deterministic Euler sampling.
- Direct Objective Learning: Rectified flow priors guide the optimization toward a direct velocity objective ($v_\phi + \epsilon$), whereas diffusion models rely on the difference between predicted noises. This fundamental difference explains why RF priors converge much faster.
Key Results
Text-to-3D Generation
When evaluated on T3Bench, RFDS-Rev combined with Stable Diffusion v3 (SD3) achieved a new state-of-the-art average quality score of 56.5, comfortably outperforming diffusion-based ProlificDreamer (VSD) at 46.4 and Dreamfusion (SDS) at 20.5.
| Method | Base Model | Single Object | Surroundings | Multiple Objects | Average |
|---|---|---|---|---|---|
| Dreamfusion (SDS) | Diffusion | 24.9 | 19.3 | 17.3 | 20.5 |
| ProlificDreamer (VSD) | Diffusion | 51.1 | 42.5 | 45.7 | 46.4 |
| RFDS-Rev (Ours) | SD3 (RF) | 59.8 | 54.5 | 55.2 | 56.5 |
Computational Efficiency
Using the InstaFlow backbone, generating a single 3D scene via RFDS takes less than 20 minutes on an NVIDIA A6000 GPU. In comparison, the diffusion-based SDS baseline takes 40 minutes, and VSD requires over 1.5 hours.
2D Image Editing
In user preference studies for 2D image editing, iRFDS paired with InstaFlow was heavily favored over diffusion-based alternatives (DDS and Null Inversion) for both semantic coherence (43.6% preference) and background consistency.
Limitations and Future Work
Because the underlying 2D rectified flow models are not natively aware of 3D camera poses, the framework still occasionally suffers from the notorious "Janus (multi-face) problem" in 3D generation, where an object might generate multiple front faces. The authors suggest that integrating pose-aware multi-view data into the base RF models is a promising direction to solve this. Additionally, the current iRFDS method does not fully account for Classifier-Free Guidance (CFG) mismatches during inversion, which could be improved by combining it with null-text inversion techniques.
Summary updated