Source-linked AI summary

Rectified Diffusion: Straightness Is Not Your Need in Rectified Flow

Fu-Yun Wang, Ling Yang, Zhaoyang Huang, Mengdi Wang, Hongsheng Li

arXiv:2410.07303v2cs.CV

TL;DR

Diffusion models are slow because generation requires expensive ODE solving, while rectified flow seeks straighter paths for fewer-step generation. This paper proposes Rectified Diffusion, retraining on matched noise–sample pairs and targeting first-order approximate ODE paths rather than requiring flow-matching or v-prediction. It reports better performance and training efficiency than rectified-flow baselines, with a stated low-step performance limitation relative to distillation- and GAN-based methods.

  • Problem

    Diffusion generation is slowed by the computational cost of numerically solving generative ODEs.

    Source: §1 · p. 1
  • Method

    Rectified Diffusion retrains pretrained diffusion models using matched noise–sample pairs and targets first-order approximate ODE paths without requiring flow-matching or v-prediction.

    Source: §1 · pp. 2–3
  • Results

    Rectified Diffusion reports superior performance and training-efficiency trade-offs over rectified-flow models, including better performance than InstaFlow’s further-distilled model at 3% of its GPU days.

    Source: §1 · p. 3
  • Takeaways & Limitations

    Rectification can be extended beyond flow-matching to broader diffusion forms, with first-order path behavior rather than straightness as its training target.

    Source: §1 · pp. 2–3

    At low step counts, rectification-based methods still lag state-of-the-art distillation- or GAN-based methods, and additional distillation steps are needed to improve low-step performance.

    Source: II LIMITATIONS · p. 16

Abstract

from arXiv · show

Diffusion models have greatly improved visual generation but are hindered by slow generation speed due to the computationally intensive nature of solving generative ODEs. Rectified flow, a widely recognized solution, improves generation speed by straightening the ODE path. Its key components include: 1) using the diffusion form of flow-matching, 2) employing $\boldsymbol v$-prediction, and 3) performing rectification (a.k.a. reflow). In this paper, we argue that the success of rectification primarily lies in using a pretrained diffusion model to obtain matched pairs of noise and samples, followed by retraining with these matched noise-sample pairs. Based on this, components 1) and 2) are unnecessary. Furthermore, we highlight that straightness is not an essential training target for rectification; rather, it is a specific case of flow-matching models. The more critical training target is to achieve a first-order approximate ODE path, which is inherently curved for models like DDPM and Sub-VP. Building on this insight, we propose Rectified Diffusion, which generalizes the design space and application scope of rectification to encompass the broader category of diffusion models, rather than being restricted to flow-matching models. We validate our method on Stable Diffusion v1-5 and Stable Diffusion XL. Our method not only greatly simplifies the training procedure of rectified flow-based previous works (e.g., InstaFlow) but also achieves superior performance with even lower training cost. Our code is available at https://github.com/G-U-N/Rectified-Diffusion.

1 INTRODUCTION

Diffusion generation is slowed by expensive ODE solving, and rectified flow addresses this by seeking straighter paths for fewer-step generation. The paper argues that matched noise–sample retraining, not flow-matching, v-prediction, or straightness itself, is central to rectification, and proposes Rectified Diffusion around that claim.

1 INTRODUCTION

  • Diffusion models generate high-quality visual content but are slow because generation requires numerically solving an expensive generative ODE.Rectified flow seeks straighter ODE paths to support high-fidelity generation with fewer steps.Source: §1 · p. 1
  • The authors argue rectification works by retraining on matched noise–sample pairs obtained from a pretrained diffusion model, making flow-matching and v-prediction unnecessary.They extend this design to diffusion variants including DDPM, EDM, and Sub-VP.Source: §1 · p. 2
  • Rectified Diffusion keeps the pretrained model’s scheduler, prediction type, architecture, and training and inference code unchanged, changing the training pairs instead.The pairs are pre-collected noise and data generated by the pretrained diffusion model.Source: §1 · p. 2
  • The essential target is a first-order approximate ODE path, not straightness; for DDPM, that path is inherently curved.Straightness is a special case associated with flow-matching, rather than a suitable general target for Rectified Diffusion.Source: §1 · pp. 2–3
  • With only 8% of InstaFlow’s trained images, Rectified Diffusion reports significantly superior one-step performance while leaving the original Stable Diffusion configuration unchanged.The comparison follows InstaFlow’s training setting; Rectified Diffusion does not convert the model to v-prediction flow-matching.Source: §1 · pp. 2–3
  • Rectified Diffusion with consistency distillation and its phased variant reports better performance with lower training cost than rectified-flow approaches, including InstaFlow and PeRFlow.Consistency distillation achieves better performance at 3% of the GPU days of InstaFlow’s further-distilled model; the phased method is evaluated on Stable Diffusion v1-5 and XL.Source: §1 · p. 3

2 RECTIFIED DIFFUSION: GENERALIZING THE DESIGN SPACE OF RECTIFIED

Rectified Diffusion generalizes rectification beyond flow matching by retraining diffusion models with pretrained noise–sample pairs. Its target is a first-order approximate ODE path, which may be curved, and the paper extends the approach with phased rectification and consistency distillation.

2 RECTIFIED DIFFUSION: GENERALIZING THE DESIGN SPACE OF RECTIFIED

  • Rectified flow is a subset of Rectified Diffusion, which accommodates general diffusion forms and prediction types.Prediction types can be converted through re-parameterization.Source: §2 · pp. 3–4

2.1 THE NATURE OF RECTIFICATION IS THE RETRAINING WITH PRE-COMPUTED NOISE-SAMPLE PAIR

  • Rectification training replaces random noise–data pairing with deterministic pairs collected using a pretrained model, then uses those pairs in general diffusion training.Flow matching is a special case of general diffusion training, distinguished by its diffusion form and prediction type.Source: §2.1 · p. 4

2.2 UNDERSTANDING THE FIRST-ORDER ODE (⋆⋆⋆)

  • A first-order ODE path corresponds to the predefined diffusion form with a deterministic noise–data pair, and perfect coupling yields that path in the ideal case without optimization error.Perfect first-order ODEs support identical generation results with arbitrary inference-step counts.Source: §2.2 · p. 5
  • First-order ODE paths can be curved for DDPM and Sub-VP, while simple timestep-dependent scaling converts them to straight lines.Flow Matching and EDM have straight first-order paths, though EDM follows a different trajectory and magnitude from Flow Matching.Source: §2.2 · p. 5, Figure 3 · p. 6

2.3 RECTIFIED DIFFUSION (PHASED)

  • Phased rectification divides the ODE time axis into segments and linearizes each separately, bringing the new path closer to the original than full linearization.The method uses a pretrained diffusion model to solve between intermediate steps and determine corresponding noise and intermediate samples.Source: §2.3 · pp. 5–6

2.4 RECTIFIED DIFFUSION FACILITATES THE CONSISTENCY DISTILLATION

  • After rectification, consistency distillation is reported to train faster and perform better; it further improves low-step performance.Consistency models adjust prediction direction without changing the ODE path, whereas Rectified Diffusion changes the path toward a first-order form.Source: §2.4 · pp. 6–7

3 EMPIRICAL VALIDATION

The evaluation compares Rectified Diffusion with rectified-flow methods across rectification, distillation, and phased ODE segmentation. Rectified Diffusion is reported to outperform rectified-flow methods across quantitative and human-preference comparisons, with lower training costs.

3.1 VALIDATION SETUP

  • The three comparisons cover continued training for rectification, consistency distillation for low-step performance, and phased ODE segmentation on SD and SDXL.The phased variant enforces the first-order property within each sub-phase.Source: §3.1 · p. 8

3.2 COMPARISON

  • Across these three comparative experiments, the authors report significantly superior performance, with lower total training cost than InstaFlow.Rectified Diffusion uses approximately 20 A800 GPU days, compared with InstaFlow's 75.2 A100 GPU days.Source: §3.1 · p. 8, §3.2 · p. 8
  • Rectified Diffusion consistently outperforms rectified-flow methods across FID and CLIP scores, scenarios, and steps, while matching advanced distillation and GAN methods comparably.The comparisons cover COCO-2017 validation and the 30k COCO-2014 validation subset.Source: Table 1 · p. 8, Table 2 · p. 9, §3.2 · p. 10
  • Human-preference evaluations using four scoring models consistently favor Rectified Diffusion over rectified-flow-based models.The evaluation uses 500 unique prompts from the Pick-a-pic validation set.Source: Figure 7 · p. 10, §3.2 · p. 10
  • Consistency distillation uses 4.6 A800 GPU days, approximately 3% of the GPU days reported for InstaFlow distillation.The comparison is 4.6 A800 GPU days versus 110 A100 GPU days.Source: §3.2 · p. 10
  • After 20,000 iterations, Rectified Diffusion achieves superior one-step performance to Rectified Flow using about 8% of its processed samples.The paper attributes this efficiency to avoiding conversion of the original DDPM epsilon-prediction model into a v-prediction flow-matching model.Source: §3.2 · p. 10

4 CONCLUSION

The conclusion identifies retraining with pre-collected noise-image pairs as central to rectification and extends the approach to general diffusion forms. It emphasizes first-order behavior rather than straightness, with consistency distillation and phased rectification further improving efficiency and performance.

  • Rectified Diffusion extends rectification to general diffusion forms, with first-order behavior—not straightness—as its essential training target.The conclusion also reports that consistency distillation and the phased variant further enhance training efficiency and model performance.Source: §4 · p. 11

I RELATED WORKS

Related work covers diffusion-model development and sampling acceleration, then positions rectified flow as a path-straightening approach later extended to large text-to-image generation and multi-phase methods.

  • Diffusion research spans theory, design-space expansion, architecture, scaling for text-conditioned synthesis, and sampling acceleration through scheduler refinement, distillation, or GAN initialization.The passage cites work across these directions, including scheduler-level PF-ODE approximation and training-level acceleration.Source: I RELATED WORKS · p. 16
  • Sampling acceleration includes both scheduler-level PF-ODE approximation and training-level distillation or diffusion-weight initialization for GAN training.These approaches are presented as distinct training- and scheduler-level directions.Source: I RELATED WORKS · p. 16
  • Rectified flow uses flow matching to straighten diffusion ODE paths; later work scales it to one-step text-to-image generation and explores multi-phase paths and optimization.The passage also notes analysis suggesting one-time rectification can generally achieve pure straightness.Source: I RELATED WORKS · p. 16

II LIMITATIONS

At low step counts, rectification methods still lag leading distillation and GAN methods, and additional distillation is needed to improve that regime. The proof section states that the relevant ODE transition equivalence holds exactly when epsilon predictions are constant along a trajectory.

II LIMITATIONS

  • At low step counts, rectification methods lag state-of-the-art distillation and GAN methods, and additional distillation is needed to improve performance.Source: II LIMITATIONS · p. 16

III PROOF FOR FIRST-ORDER ODE

  • The proof establishes that the two ODE transition forms are equivalent for arbitrary times if and only if epsilon prediction is constant along the trajectory.Source: III PROOF FOR FIRST-ORDER ODE · p. 17
Loading 2410.07303v2…