SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.07303 · 2024

Rectified Diffusion: Straightness Is Not Your Need in Rectified Flow

arXiv · PDF · Open in the Atlas

Code that ran

9 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-23; 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/2410.07303.json · badge: /api/ran/2410.07303.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
g-u-n/rectified-diffusion canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
FunctionStatusWhere it lives
append_dims Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
g-u-n/rectified-diffusion/train_phased.py
pointer only (licence: NONE); the stored copy get_code serves, from layer6ai-labs/direct-cms, is pointer only (licence: NONE) · get_code("30befb7e4327e615")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

extract_image_caption_pairs Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/generate_5k.py
pointer only (licence: NONE) · get_code("ea311f6a0c924757")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

get_module_kohya_state_dict Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/generate_data.py
pointer only (licence: NONE) · get_code("ee47db1d466f595b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

get_module_kohya_state_dict Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/generate_5k.py
pointer only (licence: NONE) · get_code("c3db516b7a60eabc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

list_images_and_prompts Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/clip_score_ddp.py
pointer only (licence: NONE) · get_code("565191fe340fe654")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

predicted_origin Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
g-u-n/rectified-diffusion/train_phased.py
pointer only (licence: NONE); the stored copy get_code serves, from Luo-Yihong/YOSO, is pointer only (licence: NONE) · get_code("6df07632ebc649de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

read_prompt_from_txt Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/clip_score_ddp.py
pointer only (licence: NONE) · get_code("52227de968e773e8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

rescale_noise_cfg Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/pipeline.py
pointer only (licence: NONE) · get_code("bea2d776a332f2b0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

retrieve_timesteps Ran
ran; our contract draft was wrong, not the code
g-u-n/rectified-diffusion/pipeline.py
pointer only (licence: NONE) · get_code("3338a5b299ea25ec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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.

get_module_kohya_state_dict Not yet run
unverified (harvested, no recorded run)
g-u-n/rectified-diffusion/train_phased_sdxl.py
pointer only (licence: NONE) · get_code("4c7c3edd706a5541")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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. No invocation recorded.

read_prompts Not yet run
unverified (harvested, no recorded run)
g-u-n/rectified-diffusion/generate_5k.py
pointer only (licence: NONE) · get_code("5921630d1aaf7cbb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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. No invocation recorded.

read_prompts Not yet run
unverified (harvested, no recorded run)
g-u-n/rectified-diffusion/generate_data.py
pointer only (licence: NONE) · get_code("cede78b52aac830e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, g-u-n/rectified-diffusion 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. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 6 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 3 the same month, 5 later) and 5 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.

FunctionAlso present inEarliest-datedOthers named
rescale_noise_cfg 62 other papers
38 dated earlier, 7 the same month, 16 later, 1 same year, order not determinable
2206.02779 (2022-06)
Blended Latent Diffusion
2304.06720 (2023-04)
Expressive Text-to-Image Generation with Rich Text
2309.06380 (2023-09)
InstaFlow: One Step is Enough for High-Quality Diffusion-Based Text-to-Image Generation
and 59 more not named here
append_dims 27 other papers
18 dated earlier, 2 the same month, 5 later, 2 same year, order not determinable · 2 only as an assembly brick
2204.06125 (2022-04)
Hierarchical Text-Conditional Image Generation with CLIP Latents
2304.09787 (2023-04)
NeuralField-LDM: Scene Generation with Hierarchical Latent Diffusion Models
2307.12493 (2023-07)
TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition
and 24 more not named here
retrieve_timesteps 21 other papers
14 dated earlier, 3 the same month, 4 later
2310.06313 (2023-10)
Advancing Pose-Guided Image Synthesis with Progressive Conditional Diffusion Models
2401.11708 (2024-01)
Mastering Text-to-Image Diffusion: Recaptioning, Planning, and Generating with Multimodal LLMs
2403.06976 (2024-03)
BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion
and 18 more not named here
predicted_origin 3 other papers
2 dated earlier, 1 later
2403.12931 (2024-03)
You Only Sample Once: Taming One-Step Text-To-Image Synthesis by Self-Cooperative Diffusion GANs
2407.13584 (2024-07)
Connecting Consistency Distillation to Score Distillation for Text-to-3D Generation
2503.06674 (2025-03)
Learning Few-Step Diffusion Models by Trajectory Distribution Matching
get_module_kohya_state_dict 2 other papers
2 dated earlier
2405.13637 (2024-05)
Curriculum Direct Preference Optimization for Diffusion and Consistency Models
2409.01347 (2024-09)
Target-Driven Distillation: Consistency Distillation with Target Timestep Selection and Decoupled Guidance
get_module_kohya_state_dict 1 other paper
1 later
2509.01624 (2025-09)
Q-Sched: Pushing the Boundaries of Few-Step Diffusion Models with Quantization-Aware Scheduling

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-23.

Repositories linked to this paper

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

Abstract

Diffusion models have greatly improved visual generation but are hindered by slow generation speed due to the computationally intensive nature of solving generative ODEs. Rectified flow, a widely recognized solution, improves generation speed by straightening the ODE path. Its key components include: 1) using the diffusion form of flow-matching, 2) employing $\boldsymbol v$-prediction, and 3) performing rectification (a.k.a. reflow). In this paper, we argue that the success of rectification primarily lies in using a pretrained diffusion model to obtain matched pairs of noise and samples, followed by retraining with these matched noise-sample pairs. Based on this, components 1) and 2) are unnecessary. Furthermore, we highlight that straightness is not an essential training target for rectification; rather, it is a specific case of flow-matching models. The more critical training target is to achieve a first-order approximate ODE path, which is inherently curved for models like DDPM and Sub-VP. Building on this insight, we propose Rectified Diffusion, which generalizes the design space and application scope of rectification to encompass the broader category of diffusion models, rather than being restricted to flow-matching models. We validate our method on Stable Diffusion v1-5 and Stable Diffusion XL. Our method not only greatly simplifies the training procedure of rectified flow-based previous works (e.g., InstaFlow) but also achieves superior performance with even lower training cost. Our code is available at https://github.com/G-U-N/Rectified-Diffusion.

For agents

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

get_harvested_code_for_paper("2410.07303")
get_code_for_paper("2410.07303")
have("2410.07303")

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

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

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

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

Connect an agent — have() is free.