Papers › FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing

FireFlow: Fast Inversion of Rectified Flow for Image Semantic Editing

10 Dec 2024arXiv:2412.07517archive 2025-07-28

Yingying Deng, Xiangyu He, Changwang Mei, Peisong Wang, Fan Tang

Though Rectified Flows (ReFlows) with distillation offers a promising way for fast sampling, its fast inversion transforms images back to structured noise for recovery and following editing remains unsolved. This paper introduces FireFlow, a simple yet effective zero-shot approach that inherits the startling capacity of ReFlow-based models (such as FLUX) in generation while extending its capabilities to accurate inversion and editing in $8$ steps. We first demonstrate that a carefully designed numerical solver is pivotal for ReFlow inversion, enabling accurate inversion and reconstruction with the precision of a second-order solver while maintaining the practical efficiency of a first-order Euler method. This solver achieves a 3× runtime speedup compared to state-of-the-art ReFlow inversion and editing techniques, while delivering smaller reconstruction errors and superior editing results in a training-free mode. The code is available at $\href{https://github.com/HolmesShuan/FireFlow}{this URL}$.

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

Code

Syntology Ran 4 of 11 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; 1 ran · fixture could not drive it.

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

holmesshuan/fireflow officialmentioned in papermentioned on GitHubpytorchApache-2.0 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; 4 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
1ran · fixture could not drive it
7unverified

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 holmesshuan/fireflow. “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_lin_function holmesshuan/fireflow/src/flux/sampling.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 3f6652da855a2ea0 · report
rope holmesshuan/fireflow/src/flux/math.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · 17724d4203fa5863 · report
swish holmesshuan/fireflow/src/flux/modules/autoencoder.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5fb036462ae82f9f · report
timestep_embedding holmesshuan/fireflow/src/flux/modules/layers.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 0a1aadb08bf169c1 · report
apply_rope holmesshuan/fireflow/src/flux/math.py official repository unverified Apache-2.0 (permissive) · 3444bbcc9065f707 · report
attention holmesshuan/fireflow/src/flux/math.py official repository unverified Apache-2.0 (permissive) · b17d74354ecaf7fe · report
calculate_mse holmesshuan/fireflow/src/calculate_reconstruction_error.py official repository unverified Apache-2.0 (permissive) · e6761d87b84f732c · report
encode holmesshuan/fireflow/src/edit.py official repository unverified Apache-2.0 (permissive) · 1498dfc442c71ecc · report
encode holmesshuan/fireflow/src/gradio_demo.py official repository unverified Apache-2.0 (permissive) · e02de920391fa756 · report
extract_steps_from_filename holmesshuan/fireflow/src/calculate_reconstruction_error.py official repository unverified Apache-2.0 (permissive) · dcadced4a54cb3e8 · report
time_shift holmesshuan/fireflow/src/flux/sampling.py official repository unverified Apache-2.0 (permissive) · 9f391f7c45a5bc94 · report

Tasks

Text-based Image Editing

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Text-based Image Editing PIE-Bench FireFlow Background LPIPS 123.6 #10 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow Background PSNR 23.03 #10 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow CLIPSIM 26.02 #10 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow Structure Distance 27.1 #10 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow (Add Q) Background LPIPS 239.4 #18 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow (Add Q) Background PSNR 16.49 #18 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow (Add Q) CLIPSIM 27.33 #18 of 18 Archive leaderboard report
Text-based Image Editing PIE-Bench FireFlow (Add Q) Structure Distance 70.9 #18 of 18 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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