Papers › FlowTurbo: Towards Real-time Flow-Based Image Generation with Velocity Refiner

FlowTurbo: Towards Real-time Flow-Based Image Generation with Velocity Refiner

26 Sep 2024arXiv:2409.18128archive 2025-07-28

Wenliang Zhao, Minglei Shi, Xumin Yu, Jie zhou, Jiwen Lu

Building on the success of diffusion models in visual generation, flow-based models reemerge as another prominent family of generative models that have achieved competitive or better performance in terms of both visual quality and inference speed. By learning the velocity field through flow-matching, flow-based models tend to produce a straighter sampling trajectory, which is advantageous during the sampling process. However, unlike diffusion models for which fast samplers are well-developed, efficient sampling of flow-based generative models has been rarely explored. In this paper, we propose a framework called FlowTurbo to accelerate the sampling of flow-based models while still enhancing the sampling quality. Our primary observation is that the velocity predictor's outputs in the flow-based models will become stable during the sampling, enabling the estimation of velocity via a lightweight velocity refiner. Additionally, we introduce several techniques including a pseudo corrector and sample-aware compilation to further reduce inference time. Since FlowTurbo does not change the multi-step sampling paradigm, it can be effectively applied for various tasks such as image editing, inpainting, etc. By integrating FlowTurbo into different flow-based models, we obtain an acceleration ratio of 53.1%∼58.3% on class-conditional generation and 29.8%∼38.5% on text-to-image generation. Notably, FlowTurbo reaches an FID of 2.12 on ImageNet with 100 (ms / img) and FID of 3.93 with 38 (ms / img), achieving the real-time image generation and establishing the new state-of-the-art. Code is available at https://github.com/shiml20/FlowTurbo.

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="2409.18128")

Code

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

By repository: official repository: 11 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.

shiml20/flowturbo officialmentioned in papermentioned on GitHubpytorchMIT 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

11 samples harvested; 6 ran; 1 honoured the contract we drafted; 5 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.

1ran · honoured contract
3ran · our draft was wrong
2ran
5unverified

Licence: 0 of the 11 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 shiml20/FlowTurbo. “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.

expand_t_like_x shiml20/FlowTurbo/transport/path.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 6de57ffd4ee7fee7 · report
get_2d_sincos_pos_embed shiml20/FlowTurbo/models_assemble.py official repository ran · honoured contract MIT (permissive) · c92c27c924b517e8 · report
log_state shiml20/FlowTurbo/transport/utils.py official repository ran MIT (permissive) · e0c9eec71fe93415 · report
mean_flat shiml20/FlowTurbo/transport/utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · b883daa24762cb05 · report
modulate shiml20/FlowTurbo/models_assemble.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 03310bba324ae4fb · report
read_statistics shiml20/FlowTurbo/evaluation/fid.py official repository ran MIT (permissive) · 93ea18994bb3e8f9 · report
create_npz_from_sample_folder shiml20/FlowTurbo/sample_ddp_feature.py official repository unverified MIT (permissive) · fa92e506df16d054 · report
download_model shiml20/FlowTurbo/download.py official repository unverified MIT (permissive) · bea8b7f1f4c6354b · report
find_model shiml20/FlowTurbo/download.py official repository unverified MIT (permissive) · f53716a25095cc3c · report
get_2d_sincos_pos_embed_from_grid shiml20/FlowTurbo/models_assemble.py official repository unverified MIT (permissive) · 665d8a4e8f673a4c · report
none_or_str shiml20/FlowTurbo/train_utils.py official repository unverified MIT (permissive) · 2fc6fdb85f13dc41 · report

Tasks

Image GenerationText to Image GenerationText-to-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