LEARNING STRAIGHT FLOWS BY LEARNING CURVED INTERPOLANTS

Shiv Shankar, Tomas Geffner

TL;DR

Standard flow matching models use straight-line interpolants during training, which paradoxically leads to curved marginal vector fields and slow, step-heavy ODE sampling. This paper flips the script by training curved, learnable interpolants designed specifically to produce straight marginal vector fields. The result is an end-to-end, simulation-free training framework that enables high-quality image generation in as few as 2 to 6 function evaluations.

What Problem Does This Paper Address?

Continuous Normalizing Flows (CNFs) and Flow Matching (FM) generate data by learning a neural velocity field that pushes samples from a simple prior (like a Gaussian) to a target data distribution. To generate an image at test time, one must integrate an ordinary differential equation (ODE) numerically.

Standard flow matching uses simple linear interpolants ($x_t = t x_1 + (1-t) x_0$) with independent coupling between noise and data. Even though individual conditional paths are straight, their average—the true marginal velocity field—is fundamentally curved. Navigating curved trajectories requires numerical solvers to take many small integration steps (a high Number of Function Evaluations, or NFE) to prevent discretization errors. While previous works try to "straighten" flows via multi-stage distillation (e.g., Rectified Flow) or optimal transport couplings, these approaches are computationally expensive and often require simulating ODE trajectories during training.

Methods

Instead of using rigid linear interpolants and trying to approximate straightness after the fact, the authors propose learning flexible parametric interpolants $x_t = \phi_{t, x_1}(x_0)$ so that the resulting vector field is straight by design.

  1. Bi-Level Optimization Formulation: The goal is formulated as choosing interpolant parameters $\phi$ to minimize the curvature of the optimal velocity field $v^*_\phi$.
  2. Analytic Form for the Optimal Flow Field: Rather than training a neural field to convergence inside an optimization loop, the authors analytically derive the Bayes-optimal velocity field $v^*_\phi(t, x_t)$ for any invertible interpolant: $$v^*_\phi(t, x_t) = \frac{\int \partial_t \phi_{t, x_1}(\phi^{-1}_{t, x_1}(x_t))\, p_0(\phi^{-1}_{t, x_1}(x_t))\, |J|\, p_1(x_1)\, dx_1}{\int p_0(\phi^{-1}_{t, x_1}(x_t))\, |J|\, p_1(x_1)\, dx_1}$$ where $|J|$ is the Jacobian determinant of $\phi^{-1}_{t, x_1}$.

  3. Straightness Regularization via Velocity Consistency: Straight paths require zero acceleration along the trajectory ($\partial_t u + \nabla_x u \cdot u = 0$). To avoid differentiating through complex integrals, the authors replace the derivatives of $v^*$ with derivatives of the parameterized flow network $v_\theta$: $$\min_{\theta, \phi} \mathbb{E}\left[ \|v_\theta(x_t, t) - \text{sg}(\partial_t \phi_{t, x_1}(x_0))\|^2 + \lambda \|\partial_t v_\theta(x'_t, t) + \nabla_x v_\theta(x'_t, t) \cdot v^*(x'_t, t)\|^2 \right]$$

  4. Scalable Invertible Architecture: To efficiently compute inverses $\phi^{-1}$ and Jacobian determinants $|J|$ in high dimensions, the interpolant $\phi$ is parameterized using invertible neural network layers inspired by GLOW (specifically, $1\times 1$ convolutions with PLU decomposition).

Datasets

The authors evaluate their method on standard generative modeling benchmarks:

  • Low-resolution: CIFAR-10 ($32 \times 32$) and downsampled ImageNet ($32 \times 32$).
  • High-resolution: CelebA-HQ ($256 \times 256$) and AFHQ-Cat ($256 \times 256$).

No new datasets were introduced. Baselines include Consistency Models, Rectified Flow (ReFlow), Consistency Flow Matching, and Neural Flow Diffusion Models (NFDM).

Key Insights and Ideas

  • Curved + Curved = Straight: Counter-intuitively, allowing individual conditional trajectories to be curved gives the model the degree of freedom it needs to ensure the aggregate vector field points in a constant direction.
  • Bypassing the Bi-level Bottleneck: Typical bi-level optimization requires costly implicit differentiation or inner loops. Deriving an exact closed-form expression for the optimal conditional velocity field allows the outer objective to directly penalize trajectory curvature.
  • Multi-sample Target Estimation: Approximating the integral for $v^*$ using mini-batch empirical samples acts as a variance-reduction technique across trajectories, stabilizing training.

Key Results

The method delivers substantial gains in sample quality (measured by Fréchet Inception Distance, FID) at very low sampling steps (NFE):

  • CIFAR-10 (2 NFE): Achieves an FID of 4.61, outperforming Consistency Models (5.83) and Consistency Flow Matching (5.34).
  • ImageNet $32 \times 32$:
  • At 4 NFE, achieves 5.58 FID (vs. 6.1 for NFDM and 17.3 for MultiSample FM).
  • At 12 NFE, achieves 3.84 FID, outperforming standard Flow Matching with 120 NFE (5.0 FID).
  • CelebA (6 NFE): Achieves an FID of 28.6, dramatically outperforming 1-Rectified Flow (127.0), ReFlow with Bellman sampling (72.5), and Consistency Flow Matching (36.4).

Limitations and Future Work

  • Invertibility Constraints: The interpolant requires tractable inverses and Jacobian determinants, restricting the choice of neural architectures for $\phi$ to normalizing-flow-style architectures (such as GLOW), which may be harder to scale than standard unconstrained architectures.
  • Empirical Integration Cost: Estimating $v^*$ requires evaluating batches with larger sample counts ($M \ge N$), adding per-iteration computational overhead during training.
  • Synergy with Consistency Distillation: The authors note that learning straight vector fields is complementary to consistency models (which learn to jump along fields). Combining learned curved interpolants with consistency training remains an open direction.

Summary updated

BibTeX
@inproceedings{shankar2025learning,
  author = {Shiv Shankar and Tomas Geffner},
  title = {{LEARNING STRAIGHT FLOWS BY LEARNING CURVED INTERPOLANTS}},
  booktitle = {DeLTa @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=9bJ2PJFNX4},
}
Figure