SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2209.03003 · 2022

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

Chengyue Gong, Qiang Liu, Xingchao Liu

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 3 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2209.03003.json · badge: /api/ran/2209.03003.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
sangyun884/fast-ode community
Papers with Code archive
5 ran · 0 no recorded run
gnobitab/RectifiedFlow marked official in Papers with Code
Papers with Code archive
1 ran · 0 no recorded run
leffff/FlowModels community
Papers with Code archive
0 ran · 1 no recorded run
MaximeVandegar/Papers-in-100-Lines-of-Code community
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
BaseFlow Ran
ran on a synthesized input · constructed an object; no result was computed
sangyun884/fast-ode/flows.py
pointer only (licence: NONE) · get_code("b6254a5689d5af5a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangyun884/fast-ode when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

RectifiedFlow Ran
ran on a synthesized input · constructed an object; no result was computed
sangyun884/fast-ode/flows.py
pointer only (licence: NONE) · get_code("58ff86add41b30c1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangyun884/fast-ode when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

RectifiedFlow Ran
ran on a synthesized input · constructed an object; no result was computed
gnobitab/RectifiedFlow/ImageGeneration/sde_lib.py
pointer only (licence: NONE) · get_code("7fa3874fe6727844")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gnobitab/RectifiedFlow when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

alpha Ran
ran, honoured the contract we drafted
sangyun884/fast-ode/flows.py
pointer only (licence: NONE) · get_code("5d55915705d80ae7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangyun884/fast-ode when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

d_1_minus_alpha_sq_dt Ran
ran, honoured the contract we drafted
sangyun884/fast-ode/flows.py
pointer only (licence: NONE) · get_code("db9529b774b23cb2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangyun884/fast-ode when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dalpha_dt Ran
ran, honoured the contract we drafted
sangyun884/fast-ode/flows.py
pointer only (licence: NONE) · get_code("dc0efae5b0e9861f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, sangyun884/fast-ode when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flow_matching_loss Not yet run
unverified (harvested, no recorded run)
leffff/FlowModels/flow_models/losses.py
code served (permissive licence) · get_code("1ca3feb264ebba6f")
How it ran

no invocation recorded.

train_rectified_flow Not yet run
unverified (harvested, no recorded run)
MaximeVandegar/Papers-in-100-Lines-of-Code/Flow_Straight_and_Fast_Learning_to_Generate_and_Transfer_Data_with_Rectified_Flow/flow_straight_and_fast.py
code served (permissive licence) · get_code("4d0eea3b30504749")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2209.03003")
get_code_for_paper("2209.03003")
have("2209.03003")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2209.03003.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2209.03003.svg)](https://syntology.ai/paper/2209.03003)

Connect an agent — have() is free.