{"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/eedit-rethinking-the-spatial-and-temporal","title":"EEdit: Rethinking the Spatial and Temporal Redundancy for Efficient Image Editing","arxiv_id":"2503.10270","date":"2025-03-13","proceeding":null,"authors":["Zexuan Yan","Yue Ma","Chang Zou","Wenteng Chen","Qifeng Chen","Linfeng Zhang"],"abstract":"Inversion-based image editing is rapidly gaining momentum while suffering from significant computation overhead, hindering its application in real-time interactive scenarios. In this paper, we rethink that the redundancy in inversion-based image editing exists in both the spatial and temporal dimensions, such as the unnecessary computation in unedited regions and the redundancy in the inversion progress. To tackle these challenges, we propose a practical framework, named EEdit, to achieve efficient image editing. Specifically, we introduce three techniques to solve them one by one. For spatial redundancy, spatial locality caching is introduced to compute the edited region and its neighboring regions while skipping the unedited regions, and token indexing preprocessing is designed to further accelerate the caching. For temporal redundancy, inversion step skipping is proposed to reuse the latent for efficient editing. Our experiments demonstrate an average of 2.46 $\\times$ acceleration without performance drop in a wide range of editing tasks including prompt-guided image editing, dragging and image composition. Our codes are available at https://github.com/yuriYanZeXuan/EEdit","url_abs":"https://arxiv.org/abs/2503.10270v2","url_pdf":"https://arxiv.org/pdf/2503.10270v2.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":"eedit-rethinking-the-spatial-and-temporal","repo_url":"https://github.com/yuriyanzexuan/eedit","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2503.10270","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.10270"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yuriyanzexuan/eedit","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_violates":2,"ran_draft_wrong":1,"ran_fixture":1,"unverified":7},"by_repo_kind":{"official":{"samples":11,"ran":4,"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":"4e3ad3679e5c37b2","entry":"calculate_shift","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"MyCodes/MyFluxCompositionPipeline.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/MyCodes/MyFluxCompositionPipeline.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4e3ad3679e5c37b2"}},{"code_sha256_prefix":"a2f810a673cf074a","entry":"norm_score","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"cache_functions/scores.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/cache_functions/scores.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a2f810a673cf074a"}},{"code_sha256_prefix":"0b56680ee1708fee","entry":"retrieve_timesteps","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"MyCodes/MyFluxCompositionPipeline.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/MyCodes/MyFluxCompositionPipeline.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0b56680ee1708fee"}},{"code_sha256_prefix":"195ca5d843403029","entry":"similarity_score","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"cache_functions/scores.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/cache_functions/scores.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"195ca5d843403029"}},{"code_sha256_prefix":"c92fb5b26f68b7f1","entry":"attn_score","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"cache_functions/scores.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/cache_functions/scores.py","link_basis":"harvester_set","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":"c92fb5b26f68b7f1"}},{"code_sha256_prefix":"a9ebe98ae1217a05","entry":"forward","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"MyCodes/MyFluxForward.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/MyCodes/MyFluxForward.py","link_basis":"harvester_set","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":"a9ebe98ae1217a05"}},{"code_sha256_prefix":"efac58e9cd4918c9","entry":"get_next_number","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"composition_gen.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/composition_gen.py","link_basis":"harvester_set","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":"efac58e9cd4918c9"}},{"code_sha256_prefix":"71dad3ca1af30468","entry":"process_point_pairs","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"MyCodes/MyFluxDragEditPipeline.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/MyCodes/MyFluxDragEditPipeline.py","link_basis":"harvester_set","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":"71dad3ca1af30468"}},{"code_sha256_prefix":"98bcd15cf273e3b4","entry":"retrieve_latents","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"MyCodes/MyFluxCompositionPipeline.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/MyCodes/MyFluxCompositionPipeline.py","link_basis":"harvester_set","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":"98bcd15cf273e3b4"}},{"code_sha256_prefix":"259c256f3912d8ec","entry":"retrieve_latents","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"MyCodes/MyFluxDragEditPipeline.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/MyCodes/MyFluxDragEditPipeline.py","link_basis":"harvester_set","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":"259c256f3912d8ec"}},{"code_sha256_prefix":"bf94ec7d245afce8","entry":"score_evaluate","repo":"yuriyanzexuan/eedit","repo_kind":"official","path":"cache_functions/score_evaluate.py","file_url":"https://github.com/yuriyanzexuan/eedit/blob/HEAD/cache_functions/score_evaluate.py","link_basis":"harvester_set","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":"bf94ec7d245afce8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}