MAG-Edit: Localized Image Editing in Complex Scenarios via Mask-Based Attention-Adjusted Guidance
Qi Mao, Lan Chen, Yuchao Gu, Zhen Fang, Mike Zheng Shou
摘要
Recent diffusion-based image editing approaches have exhibited impressive editing capabilities in images with one dominant object in simple compositions. However, localized editing in images containing multiple objects and intricate compositions 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, causing noticeable discordance with their complex surroundings. Meanwhile, attention-based methods such as Prompt-to-Prompt (P2P) often exhibit editing leakage and misalignment in more complex compositions. In this work, we propose MAG-Edit, a plug-and-play, inference-stage optimization method, that empowers attention-based editing approaches, such as P2P, to enhance localized image editing in intricate scenarios. In particular, MAG-Edit optimizes the noise latent feature by encouraging two mask-based cross-attention ratios 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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Denoising Diffusion Implicit Models
- VINCIE: Unlocking In-context Image Editing from Video 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- VINCIE: Unlocking In-context Image Editing from Video 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Qwen-Image-Layered: Towards Inherent Editability via Layer Decomposition 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing 引用了 Learning Transferable Visual Models From Natural Language Supervision
- MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing 引用了 Denoising Diffusion Implicit Models
- MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editing 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Streamlining Image Editing with Layered Diffusion Brushes 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Streamlining Image Editing with Layered Diffusion Brushes 引用了 Learning Transferable Visual Models From Natural Language Supervision
- RefEdit: A Benchmark and Method for Improving Instruction-Based Image Editing Model on Referring Expressions 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- RefEdit: A Benchmark and Method for Improving Instruction-Based Image Editing Model on Referring Expressions 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Denoising Diffusion Implicit Models
- Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models 引用了 Denoising Diffusion Implicit Models
- Precise Diffusion Inversion: Towards Novel Samples and Few-Step Models 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
引用它的顶会 Paper10
- Qwen-Image-Layered: Towards Inherent Editability via Layer DecompositionShengming Yin, Zekai Zhang, Zecheng Tang, Kaiyuan Gao 等CVPR 2026 · 30 次引用
- VINCIE: Unlocking In-context Image Editing from VideoLeigang Qu, Feng Cheng, Ziyan Yang, Qi Zhao 等ICLR 2026 · 18 次引用
- RefEdit: A Benchmark and Method for Improving Instruction-Based Image Editing Model on Referring ExpressionsBimsara Pathiraja, Maitreya Patel, Shivam Singh, Yezhou Yang 等ICCV 2025 · 2 次引用
- Streamlining Image Editing with Layered Diffusion BrushesPeyman Gholami, Robert XiaoICCV 2025 · 1 次引用
- Precise Diffusion Inversion: Towards Novel Samples and Few-Step ModelsJing Zuo, Luoping Cui, Chuang Zhu, Yonggang QiNeurIPS 2025 · 1 次引用
它引用的 Paper19
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser 等CVPR 2022 · 13,123 次引用
- Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 次引用
- Photorealistic Text-to-Image Diffusion Models with Deep Language UnderstandingChitwan Saharia, William Chan, Saurabh Saxena, Lala Li 等NeurIPS 2022 · 8,965 次引用
- MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and EditingMingdeng Cao, Xintao Wang, Zhongang Qi, Ying Shan 等ICCV 2023 · 770 次引用
相关 Paper
- An Item Is Worth a Prompt: Versatile Image Editing with Disentangled ControlAosong Feng, Weikang Qiu, Jinbin Bai, Zhen Dong 等AAAI 2025 · 9 次引用
- Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image EditingKai Wang, Fei Yang, Shiqi Yang, Muhammad Atif Butt 等NeurIPS 2023 · 108 次引用
- LOCATEdit: Graph Laplacian Optimized Cross Attention for Localized Text-Guided Image EditingAchint Soni, Meet Soni, Sirisha RambhatlaICCV 2025 · 1 次引用
- LoMOE: Localized Multi-Object Editing via Multi-DiffusionGoirik Chakrabarty, Aditya Chandrasekar, Ramya Hebbalaguppe, Prathosh APACM MM 2024 · 4 次引用
- Prompt-guided Precise Audio Editing with Diffusion ModelsManjie Xu, Chenxing Li, Duzhen Zhang, Dan Su 等ICML 2024 · 15 次引用
