Papers › EasyInv: Toward Fast and Better DDIM Inversion

EasyInv: Toward Fast and Better DDIM Inversion

9 Aug 2024arXiv:2408.05159archive 2025-07-28

Ziyue Zhang, Mingbao Lin, Shuicheng Yan, Rongrong Ji

This paper introduces EasyInv, an easy yet novel approach that significantly advances the field of DDIM Inversion by addressing the inherent inefficiencies and performance limitations of traditional iterative optimization methods. At the core of our EasyInv is a refined strategy for approximating inversion noise, which is pivotal for enhancing the accuracy and reliability of the inversion process. By prioritizing the initial latent state, which encapsulates rich information about the original images, EasyInv steers clear of the iterative refinement of noise items. Instead, we introduce a methodical aggregation of the latent state from the preceding time step with the current state, effectively increasing the influence of the initial latent state and mitigating the impact of noise. We illustrate that EasyInv is capable of delivering results that are either on par with or exceed those of the conventional DDIM Inversion approach, especially under conditions where the model's precision is limited or computational resources are scarce. Concurrently, our EasyInv offers an approximate threefold enhancement regarding inference efficiency over off-the-shelf iterative optimization techniques. It can be easily combined with most existing inversion methods by only four lines of code. See code at https://github.com/potato-kitty/EasyInv.

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

Code

Syntology Ran 3 of 10 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 3 ran with no contract checked.

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

potato-kitty/easyinv officialmentioned in paperpytorchMIT 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

10 samples harvested; 3 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
7unverified

Licence: 0 of the 10 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 potato-kitty/EasyInv. “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.

next_step potato-kitty/EasyInv/EasyInv_SDXL/utils.py official repository ran MIT (permissive) · e7a2e1734d1cc171 · report
next_step potato-kitty/EasyInv/utilsV14.py official repository ran MIT (permissive) · 8c82312c22288df6 · report
retrieve_timesteps potato-kitty/EasyInv/EasyInv_SDXL/utils.py official repository ran MIT (permissive) · 68b3877c0415eb29 · report
AttentionControl potato-kitty/easyinv/attention_controller.py official repository unverified MIT (permissive) · cff76646caed7835 · report
AttentionStore potato-kitty/easyinv/attention_controller.py official repository unverified MIT (permissive) · b761db2fcfa1008b · report
SDXL potato-kitty/EasyInv/EasyInv_SDXL/utils.py official repository unverified MIT (permissive) · a65f723dd78e582a · report
diffusion_step potato-kitty/EasyInv/utilsV14.py official repository unverified MIT (permissive) · f8ea771130ea35eb · report
get_down_block potato-kitty/EasyInv/replace_diffuser/unet_2d_blocks.py official repository unverified MIT (permissive) · e753703e70c30f2b · report
get_up_block potato-kitty/EasyInv/replace_diffuser/unet_2d_blocks.py official repository unverified MIT (permissive) · bcf7f25cb22d7136 · report
image2latent potato-kitty/EasyInv/utilsV14.py official repository unverified MIT (permissive) · 8a7518dbffd1c318 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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