All models

rectified_flow_mlp

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

Diffusion and generative · 8 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 (11 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
8
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
m8680
Graph hash
9f0eadddb4dbf996e7c5c9525cf4c2fb20e09b0caf4bf540a2d5ea61f84368f4
Skeleton hash
cea1c65edc1c57177c8f6ee8bbb5a0a78e5051f9f991536e4c3d99512ce7fef2
Architecture hash
19199274df95ade38a1a81097720e0dcae5c4d2739c2c97e643e31dfcbe00111
Diagram SHA-256
30b0ca576298d6e0b793906bedd3666d1f5e334eb0a2ffb2bd5318058c21932e
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}, 
}