{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/easyinv-toward-fast-and-better-ddim-inversion","title":"EasyInv: Toward Fast and Better DDIM Inversion","arxiv_id":"2408.05159","date":"2024-08-09","proceeding":null,"authors":["Ziyue Zhang","Mingbao Lin","Shuicheng Yan","Rongrong Ji"],"abstract":"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.","url_abs":"https://arxiv.org/abs/2408.05159v3","url_pdf":"https://arxiv.org/pdf/2408.05159v3.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"easyinv-toward-fast-and-better-ddim-inversion","repo_url":"https://github.com/potato-kitty/easyinv","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2408.05159","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2408.05159"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/potato-kitty/EasyInv","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/potato-kitty/easyinv","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"unverified":7},"by_repo_kind":{"official":{"samples":10,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"e7a2e1734d1cc171","entry":"next_step","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"EasyInv_SDXL/utils.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/EasyInv_SDXL/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e7a2e1734d1cc171"}},{"code_sha256_prefix":"8c82312c22288df6","entry":"next_step","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"utilsV14.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/utilsV14.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8c82312c22288df6"}},{"code_sha256_prefix":"68b3877c0415eb29","entry":"retrieve_timesteps","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"EasyInv_SDXL/utils.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/EasyInv_SDXL/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"68b3877c0415eb29"}},{"code_sha256_prefix":"cff76646caed7835","entry":"AttentionControl","repo":"potato-kitty/easyinv","repo_kind":"official","path":"attention_controller.py","file_url":"https://github.com/potato-kitty/easyinv/blob/HEAD/attention_controller.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cff76646caed7835"}},{"code_sha256_prefix":"b761db2fcfa1008b","entry":"AttentionStore","repo":"potato-kitty/easyinv","repo_kind":"official","path":"attention_controller.py","file_url":"https://github.com/potato-kitty/easyinv/blob/HEAD/attention_controller.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b761db2fcfa1008b"}},{"code_sha256_prefix":"a65f723dd78e582a","entry":"SDXL","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"EasyInv_SDXL/utils.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/EasyInv_SDXL/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a65f723dd78e582a"}},{"code_sha256_prefix":"f8ea771130ea35eb","entry":"diffusion_step","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"utilsV14.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/utilsV14.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f8ea771130ea35eb"}},{"code_sha256_prefix":"e753703e70c30f2b","entry":"get_down_block","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"replace_diffuser/unet_2d_blocks.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/replace_diffuser/unet_2d_blocks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e753703e70c30f2b"}},{"code_sha256_prefix":"bcf7f25cb22d7136","entry":"get_up_block","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"replace_diffuser/unet_2d_blocks.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/replace_diffuser/unet_2d_blocks.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bcf7f25cb22d7136"}},{"code_sha256_prefix":"8a7518dbffd1c318","entry":"image2latent","repo":"potato-kitty/EasyInv","repo_kind":"official","path":"utilsV14.py","file_url":"https://github.com/potato-kitty/EasyInv/blob/HEAD/utilsV14.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8a7518dbffd1c318"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}