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

09/07/2022
by   Xingchao Liu, et al.
2

We present rectified flow, a surprisingly simple approach to learning (neural) ordinary differential equation (ODE) models to transport between two empirically observed distributions π_0 and π_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 π_0 and π_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 π_0 and π_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.

READ FULL TEXT

page 3

page 26

page 27

page 28

page 29

page 39

page 40

page 41

research
04/28/2023

Multisample Flow Matching: Straightening Flows with Minibatch Couplings

Simulation-free methods for training continuous-time generative models c...
research
06/04/2021

CAFLOW: Conditional Autoregressive Flows

We introduce CAFLOW, a new diverse image-to-image translation model that...
research
05/29/2020

OT-Flow: Fast and Accurate Continuous Normalizing Flows via Optimal Transport

A normalizing flow is an invertible mapping between an arbitrary probabi...
research
05/13/2021

TransferI2I: Transfer Learning for Image-to-Image Translation from Small Datasets

Image-to-image (I2I) translation has matured in recent years and is able...
research
07/24/2019

Estimation of ordinary differential equation models with discretization error quantification

We consider estimation of ordinary differential equation (ODE) models fr...
research
06/01/2020

Numerical Simulations of Surface-Quasi Geostrophic Flows on Periodic Domains

We propose a novel algorithm for the approximation of surface-quasi geos...
research
07/12/2021

Optimally Reliable Cheap Payment Flows on the Lightning Network

Today, payment paths in Bitcoin's Lightning Network are found by searchi...

Please sign up or login with your details

Forgot password? Click here to reset