Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow

By Xingchao Liu, Chengyue Gong, Qiang Liu. 2022

3,494 citations recorded by the source corpus.

We present rectified flow, a surprisingly simple approach to learning (neural) ordinary differential equation (ODE) models to transport between two empirically observed distributions \pi_0 and \pi_1, hence providing a unified solution to generative modeling and domain transfer, among various other tasks involving distribution transport. The idea of rectified flow is to learn the ODE to follow the straight paths connecting the points drawn from \pi_0 and \pi_1 as much as possible. This is achieved by solving a straightforward nonlinear least squares optimization problem, which can be easily scaled to large models without introducing extra parameters beyond standard supervised learning. The straight paths are special and preferred because they are the shortest paths between two points, and can be simulated exactly without time discretization and hence yield computationally efficient models. We show that the procedure of learning a rectified flow from data, called rectification, turns an arbitrary coupling of \pi_0 and \pi_1 to a new deterministic coupling with provably non-increasing convex transport costs. In addition, recursively applying rectification allows us to obtain a sequence of flows with increasingly straight paths, which can be simulated accurately with coarse time discretization in the inference phase. In empirical studies, we show that rectified flow performs superbly on image generation, image-to-image translation, and domain adaptation. In particular, on image generation and translation, our method yields nearly straight flows that give high quality results even with a single Euler discretization step.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Statistical and Nonlinear Physics

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yu Qiao
  2. Ziwei Liu
  3. Richard Zhang
  4. Qiang Liu
  5. Luc Van Gool
  6. Dacheng Tao
  7. Yoshua Bengio
  8. Sergey Levine

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Ming-Hsuan Yang
  3. Dacheng Tao
  4. Chen Change Loy
  5. Yu Qiao
  6. Xiaogang Wang
  7. Trevor Darrell
  8. Jitendra Malik

In Statistical and Nonlinear Physics

  1. Nicholas Matthew Boffi
  2. Michael S. Albergo
  3. Eric Vanden-Eijnden
  4. Eli Shechtman
  5. Yaron Lipman
  6. Andreas Blattmann
  7. Jian Peng
  8. Yu Qiao

Citations in the corpus