LOCATEdit: Graph Laplacian Optimized Cross Attention for Localized Text-Guided Image Editing

Achint Soni, Meet Soni, Sirisha Rambhatla
3/27/2025
cs.CVcs.AI

No official code found. Best implementation: criticalml-uw/LOCATEdit (16 stars, last commit 2025-05-27).

Abstract

Text-guided image editing aims to modify specific regions of an image according to natural language instructions while maintaining the general structure and the background fidelity. Existing methods utilize masks derived from cross-attention maps generated from diffusion models to identify the target regions for modification. However, since cross-attention mechanisms focus on semantic relevance, they struggle to maintain the image integrity. As a result, these methods often lack spatial consistency, leading to editing artifacts and distortions. In this work, we address these limitations and introduce LOCATEdit, which enhances cross-attention maps through a graph-based approach utilizing self-attention-derived patch relationships to maintain smooth, coherent attention across image regions, ensuring that alterations are limited to the designated items while retaining the surrounding structure. LOCATEdit consistently and substantially outperforms existing baselines on PIE-Bench, demonstrating its state-of-the-art performance and effectiveness on various editing tasks. Code can be found on https://github.com/LOCATEdit/LOCATEdit/

View on arXivView PDF

Code Implementations(1)

Official implementation of "LOCATEdit: Graph Laplacian Optimized Cross Attention for Localized Guided Image Editing

160PythonMar 11, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{soni2025locatedit,
  title  = {LOCATEdit: Graph Laplacian Optimized Cross Attention for Localized Text-Guided Image Editing},
  author = {Achint Soni and Meet Soni and Sirisha Rambhatla},
  year   = {2025},
  eprint = {2503.21541},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.21541v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.21541.svg)](https://codeofpaper.com/paper/2503.21541)

Discussion