- Type
- Generative model training framework
- Introduced
- October 2022 (arXiv:2210.02747)
- Authors
- Lipman, Chen, Ben-Hamu, Nickel and Le (Meta AI)
- Venue
- ICLR 2023
- Key idea
- Regress a velocity field along a fixed probability path — no ODE simulation during training
- Related
- Diffusion models, continuous normalizing flows, rectified flow
- Type
- Generative model training framework
- Introduced
- October 2022 (arXiv:2210.02747)
- Authors
- Lipman, Chen, Ben-Hamu, Nickel and Le (Meta AI)
- Venue
- ICLR 2023
- Key idea
- Regress a velocity field along a fixed probability path — no ODE simulation during training
- Related
- Diffusion models, continuous normalizing flows, rectified flow
Background
Flow matching grows out of continuous normalizing flows (CNFs), introduced with Neural Ordinary Differential Equations (arXiv:1806.07366, NeurIPS 2018 best paper). A CNF defines a generator by integrating the ODE dx/dt = v(x, t): draw noise at time 0, follow the learned field, arrive at a sample at time 1. The model class is elegant — deterministic sampling, exact likelihoods — but maximum-likelihood training requires solving the ODE forward and backward on every gradient step. This simulation cost kept CNFs from scaling to large image datasets for years.[1][2]
Key concepts
Flow matching's contribution is to replace likelihood training with vector-field regression: choose the probability path you want, then train the network to predict the target velocity along that path. The catch is that the marginal target field is intractable over a whole dataset. The paper's central trick is to express the target path as a mixture of per-sample conditional paths, for which the field is known in closed form, and to show that regressing on the conditional field yields exactly the same gradient as the intractable marginal objective — the conditional flow matching (CFM) loss. Training therefore involves no numerical ODE integration at all.[1][3]
The choice of path is a design knob. Straight-line (optimal-transport) paths, which move each noise sample directly toward a data sample, produce straighter inference trajectories and fewer function evaluations. Training CNFs this way outperformed the standard DDPM diffusion objective on CIFAR-10 and ImageNet across FID, likelihood and sampling steps simultaneously.[3] A close relative, rectified flow ("Flow Straight and Fast", arXiv:2209.03003, ICLR 2023 spotlight), uses the same independent-coupling target and adds a reflow step to straighten trajectories further.[4] Viewed this way, diffusion training is a special case of the framework rather than the other way around.
Applications
By 2024 flow matching variants had become the default training objective for non-text generative models: Stable Diffusion 3 is built on a rectified-flow transformer, and open video models such as Alibaba's Wan and NVIDIA's Cosmos train with flow matching.[3] Extensions such as Discrete Flow Matching (arXiv:2407.15595, July 2024) define probability paths over finite vocabularies, bringing the approach to text and graph generation; the authors reported 6.7% Pass@1 and 13.4% Pass@10 on HumanEval with a 1.7B-parameter non-autoregressive flow model.[5] Practically, the framework's appeal is efficiency: straighter paths mean fewer network evaluations per generated sample, which translates directly into faster and cheaper inference.
>See Also
🇲🇾 Flow matching is invisible to most users but shapes the tools Malaysian creators actually touch. The video and image generators used by Malaysian agencies, e-commerce sellers and studios — including open models such as Wan that can be self-hosted — increasingly rely on flow-matching objectives, so local teams benefit from faster generation and lower compute bills without knowing the mathematics behind it.
That cost dimension matters in a country building one of Asia's largest AI data-centre footprints in Johor and the Klang Valley: every reduction in the number of sampling steps per generated asset reduces GPU-hours, energy draw and per-asset API pricing, which is what makes generative tooling affordable for Malaysian SMEs rather than only for large firms. For researchers and students, the topic sits squarely within Malaysia's National AI Roadmap and the National AI Office's capability-building agenda, and the foundational papers are open on arXiv — MDEC- and HRD Corp-supported training programmes, university computing curricula and self-directed engineers can all study state-of-the-art generative modelling without licensing anything. Malaysian AI startups working on localisation, content generation and synthetic media can likewise build on open implementations of rectified flow and flow matching rather than proprietary stacks.[3][5]
References
- ↑Lipman, Y., Chen, R. T. Q., Ben-Hamu, H., Nickel, M. & Le, M. (2022). Flow Matching for Generative Modeling. arXiv:2210.02747. https://arxiv.org/abs/2210.02747
- ↑Chen, R. T. Q., Rubanova, Y., Bettencourt, J. & Duvenaud, D. (2018). Neural Ordinary Differential Equations. arXiv:1806.07366. https://arxiv.org/abs/1806.07366
- ↑yjkim-stat. (2026). Flow Matching — The Simulation-Free Recipe Under Modern Diffusion. https://yjkim-stat.github.io/log/blog/2026/flow-matching
- ↑Liu, X., Gong, C. & Liu, Q. (2022). Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow. arXiv:2209.03003. https://arxiv.org/abs/2209.03003
- ↑Gat, I. et al. (2024). Discrete Flow Matching. arXiv:2407.15595. https://arxiv.org/abs/2407.15595