Flow matching / rectified flow

Generative models · generative · 2022 · images · video · audio

What it is

Instead of reversing noise, learn a velocity field that moves samples along straight-ish paths from noise to data.

When to use it

The current fastest high-quality image/video generators (SD3, Flux) — fewer steps, simpler training.

Caveats

The learned paths are only as straight as the training coupling makes them, so few-step sampling still needs extra work such as reflow or distillation. Results are sensitive to how timesteps are sampled and weighted during training.

Key ideas

  • Learns a velocity field that carries noise to data along an ODE
  • Training is simple regression, with no simulation of the ODE
  • Rectified flow uses straight-line paths, which allow fewer sampling steps

Related architectures

Original paper

Flow Matching for Generative Modeling (2022, arXiv)

Lessons that cover it

Browse all 198 architectures

The architecture landscape, in one place.

Two things get called “ML architecture”: the classical statistical model families, and the neural network wirings. Both are here, tagged by what they are and what data they eat.

Start from your problem

Architectures

0 shortlisted