All models

FlowMatching_velocity_ode

U-Net velocity field trained by Flow Matching, a simulation-free objective for continuous normalizing flows.

Diffusion and generative · 1,365 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (111 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
295.9M
Operations
1,365
Framework
PyTorch
Recurrent
No
Published
ICLR 2023
Cited by
189 (as of 16 October 2026)
Authors
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu and others
License
CC-BY-NC-4.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1034
Graph hash
e525d237218942ce8907851d2e8f1506eea9979b236f425a59cd0c9a5d8f0bf5
Skeleton hash
cae21e0687f72d82818c359084421bd7572a7f7faaa19d07c199dee2b8d6d861
Architecture hash
30f9609787a202ff1b542282e90c5c2fd3f3f3bd31d7565107364bb398449a60
Diagram SHA-256
1c0d3c874dc9b0cee49611fcfa066bbe9b9c6aaec98b9677d58bb35ab0c6192f
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

Flow Matching is a way to train continuous normalizing flows without simulating them: the network regresses the vector field of a fixed conditional probability path from noise to data. The paper presents it as a new paradigm for generative modeling that lets CNFs train at unprecedented scale. It works with a general family of Gaussian probability paths that subsumes existing diffusion paths as special cases. Even on diffusion paths, the authors find it a more robust and stable way to train a diffusion model.

The practical objective is Conditional Flow Matching, a per-example loss that gives the same gradients as the intractable marginal objective without ever knowing the target vector field. The path of most interest uses Optimal Transport displacement interpolation, where the conditional paths are straight lines rather than the curved paths of diffusion. Those straighter paths translate empirically into faster training, faster generation and better performance. Sampling then runs the learned ODE with off-the-shelf numerical solvers. On ImageNet the authors report consistently better likelihood and sample quality than diffusion-based alternatives.

Flow Matching is a training objective rather than an architecture, so the graph traced here is the velocity network from the authors' library: the U-Net of Dhariwal and Nichol with minimal changes, which the paper used for CIFAR-10 and ImageNet. That library is the authors' PyTorch implementation of Flow Matching algorithms, with continuous and discrete variants and examples for both text and images. It ships no pretrained weights; every example model is trained from scratch with a single command.

Key idea. Simulation-free training of continuous normalizing flows by regressing a vector field onto per-example conditional probability paths, with straight-line Optimal Transport paths that train and sample faster than diffusion.

  • flow matching
  • fm
  • conditional flow matching
  • cfm
  • continuous normalizing flow
  • cnf
  • optimal transport path
  • rectified
  • velocity field
  • diffusion alternative
  • image generation
  • imagenet
  • cifar-10
  • meta flow_matching

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lipman2023flowmatchinggenerativemodeling,
      title={Flow Matching for Generative Modeling}, 
      author={Yaron Lipman and Ricky T. Q. Chen and Heli Ben-Hamu and Maximilian Nickel and Matt Le},
      year={2023},
      eprint={2210.02747},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2210.02747}, 
}