Learning Straight Flows by Learning Curved Interpolants

Shiv Shankar, Tomas Geffner

TL;DR

Flow matching models typically suffer from slow sampling because their underlying generative vector fields are highly curved. This paper introduces a novel, simulation-free framework that learns flexible, curved interpolants during training to explicitly straighten the resulting vector field, enabling high-quality image generation in as few as two steps.

What Problem Does This Paper Address?

Continuous Normalizing Flows (CNFs) and Flow Matching (FM) models generate data by transporting simple noise distributions into complex data distributions along a learned velocity vector field. To train these models, researchers typically define simple linear paths (interpolants) between pairs of noise and data points.

However, there is a catch: when you aggregate these independent linear paths across an entire dataset, the resulting marginal vector field ends up highly curved. Simulating a curved trajectory requires a numerical ODE solver to take many tiny steps (a high Number of Function Evaluations, or NFE), making sample generation painfully slow. While prior methods have attempted to "straighten" these flows, they usually rely on expensive simulation-based training or iterative distillation.

Methods

The authors flip the standard approach on its head: to get a straight velocity field, you should learn curved conditional paths.

Standard FM:  Linear Interpolants  ---> Curved Vector Field (Slow Sampling)
This Paper:   Curved Interpolants  ---> Straight Vector Field (Fast Sampling)

They parameterize these flexible interpolants using an invertible neural network architecture (specifically GLOW / 1x1 convolutions). They frame the task as a bi-level optimization problem:

  1. Outer loop: Optimize the straightness of the vector field by tuning the interpolant parameters.
  2. Inner loop: Solve the standard conditional flow matching objective.

To make this computationally tractable without actually running an expensive inner optimization loop at every step, the authors derive an analytic form for the optimal target velocity field given any arbitrary interpolant (Proposition 1). They then enforce straightness by minimizing the material derivative of the velocity field ($\partial_t v + \nabla_x v \cdot v = 0$), substituting the learned network's approximations to keep the training simulation-free and scalable.

Figure 1: Illustration of training difference flow matching (FM) (Lipman et al., 2022) and our method on an illustrative 2 gaussian (source, black) to 2-gaussian (target, blue) problem. On the left we have standard FM with linear interpolants (red lines) and the resulting flow vector. On the right we show our approach. By allowing non-linear interpolants we are able to learn a flow velocity field with significantly less curvature.

Datasets

The method was evaluated on standard image generation benchmarks:

  • CIFAR-10 (32x32)
  • ImageNet (32x32 variant)
  • CelebA-HQ (scaled to 256x256)
  • AFHQ-Cat (scaled to 256x256)

Key Insights and Ideas

  • The Linear Path Fallacy: Linear training paths fundamentally force a curved marginal field when dealing with complex data distributions. Embracing non-linear, learned paths is actually the key to straight generative trajectories.
  • Bypassing the Bi-level Bottleneck: Bi-level optimization is notoriously slow. Deriving the exact analytical form of the optimal vector field allows the authors to optimize both the interpolant and the flow model simultaneously without iterative inner loops.
  • Repurposing Normalizing Flows: Instead of using architectures like GLOW as the final generative model, the authors use them purely to parameterize the interpolant paths. This elegantly satisfies the mathematical requirement for computing Jacobian determinants during path transformation.

Key Results

The proposed method demonstrates significant improvements in generation quality when restricted to a very low number of steps (NFEs):

  • CIFAR-10: Achieved a Frechet Inception Distance (FID) of 4.61 with just 2 steps, outperforming Consistency Models (5.83) and Consistency Flow Matching (5.34).
  • CelebA-HQ (256x256): At 6 steps, it achieved an FID of 28.6, significantly outperforming Consistency Flow Matching (36.4) and ReFlow (127.0).
  • ImageNet 32x32: Reached an FID of 5.58 with 4 steps and 3.84 with 12 steps, beating other recent flow-based baselines like Multisample FM and NFDM.
Figure 2: Generated samples from CIFAR, ImageNet and CelebA.

Limitations and Future Work

  • Scaling Invertible Networks: The choice of GLOW for the interpolant works well for the tested resolutions, but scaling it to extremely high-dimensional or highly complex data distributions might hit capacity limitations or become memory-intensive.
  • Empirical Bias: Computing the analytical vector field relies on empirical sample averages over the target distribution. While this reduces variance and remains consistent, it introduces a small estimation bias during training.
  • Integration with Distillation: The authors note that their straight-flow formulation is orthogonal to consistency models. Combining learned curved interpolants with consistency distillation could potentially unlock true 1-step, high-fidelity generation.

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