All models

rectified_flow_vector_field

An ODE trained to move along straight lines between noise and data, then straightened by reflow to one step.

Diffusion and generative · 9 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 (12 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
4.5K
Operations
9
Framework
PyTorch
Recurrent
No
Published
ICLR 2023
Cited by
124 (as of 17 October 2026)
Authors
Xingchao Liu, Chengyue Gong, Qiang Liu
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
m8681
Graph hash
83c947d6b5595f2a1bc49749f827a60b82e33185bfccd68516290eafd2061080
Skeleton hash
1befd623bdbfdeafb69d4210e8d67055227ecb2c5db54b00d2af45fc1c1075d9
Architecture hash
ef20944d8d68c317610f7c432eafbece78e6d84cc6e086685ec5965ece760eab
Diagram SHA-256
53f479902814897b90991f23a4cfbd4560b1bd7f1ed43c2cc61a722d63755e8d
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

A small MLP velocity field for low-dimensional toy data rather than images.

About this model's family

Rectified flow is a simple approach to learning neural ordinary differential equation (ODE) models that transport one empirically observed distribution to another, which unifies generative modeling and domain transfer. The ODE is trained to follow the straight paths connecting paired points drawn from the two distributions as closely as possible. Training is a nonlinear least squares regression that scales to large models without extra parameters beyond standard supervised learning.

The network itself is a velocity model that maps a point and a time in the unit interval to a drift of the same dimension as the data. For image generation the drift is represented by the U-Net architecture of DDPM++, built on the Score SDE code. Applying the rectification procedure recursively, called reflow, yields flows with increasingly straight paths that can be simulated accurately with coarse time discretization. On image generation and translation the method gives nearly straight flows that produce high quality results even with a single Euler step. Being purely ODE-based, it is conceptually simpler and faster at inference than SDE-based diffusion approaches.

The captured members are the image-generation network from the CIFAR10 DDPM++ configuration and two small MLP velocity fields of the kind used in the toy examples.

Key idea. Learning an ODE that follows straight paths between two distributions with a least squares objective, and straightening it by reflow until one Euler step suffices.

  • rectified flow
  • reflow
  • straight paths
  • velocity model
  • one-step generation
  • DDPM++

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

Cite the paper

@misc{liu2022flowstraightfastlearning,
      title={Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow}, 
      author={Xingchao Liu and Chengyue Gong and Qiang Liu},
      year={2022},
      eprint={2209.03003},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2209.03003}, 
}