All models

RectifiedFlow

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

Diffusion and generative · 818 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 (177 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
61.8M
Operations
818
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
m2567
Graph hash
e00c9d94474be4e7fa6daab3d97ed7d659250308f87a9b507390c074c8ad39d4
Skeleton hash
ebda1a2ee09866f4a04ae642edbef621501403b59f06d0081924ac1f17c70e57
Architecture hash
d2d5ec2ac048e627e7302447c537a03e66562cdb00a575f5fc273e173ddc5759
Diagram SHA-256
5afd61d1986b0c91777cb435ed937e706948f37eb9bd0a277686c282f12be158
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

The DDPM++ U-Net velocity network from the CIFAR10 image-generation configuration, taking an image batch and a time value.

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}, 
}