Papers › How to build a consistency model: Learning flow maps via self-distillation

How to build a consistency model: Learning flow maps via self-distillation

24 May 2025arXiv:2505.18825archive 2025-07-28

Nicholas M. Boffi, Michael S. Albergo, Eric Vanden-Eijnden

Building on the framework proposed in Boffi et al. (2024), we present a systematic approach for learning flow maps associated with flow and diffusion models. Flow map-based models, commonly known as consistency models, encompass recent efforts to improve the efficiency of generative models based on solutions to differential equations. By exploiting a relationship between the velocity field underlying a continuous-time flow and the instantaneous rate of change of the flow map, we show how to convert existing distillation schemes into direct training algorithms via self-distillation, eliminating the need for pre-trained models. We empirically evaluate several instantiations of our framework, finding that high-dimensional tasks like image synthesis benefit from objective functions that avoid temporal and spatial derivatives of the flow map, while lower-dimensional tasks can benefit from objectives incorporating higher-order derivatives to capture sharp features.

PaperPDFCode 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="2505.18825")

Code

Syntology Ran 0 of 14 code samples harvested from 1 repository linked to this paper; 14 have no recorded run.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

nmboffi/flow-maps found in paper text by SyntologyMIT 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

14 samples harvested; 0 ran; 0 honoured the contract we drafted; 14 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.

14unverified

Licence: 0 of the 14 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 nmboffi/flow-maps. “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.

batch_sample nmboffi/flow-maps/py/common/flow_map.py found in paper text by Syntology unverified MIT (permissive) · cf9d4ec736ab7238 · report
compute_grad_norm nmboffi/flow-maps/py/common/logging.py found in paper text by Syntology unverified MIT (permissive) · f7df6e2cd7e357d7 · report
mean_reduce nmboffi/flow-maps/py/common/losses.py found in paper text by Syntology unverified MIT (permissive) · 866b3e86c2a4c44c · report
normalize_image_tf nmboffi/flow-maps/py/common/datasets.py found in paper text by Syntology unverified MIT (permissive) · 4951bd0c52c2029e · report
pmap_batch_sample nmboffi/flow-maps/py/common/flow_map.py found in paper text by Syntology unverified MIT (permissive) · 39844e19617e535f · report
pmap_project_to_sphere nmboffi/flow-maps/py/common/edm2_net.py found in paper text by Syntology unverified MIT (permissive) · 46817614f0ce1e03 · report
preprocess_celeb_a nmboffi/flow-maps/py/common/datasets.py found in paper text by Syntology unverified MIT (permissive) · 61c289ac786da2cb · report
process_celeba_for_fid nmboffi/flow-maps/py/common/fid_utils.py found in paper text by Syntology unverified MIT (permissive) · 188974e9cabf04d1 · report
process_image_for_fid nmboffi/flow-maps/py/common/fid_utils.py found in paper text by Syntology unverified MIT (permissive) · a8a8e7bbadf4d9c5 · report
project_to_sphere nmboffi/flow-maps/py/common/edm2_net.py found in paper text by Syntology unverified MIT (permissive) · 111bbbd1ceb1f4de · report
resize_and_incept nmboffi/flow-maps/py/common/fid_utils.py found in paper text by Syntology unverified MIT (permissive) · 307ccd5877a33274 · report
safe_resize nmboffi/flow-maps/py/common/loss_args.py found in paper text by Syntology unverified MIT (permissive) · e72bec44e12d556e · report
sample nmboffi/flow-maps/py/common/flow_map.py found in paper text by Syntology unverified MIT (permissive) · 7c644c21d70f5141 · report
unnormalize_image nmboffi/flow-maps/py/common/datasets.py found in paper text by Syntology unverified MIT (permissive) · 018cc04bd14d78e5 · report

Tasks

Image Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Diffusion

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