Papers › Consistency Flow Matching: Defining Straight Flows with Velocity Consistency

Consistency Flow Matching: Defining Straight Flows with Velocity Consistency

2 Jul 2024arXiv:2407.02398archive 2025-07-28

Ling Yang, Zixiang Zhang, Zhilong Zhang, Xingchao Liu, Minkai Xu, Wentao Zhang, Chenlin Meng, Stefano Ermon, Bin Cui

Flow matching (FM) is a general framework for defining probability paths via Ordinary Differential Equations (ODEs) to transform between noise and data samples. Recent approaches attempt to straighten these flow trajectories to generate high-quality samples with fewer function evaluations, typically through iterative rectification methods or optimal transport solutions. In this paper, we introduce Consistency Flow Matching (Consistency-FM), a novel FM method that explicitly enforces self-consistency in the velocity field. Consistency-FM directly defines straight flows starting from different times to the same endpoint, imposing constraints on their velocity values. Additionally, we propose a multi-segment training approach for Consistency-FM to enhance expressiveness, achieving a better trade-off between sampling quality and speed. Preliminary experiments demonstrate that our Consistency-FM significantly improves training efficiency by converging 4.4x faster than consistency models and 1.7x faster than rectified flow models while achieving better generation quality. Our code is available at: https://github.com/YangLing0818/consistency_flow_matching

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.02398")

Code

Syntology Ran 6 of 13 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yangling0818/consistency_flow_matching officialmentioned in papermentioned on GitHubjaxMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 6 ran; 0 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
3ran
7unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yangling0818/consistency_flow_matching. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_data_inverse_scaler yangling0818/consistency_flow_matching/datasets.py official repository ran · our draft was wrong MIT (permissive) · 6c419026e778dee2 · report
get_data_scaler yangling0818/consistency_flow_matching/datasets.py official repository ran · our draft was wrong MIT (permissive) · 346d2e6cc8b48a5d · report
get_optimizer yangling0818/consistency_flow_matching/losses.py official repository ran MIT (permissive) · 8ff7c24dade9904c · report
optimization_manager yangling0818/consistency_flow_matching/losses.py official repository ran MIT (permissive) · 366bb8c7035a2fc8 · report
pad_t_like_x yangling0818/consistency_flow_matching/consistencyfm/torchcfm/conditional_flow_matching.py official repository ran · our draft was wrong MIT (permissive) · 9e320fdaa5a3063f · report
variance_scaling yangling0818/consistency_flow_matching/models/layers.py official repository ran MIT (permissive) · 3ac11bfe0ae80195 · report
classifier_fn_from_tfhub yangling0818/consistency_flow_matching/evaluation.py official repository unverified MIT (permissive) · 54a00db9aadf092f · report
crop_resize yangling0818/consistency_flow_matching/datasets.py official repository unverified MIT (permissive) · fd14d238ccd5f679 · report
get_act yangling0818/consistency_flow_matching/models/layers.py official repository unverified MIT (permissive) · db5f935a1d6b4c2c · report
get_div_fn yangling0818/consistency_flow_matching/likelihood.py official repository unverified MIT (permissive) · 0bfcb6b2d940e393 · report
get_normalization yangling0818/consistency_flow_matching/models/normalization.py official repository unverified MIT (permissive) · 1b8adb3294e53c6d · report
load_dataset_stats yangling0818/consistency_flow_matching/evaluation.py official repository unverified MIT (permissive) · b45ab263f8440954 · report
ncsn_conv1x1 yangling0818/consistency_flow_matching/models/layers.py official repository unverified MIT (permissive) · 85b2235eb7afaa4f · report

Tasks

Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Consistency Models

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections