mlsanityData to 7 Oct 2026

MAG-Edit: Localized Image Editing in Complex Scenarios via Mask-Based Attention-Adjusted Guidance

arXiv 2312.11396 ↗First posted 18 Dec 2023cs.CV cs.AIcited by 21

On the map: Diffusion models → Image generation, text-to-image and editing

Abstract (arXiv)

Recent diffusion-based image editing approaches have exhibited impressive editing capabilities in images with simple compositions. However, localized editing in complex scenarios has not been well-studied in the literature, despite its growing real-world demands. Existing mask-based inpainting methods fall short of retaining the underlying structure within the edit region. Meanwhile, mask-free attention-based methods often exhibit editing leakage and misalignment in more complex compositions. In this work, we develop MAG-Edit, a training-free, inference-stage optimization method, which enables localized image editing in complex scenarios. In particular, MAG-Edit optimizes the noise latent feature in diffusion models by maximizing two mask-based cross-attention constraints of the edit token, which in turn gradually enhances the local alignment with the desired prompt. Extensive quantitative and qualitative experiments demonstrate the effectiveness of our method in achieving both text alignment and structure preservation for localized editing within complex scenarios.

Key facts. Cited by 21 papers in the map (data through 7 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 33 of its 36 references that are in the map. First posted on arXiv 18 Dec 2023.

Builds on

33 of 36 references.

Closest ancestors · 19

Same direction, newest first

  1. 2023Direct Inversion: Boosting Diffusion-based Editing with 3 Lines of Code2 Oct
  2. 2023BoxDiff: Text-to-Image Synthesis with Training-Free Box-Constrained Diffusion20 Jul
  3. 2023PFB-Diff: Progressive Feature Blending Diffusion for Text-driven Image Editing28 Jun
  4. 2023Linguistic Binding in Diffusion Models: Enhancing Attribute Correspondence through Attention Map Alignment15 Jun
  5. 2023Grounded Text-to-Image Synthesis with Attention Refocusing8 Jun
  6. 2023InstructEdit: Improving Automatic Masks for Diffusion-based Image Editing With User Instructions29 May
  7. 2023Negative-prompt Inversion: Fast Image Inversion for Editing with Text-guided Diffusion Models26 May
  8. 2023StyleDiffusion: Prompt-Embedding Inversion for Text-Based Editing28 Mar
  9. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
  10. 2022SINE: SINgle Image Editing with Text-to-Image Diffusion Models8 Dec
  11. 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
  12. 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
7 more
  1. 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
  2. 2022Imagic: Text-Based Real Image Editing with Diffusion Models17 Oct
  3. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
  4. 2022Blended Latent Diffusion6 Jun
  5. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  6. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
  7. 2021Blended Diffusion for Text-driven Editing of Natural Images29 Nov

Other references · 14

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2020Denoising Diffusion Implicit Modelscited by 9,655
  6. 2022Classifier-Free Diffusion Guidancecited by 5,717
  7. 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
  8. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  9. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 897
  10. 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 722
  11. 2023MagicBrush: A Manually Annotated Dataset for Instruction-Guided Image Editingcited by 615
  12. 2023Zero-shot Image-to-Image Translationcited by 503
2 more
  1. 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
  2. 2022Splicing ViT Features for Semantic Appearance Transfercited by 209

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 11; 2026: 5.

21 papers.

Sort:

By area:

  1. 2024Continuous, Subject-Specific Attribute Control in T2I Models by Identifying Semantic Directionscited by 39
  2. 2025Qwen-Image-Layered: Towards Inherent Editability via Layer Decompositioncited by 29
  3. 2025VINCIE: Unlocking In-context Image Editing from Videocited by 17
  4. 2024UniVST: A Unified Framework for Training-free Localized Video Style Transfercited by 16
  5. 2025RefEdit: A Benchmark and Method for Improving Instruction-based Image Editing Model on Referring Expressionscited by 10
  6. 2025ManipShield: A Unified Framework for Image Manipulation Detection, Localization and Explanationcited by 5
  7. 2025IC-Effect: Precise and Efficient Video Effects Editing via In-Context Learningcited by 4
  8. 2024StarVid: Enhancing Semantic Alignment in Video Diffusion Models via Spatial and SynTactic Guided Attention Refocusingcited by 3
  9. 2024Event-Customized Image Generationcited by 3
  10. 2025EmoAgent: A Multi-Agent Framework for Diverse Affective Image Manipulationcited by 3
  11. 2025CameraMaster: Unified Camera Semantic-Parameter Control for Photography Retouchingcited by 3
  12. 2024Streamlining Image Editing with Layered Diffusion Brushescited by 2
9 more
  1. 2025MuseFace: Text-driven Face Editing via Diffusion-based Mask Generation Approachcited by 2
  2. 2026WhereEdit: Mask-aware Local Latent Editing for One-Step Image Editingcited by 2
  3. 2025Tuning-Free Image Editing with Fidelity and Editability via Unified Latent Diffusion Modelcited by 1
  4. 2026Rethinking Scribble-Guided Image Editing: Generalization, Instruction Adherence, and Multi-Taskingcited by 1
  5. 2025Controllable Adversarial Makeup for Privacy via Text-Guided Diffusioncited by 0
  6. 2025VisualChef: Generating Visual Aids in Cooking via Mask Inpaintingcited by 0
  7. 2026Toward 360-Degree Indoor Panorama Editing via Tuning-Free Diffusion Model with Refocusing Cross-Attentioncited by 0
  8. 2026Consistent and Editable: A Balanced Framework for Text-Guided Video Editingcited by 0
  9. 2026GOPI: Generation-Oriented 3D Pose Inference for Furniture Insertion from Single-View RGB-D Indoor Scenescited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editing
  2. 2025MDE-Edit: Masked Dual-Editing for Multi-Object Image Editing via Diffusion Models
  3. 2024Towards Efficient Diffusion-Based Image Editing with Instant Attention Masks
  4. 2024LoMOE: Localized Multi-Object Editing via Multi-Diffusion
  5. 2026Masked Generative Transformer Is What You Need for Image Editing
  6. 2025X-Edit: Detecting and Localizing Edits in Images Altered by Text-Guided Diffusion Models
  7. 2025MADI: Masking-Augmented Diffusion with Inference-Time Scaling for Visual Editing
  8. 2024LASPA: Latent Spatial Alignment for Fast Training-free Single Image Editing