SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.12540 · 2023

Lightning-Fast Image Inversion and Editing for Text-to-Image Diffusion Models

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 0 no recorded run), 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/2312.12540.json · badge: /api/ran/2312.12540.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
dvirsamuel/FPI canonical (classifier label)
classifier basis: census
9 ran · 0 no recorded run
FunctionStatusWhere it lives
diffusion_step Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvirsamuel/FPI/p2p/ptp_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from TFNTF/PostEdit, is pointer only (licence: NONE) · get_code("a042902caede448b")
How it ran

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

fake_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvirsamuel/FPI/main_fake.py
pointer only (licence: NONE) · get_code("f6fe70dac7f96828")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dvirsamuel/FPI 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_matrix Ran
ran; our contract draft was wrong, not the code
dvirsamuel/FPI/p2p/seq_aligner.py
pointer only (licence: NONE); the stored copy get_code serves, from Supercomputing-System-AI-Lab/InstantEdit, is pointer only (licence: NONE) · get_code("d167441d997c52ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dvirsamuel/FPI 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_matrix Ran
ran, honoured the contract we drafted
dvirsamuel/FPI/p2p/seq_aligner.py
pointer only (licence: NONE); the stored copy get_code serves, from Supercomputing-System-AI-Lab/InstantEdit, is pointer only (licence: NONE) · get_code("81db21bf982ca0fe")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, dvirsamuel/FPI 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_traceback_matrix Ran
ran, honoured the contract we drafted
dvirsamuel/FPI/p2p/seq_aligner.py
pointer only (licence: NONE); the stored copy get_code serves, from Supercomputing-System-AI-Lab/InstantEdit, is pointer only (licence: NONE) · get_code("beb8f6a30678a4d9")
How it ran

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

image2latent Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvirsamuel/FPI/p2p/p2p_functions.py
pointer only (licence: NONE) · get_code("5a412a63374e87be")
How it ran

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

latent2image Ran
ran; our contract draft was wrong, not the code
dvirsamuel/FPI/p2p/ptp_utils.py
pointer only (licence: NONE) · get_code("e3c3bb87bbe9b4a7")
How it ran

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

latent2image Ran
ran; our contract draft was wrong, not the code
dvirsamuel/FPI/p2p/p2p_functions.py
pointer only (licence: NONE) · get_code("c8788607f6d861f4")
How it ran

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

text_under_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
dvirsamuel/FPI/p2p/ptp_utils.py
pointer only (licence: NONE) · get_code("cadccc5f1e1e3a53")
How it ran

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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 6 later) and 3 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
text_under_image 14 other papers
4 dated earlier, 1 the same month, 9 later
2307.12493 (2023-07)
TF-ICON: Diffusion-Based Training-Free Cross-Domain Image Composition
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2309.14494 (2023-09)
Free-Bloom: Zero-Shot Text-to-Video Generator with LLM Director and LDM Animator
and 11 more not named here
latent2image 13 other papers
5 dated earlier, 1 the same month, 7 later
2305.15581 (2023-05)
Unsupervised Semantic Correspondence Using Stable Diffusion
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
and 10 more not named here
get_matrix 11 other papers
5 dated earlier, 6 later
2208.01626 (2022-08)
Prompt-to-Prompt Image Editing with Cross Attention Control
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
and 8 more not named here
diffusion_step 10 other papers
4 dated earlier, 1 the same month, 5 later
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
2309.14494 (2023-09)
Free-Bloom: Zero-Shot Text-to-Video Generator with LLM Director and LDM Animator
and 7 more not named here
get_traceback_matrix 10 other papers
4 dated earlier, 6 later
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
and 7 more not named here
get_matrix 9 other papers
4 dated earlier, 5 later
2305.19164 (2023-05)
LANCE: Stress-testing Visual Models by Generating Language-guided Counterfactual Images
2307.14352 (2023-07)
General Image-to-Image Translation with One-Shot Image Guidance
2308.06160 (2023-08)
DatasetDM: Synthesizing Data with Perception Annotations Using Diffusion Models
and 6 more not named here

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 inversion is the problem of taking an image and a text prompt that describes it and finding a noise latent that would generate the exact same image. Most current deterministic inversion techniques operate by approximately solving an implicit equation and may converge slowly or yield poor reconstructed images. We formulate the problem by finding the roots of an implicit equation and devlop a method to solve it efficiently. Our solution is based on Newton-Raphson (NR), a well-known technique in numerical analysis. We show that a vanilla application of NR is computationally infeasible while naively transforming it to a computationally tractable alternative tends to converge to out-of-distribution solutions, resulting in poor reconstruction and editing. We therefore derive an efficient guided formulation that fastly converges and provides high-quality reconstructions and editing. We showcase our method on real image editing with three popular open-sourced diffusion models: Stable Diffusion, SDXL-Turbo, and Flux with different deterministic schedulers. Our solution, Guided Newton-Raphson Inversion, inverts an image within 0.4 sec (on an A100 GPU) for few-step models (SDXL-Turbo and Flux.1), opening the door for interactive image editing. We further show improved results in image interpolation and generation of rare objects.

For agents

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

get_harvested_code_for_paper("2312.12540")
get_code_for_paper("2312.12540")
have("2312.12540")

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

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

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

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

Connect an agent — have() is free.