Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing
摘要
Deep Text-to-Image Synthesis (TIS) models such as Stable Diffusion have recently gained significant popularity for creative text-to-image generation. However, for domainspecific scenarios, tuning-free Text-guided Image Editing (TIE) is of greater importance for application developers. This approach modifies objects or object properties in images by manipulating feature components in attention layers during the generation process. Nevertheless, little is known about the semantic meanings that these attention layers have learned and which parts of the attention maps contribute to the success of image editing. In this paper, we conduct an in-depth probing analysis and demonstrate that crossattention maps in Stable Diffusion often contain object attribution information, which can result in editing failures. In contrast, self-attention maps play a crucial role in preserving the geometric and shape details of the source image during the transformation to the target image. Our analysis offers valuable insights into understanding cross and self-attention mechanisms in diffusion models. Furthermore, based on our findings, we propose a simplified, yet more stable and efficient, tuning-free procedure that modifies only the self-attention maps of specified attention layers during the denoising process. Experimental results show that our simplified method consistently surpasses the performance of popular approaches on multiple datasets. 1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 67 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Denoising Diffusion Probabilistic Models
- High-Resolution Image Synthesis with Latent Diffusion Models 引用了 Denoising Diffusion Implicit Models
- CustomCrafter: Customized Video Generation with Preserving Motion and Concept Composition Abilities 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- CustomCrafter: Customized Video Generation with Preserving Motion and Concept Composition Abilities 引用了 Learning Transferable Visual Models From Natural Language Supervision
- CustomCrafter: Customized Video Generation with Preserving Motion and Concept Composition Abilities 引用了 Denoising Diffusion Probabilistic Models
- CustomCrafter: Customized Video Generation with Preserving Motion and Concept Composition Abilities 引用了 Denoising Diffusion Implicit Models
- A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding Optimization 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding Optimization 引用了 Learning Transferable Visual Models From Natural Language Supervision
- A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding Optimization 引用了 Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding
- Attention (as Discrete-Time Markov) Chains 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Attention (as Discrete-Time Markov) Chains 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Charts Are Not Images: On the Challenges of Scientific Chart Editing 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Charts Are Not Images: On the Challenges of Scientific Chart Editing 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection Guidance 引用了 High-Resolution Image Synthesis with Latent Diffusion Models
- Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection Guidance 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection Guidance 引用了 Denoising Diffusion Probabilistic Models
- Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection Guidance 引用了 Denoising Diffusion Implicit Models
- Denoising Diffusion Implicit Models 引用了 Denoising Diffusion Probabilistic Models
- 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 Probabilistic Models
- Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding 引用了 Denoising Diffusion Implicit Models
引用它的顶会 Paper67
- CustomCrafter: Customized Video Generation with Preserving Motion and Concept Composition AbilitiesTao Wu, Yong Zhang, Xintao Wang, Xianpan Zhou 等AAAI 2025 · 62 次引用
- Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection GuidanceWenhao Sun, Xue-Mei Dong, Benlei Cui, Jingqun TangAAAI 2025 · 50 次引用
- A Cat Is A Cat (Not A Dog!): Unraveling Information Mix-ups in Text-to-Image Encoders through Causal Analysis and Embedding OptimizationChieh-Yun Chen, Chiang Tseng, Li-Wu Tsao, Hong-Han ShuaiNeurIPS 2024 · 22 次引用
- Attention (as Discrete-Time Markov) ChainsYotam Erel, Olaf Dünkel, Rishabh Dabral, Vladislav Golyanik 等NeurIPS 2025 · 12 次引用
- Charts Are Not Images: On the Challenges of Scientific Chart EditingShawn Li, Ryan Rossi, Sungchul Kim, Sunav Choudhary 等ICLR 2026 · 11 次引用
它引用的 Paper20
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 次引用
- 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 次引用
相关 Paper
- Training-Free Structured Diffusion Guidance for Compositional Text-to-Image SynthesisWeixi Feng, Xuehai He, Tsu-Jui Fu, Varun Jampani 等ICLR 2023 · 70 次引用
- SSAIM: Not All Self-Attentions Contain Effective Spatial Structure in Diffusion Models for Text-to-Image EditingZhenbo Yu, Jimin Dai, Yingzhen Zhang, Jian Yang 等ACM MM 2025 · 3 次引用
- Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image EditingKai Wang, Fei Yang, Shiqi Yang, Muhammad Atif Butt 等NeurIPS 2023 · 108 次引用
- Towards Efficient Diffusion-Based Image Editing with Instant Attention MasksSiyu Zou, Jiji Tang, Yiyi Zhou, Jing He 等AAAI 2024 · 24 次引用
- Attentive Linguistic Tracking in Diffusion Models for Training-free Text-guided Image EditingBingyan Liu, Chengyu Wang, Jun Huang, Kui JiaACM MM 2024 · 2 次引用
