NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Flow Matching for Generative Modeling

Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, Matthew Le

Generative modeling has recently been dominated by Diffusion Models, which transform simple noise into complex data. However, these models have two major drawbacks: they require hundreds of steps to generate a single image because the "path" from noise to data is curved, and they are mathematically tied to specific stochastic processes, limiting flexibility.

Continuous Normalizing Flows (CNFs) offer a more flexible, deterministic alternative. Historically, however, CNFs were considered "untrainable" at scale because they required solving expensive Ordinary Differential Equations (ODEs) during every training step. To bridge this gap, researchers have introduced Flow Matching (FM), a simulation-free framework for training CNFs that scales to high-resolution images.

The Flow Matching Framework

Instead of trying to learn the score function (the gradient of the log-density) like diffusion models, Flow Matching trains a neural network to predict the vector field that moves points from a noise distribution to the data distribution.

The core technical breakthrough is Conditional Flow Matching (CFM). The authors prove that the complex global flow can be broken down into simpler "conditional" flows for individual data points. This mathematical "marginal trick" allows the model to be trained using a simple regression loss, bypassing the need for expensive ODE solvers during training.

Optimal Transport: Straight is Better

While Flow Matching can replicate standard diffusion paths, its true power is unlocked when combined with Optimal Transport (OT). In this setup, the probability path is defined as a straight line between a noise sample and a data sample.

Comparison of curved Diffusion paths versus straight Optimal Transport (OT) paths.

The "aha moment" of the paper is that diffusion paths are unnecessarily curved. By using OT to define a straight-line path, the neural network has a much easier time learning the vector field. This leads to more stable training, faster convergence, and deterministic sampling. Because the learned paths are nearly straight lines, off-the-shelf ODE solvers can reach the data distribution in very few steps. Furthermore, the authors demonstrate that the math behind popular diffusion models is actually just a specific, sub-optimal instance of the broader Flow Matching framework.

Key Results and Performance

The researchers evaluated Flow Matching on standard image generation benchmarks, including CIFAR-10 and ImageNet at multiple resolutions.

High-resolution image samples generated using the Flow Matching framework.
  • Superior Quality: On ImageNet 64x64, Flow Matching with OT paths (FM-OT) achieved an FID of 14.45, significantly outperforming DDPM (17.36) and Score Matching (19.74).
  • Sampling Efficiency: FM-OT requires far fewer "Number of Function Evaluations" (NFE) to generate high-quality samples. In many cases, it reaches a high-quality result in 60% fewer steps than diffusion-based alternatives.
  • Density Estimation: The models achieved state-of-the-art or competitive negative log-likelihood (NLL) scores, indicating they are excellent at density estimation.
  • Super-Resolution: FM-OT can be used for conditional tasks like upsampling (e.g., 64x64 to 256x256), producing sharper and more realistic details than previous methods.

Limitations and Future Work

While sampling is much faster with Flow Matching, it still requires an ODE solver. Because the paths aren't perfectly linear in the marginal space, single-step generation (like a GAN) is still not quite as high-quality as multi-step generation. Additionally, like most diffusion-style models, this framework is primarily designed for continuous data (images). Adapting it to discrete data, such as text, remains an open challenge for future research.

Summary updated

BibTeX
@inproceedings{lipman2023flow,
  author = {Yaron Lipman and Ricky T. Q. Chen and Heli Ben-Hamu and Maximilian Nickel and Matthew Le},
  title = {{Flow Matching for Generative Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=PqvMRDCJT9t},
}
Figure