On the Convergence and Straightness of Rectified Flow

Vansh Bansal, Saptarshi Roy, Alessandro Rinaldo, Purnamrita Sarkar

TL;DR

This paper provides the first formal theoretical link between the geometric straightness of a generative flow and its sampling efficiency by introducing a novel Piecewise Straightness parameter ($\gamma_{2,T}$). The authors prove that minimizing path curvature directly reduces discretization error, and they identify specific conditions under which a two-step Rectified Flow (2-RF) becomes perfectly straight, mathematically justifying flawless one-step generation.

What Problem Does This Paper Address?

Flow-based generative models, such as Flow Matching and Rectified Flow (RF), generate data by transporting a simple noise distribution (like a Gaussian) to a complex target distribution along a continuous path. To sample from these models, practitioners use numerical ODE solvers. However, if the generated trajectories are highly curved and nonlinear, these solvers require many small steps ($T$) to avoid large discretization errors, making generation computationally expensive.

While empirical breakthroughs (like Stable Diffusion 3) show that Rectified Flow can generate high-quality images in just a few steps by straightening these trajectories through an iterative "reflow" procedure, a rigorous mathematical foundation was missing. This paper bridges the gap by answering two fundamental questions:

  1. How exactly does the straightness of a flow affect its sampling efficiency?
  2. Under what conditions does the reflow procedure guarantee a perfectly straight path?

Methods

The authors tackle this problem by introducing a new mathematical framework to quantify and analyze path geometry:

  • Piecewise Straightness (PWS) Parameter ($\gamma_{2,T}$): Instead of measuring straightness based only on the endpoints of a path, the authors define PWS by measuring the maximum average acceleration (curvature) of the flow across discrete sub-intervals.
  • Wasserstein Convergence Bound: They derive the first 2-Wasserstein distance error bound that explicitly incorporates this straightness parameter, proving how error scales relative to the number of discretization steps $T$.
  • Jacobian Analysis for Reflow: By analyzing the ordinary differential equation governing the flow's Jacobian matrix, they establish a sufficient condition (based on the minimum eigenvalue of the Jacobian) under which a single rectification step (1-RF) yields a straight coupling. This ensures that the subsequent flow (2-RF) has zero curvature.
  • Monge Optimality Connection: They identify a commutativity condition on the velocity drift gradients that guarantees the rectified flow aligns with the Monge optimal transport map (the path of least kinetic energy).

Datasets

The theoretical insights were validated using both synthetic and real-world datasets:

  • Synthetic Data: Gaussian-to-Gaussian flows, Gaussian-to-Gaussian-Mixture flows, and multi-component Checker-board distributions.
  • Real-World Data: Subsets of the MNIST, FashionMNIST, and CelebA datasets, curated with varying numbers of classes/modes to evaluate how data complexity impacts path straightness.

Key Insights and Ideas

  • Curvature Over Endpoint Distance: Prior metrics for straightness could be misleadingly small for highly oscillating, "wavy" paths. The new PWS metric correctly identifies rapid oscillations as a departure from straightness because it tracks acceleration along the path.
  • Separation Matters More Than Cluster Count: For Gaussian mixture distributions, the flow's curvature depends heavily on the maximum distance between cluster means ($D$), but is surprisingly independent of the number of mixture components ($K$).
  • The Magic of 2-RF: The paper provides the first concrete proof that under certain geometric conditions, a 2-rectification procedure (2-RF) makes the flow perfectly straight ($\gamma_{2,T} = 0$). This completely eliminates discretization error from the bound, explaining why one-step sampling is empirically viable.

Key Results

  • Discretization Error Scaling: The authors prove that the discretization error scales as $\mathcal{O}(\gamma_{2,T}/T^2)$. If a flow is near-straight ($\gamma_{2,T} \approx 0$), accurate data generation can be achieved with very few steps.
  • Reflow Efficiency: Empirical results demonstrate that $\gamma_{2,T}$ drops dramatically after the first reflow step.
Figure 1: For mixtures-of-Gaussians target distribu- tions with varying components K and maximum mean separation D (see details in Appendix A.1), the figure shows (a) ˆγ2,T (Z) vs T for the 1-RF flow (b) ˆγ2,T (Z) vs T for the 2-RF flow
  • Dataset Complexity Impact: Experiments on CelebA confirm that increasing mode complexity (e.g., moving from a homogeneous "Blonde Female" subset to "All Classes") increases the Wasserstein error for a fixed number of steps, confirming that more complex data distributions naturally induce more curved, harder-to-sample flows.

Limitations and Future Work

  • Conservative Conditions: The sufficient condition identified for perfect straightness (Assumption 2) relies on matrix eigenvalues that are difficult to verify analytically for highly complex, real-world image distributions.
  • Open Conjecture: Empirical simulations suggest that the global invertibility of the transport map holds under much milder conditions than those proven. The authors formalize a conjecture that the map remains globally invertible for any general mixture of Gaussians target distribution when starting from a standard Gaussian, leaving its proof as an open challenge for the community.

Summary updated

BibTeX
@inproceedings{bansal2026convergence,
  author = {Vansh Bansal and Saptarshi Roy and Alessandro Rinaldo and Purnamrita Sarkar},
  title = {{On the Convergence and Straightness of Rectified Flow}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=qKKxzTucgy},
}
Figure