mlsanityData to 7 Oct 2026

Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing

arXiv 2309.15664 ↗First posted 27 Sep 2023cs.CVcited by 76

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

Abstract (arXiv)

Large-scale text-to-image generative models have been a ground-breaking development in generative AI, with diffusion models showing their astounding ability to synthesize convincing images following an input text prompt. The goal of image editing research is to give users control over the generated images by modifying the text prompt. Current image editing techniques are susceptible to unintended modifications of regions outside the targeted area, such as on the background or on distractor objects which have some semantic or visual relationship with the targeted object. According to our experimental findings, inaccurate cross-attention maps are at the root of this problem. Based on this observation, we propose Dynamic Prompt Learning (DPL) to force cross-attention maps to focus on correct noun words in the text prompt. By updating the dynamic tokens for nouns in the textual input with the proposed leakage repairment losses, we achieve fine-grained image editing over particular objects while preventing undesired changes to other image regions. Our method DPL, based on the publicly available Stable Diffusion, is extensively evaluated on a wide range of images, and consistently obtains superior results both quantitatively (CLIP score, Structure-Dist) and qualitatively (on user-evaluation). We show improved prompt editing results for Word-Swap, Prompt Refinement, and Attention Re-weighting, especially for complex multi-object scenes.

Key facts. Cited by 76 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 42 of its 45 references that are in the map. First posted on arXiv 27 Sep 2023.

Builds on

42 of 45 references.

Closest ancestors · 17

Same direction, newest first

  1. 2023StyleDiffusion: Prompt-Embedding Inversion for Text-Based Editing28 Mar
  2. 2023Localizing Object-level Shape Variations with Text-to-Image Diffusion Models20 Mar
  3. 2023SVDiff: Compact Parameter Space for Diffusion Fine-Tuning20 Mar
  4. 2023Cones: Concept Neurons in Diffusion Models for Customized Generation9 Mar
  5. 2023Attend-and-Excite: Attention-Based Semantic Guidance for Text-to-Image Diffusion Models31 Jan
  6. 2022Multi-Concept Customization of Text-to-Image Diffusion8 Dec
  7. 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
  8. 2022Null-text Inversion for Editing Real Images using Guided Diffusion Models17 Nov
  9. 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
  10. 2022Imagic: Text-Based Real Image Editing with Diffusion Models17 Oct
  11. 2022Diffusion-based Image Translation using Disentangled Style and Content Representation30 Sep
  12. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
5 more
  1. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  2. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
  3. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
  4. 2021Blended Diffusion for Text-driven Editing of Natural Images29 Nov
  5. 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulation6 Oct

Other references · 25

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,604
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  4. 2020Denoising Diffusion Implicit Modelscited by 9,655
  5. 2022Classifier-Free Diffusion Guidancecited by 5,717
  6. 2021Zero-Shot Text-to-Image Generationcited by 4,276
  7. 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,131
  8. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  9. 2021CLIPScore: A Reference-free Evaluation Metric for Image Captioningcited by 2,388
  10. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
  11. 2021SDEdit: Guided Image Synthesis and Editing with Stochastic Differential Equationscited by 1,903
  12. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 897
13 more
  1. 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 722
  2. 2023Muse: Text-To-Image Generation via Masked Generative Transformerscited by 640
  3. 2021ILVR: Conditioning Method for Denoising Diffusion Probabilistic Modelscited by 634
  4. 2023Erasing Concepts from Diffusion Modelscited by 530
  5. 2023Zero-shot Image-to-Image Translationcited by 503
  6. 2022Make-A-Scene: Scene-Based Text-to-Image Generation with Human Priorscited by 487
  7. 2022Text2LIVE: Text-Driven Layered Image and Video Editingcited by 312
  8. 2023Ablating Concepts in Text-to-Image Diffusion Modelscited by 312
  9. 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
  10. 2022Splicing ViT Features for Semantic Appearance Transfercited by 209
  11. 2022Improving Sample Quality of Diffusion Models Using Self-Attention Guidancecited by 151
  12. 2023Delta Denoising Scorecited by 120
  13. 2023MDP: A Generalized Framework for Text-Guided Image Editing by Manipulating the Diffusion Pathcited by 18

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 5; 2024: 34; 2025: 30; 2026: 7.

76 papers.

Sort:

By area:

  1. 2024Diffusion Model-Based Image Editing: A Surveycited by 212
  2. 2024DiTCtrl: Exploring Attention Control in Multi-Modal Diffusion Transformer for Tuning-Free Multi-Prompt Longer Video Generationcited by 73
  3. 2024Attentive Eraser: Unleashing Diffusion Model's Object Removal Potential via Self-Attention Redirection Guidancecited by 63
  4. 2024Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Modelscited by 62
  5. 2023Focus on Your Instruction: Fine-grained and Multi-instruction Image Editing by Attention Modulationcited by 61
  6. 2024Rethinking the Spatial Inconsistency in Classifier-Free Diffusion Guidancecited by 58
  7. 2025VideoGrain: Modulating Space-Time Attention for Multi-grained Video Editingcited by 50
  8. 2024Continuous, Subject-Specific Attribute Control in T2I Models by Identifying Semantic Directionscited by 39
  9. 2024Finding NeMo: Localizing Neurons Responsible For Memorization in Diffusion Modelscited by 36
  10. 2024Token Merging for Training-Free Semantic Binding in Text-to-Image Synthesiscited by 35
  11. 2024A Survey on Data Augmentation in Large Model Eracited by 31
  12. 2024Conditional Image Synthesis with Diffusion Models: A Surveycited by 29
38 more
  1. 2023LEGO: Learning EGOcentric Action Frame Generation via Visual Instruction Tuningcited by 28
  2. 2024ColorPeel: Color Prompt Learning with Diffusion Models via Color and Shape Disentanglementcited by 28
  3. 2023LIME: Localized Image Editing via Attention Regularization in Diffusion Modelscited by 27
  4. 2024EVA: Zero-shot Accurate Attributes and Multi-Object Video Editingcited by 17
  5. 2025Exploring Multimodal Diffusion Transformers for Enhanced Prompt-based Image Editingcited by 16
  6. 2024TVG: A Training-free Transition Video Generation Method with Diffusion Modelscited by 15
  7. 2024MagicEraser: Erasing Any Objects via Semantics-Aware Controlcited by 15
  8. 2024Provable Differentially Private Computation of the Cross-Attention Mechanismcited by 14
  9. 2024Unlearning or Concealment? A Critical Analysis and Evaluation Metrics for Unlearning in Diffusion Modelscited by 12
  10. 2024Text Embedding is Not All You Need: Attention Control for Text-to-Image Semantic Alignment with Text Self-Attention Mapscited by 12
  11. 2025Detect-and-Guide: Self-regulation of Diffusion Models for Safe Text-to-Image Generation via Guideline Token Optimizationcited by 12
  12. 2025Side Effects of Erasing Concepts from Diffusion Modelscited by 12
  13. 2025EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editingcited by 12
  14. 2024LocInv: Localization-aware Inversion for Text-Guided Image Editingcited by 11
  15. 2024Multi-Class Textual-Inversion Secretly Yields a Semantic-Agnostic Classifiercited by 10
  16. 2025Anchor Token Matching: Implicit Structure Locking for Training-free AR Image Editingcited by 10
  17. 2024The Art of Deception: Color Visual Illusions and Diffusion Modelscited by 9
  18. 2025Generalized Decoupled Learning for Enhancing Open-Vocabulary Dense Perceptioncited by 9
  19. 2023IterInv: Iterative Inversion for Pixel-Level T2I Modelscited by 8
  20. 2025Free-Lunch Color-Texture Disentanglement for Stylized Image Generationcited by 8
  21. 2025Diffusion Counterfactual Generation with Semantic Abductioncited by 8
  22. 2024Block-wise LoRA: Revisiting Fine-grained LoRA for Effective Personalization and Stylization in Text-to-Image Generationcited by 7
  23. 2024Addressing Text Embedding Leakage in Diffusion-based Image Editingcited by 7
  24. 2025Leveraging Semantic Attribute Binding for Free-Lunch Color Control in Diffusion Modelscited by 7
  25. 2025ConText-CIR: Learning from Concepts in Text for Composed Image Retrievalcited by 7
  26. 2024CreativeSynth: Cross-Art-Attention for Artistic Image Synthesis with Multimodal Diffusioncited by 6
  27. 2025ConsistEdit: Highly Consistent and Precise Training-free Visual Editingcited by 6
  28. 2026SceneTransporter: Optimal Transport-Guided Compositional Latent Diffusion for Single-Image Structured 3D Scene Generationcited by 6
  29. 2025One-Way Ticket:Time-Independent Unified Encoder for Distilling Text-to-Image Diffusion Modelscited by 5
  30. 2024GRIF-DM: Generation of Rich Impression Fonts using Diffusion Modelscited by 4
  31. 2024Prompt-Softbox-Prompt: A Free-Text Embedding Control for Image Editingcited by 4
  32. 2025Expertized Caption Auto-Enhancement for Video-Text Retrievalcited by 4
  33. 2025EditCLIP: Representation Learning for Image Editingcited by 4
  34. 2024DiffQRCoder: Diffusion-based Aesthetic QR Code Generation with Scanning Robustness Guided Iterative Refinementcited by 3
  35. 2025RefVNLI: Towards Scalable Evaluation of Subject-driven Text-to-image Generationcited by 3
  36. 2025GD-Retriever: Controllable Generative Text-Music Retrieval with Diffusion Modelscited by 3
  37. 2025From Cradle to Cane: A Two-Pass Framework for High-Fidelity Lifespan Face Agingcited by 3
  38. 2025LORE: Latent Optimization for Precise Semantic Control in Rectified Flow-based Image Editingcited by 3

50 most cited of 76 All 76 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2025Prompt-to-Prompt: Text-Based Image Editing Via Cross-Attention Mechanisms -- The Research of Hyperparameters and Novel Mechanisms to Enhance Existing Frameworks
  2. 2024An Item is Worth a Prompt: Versatile Image Editing with Disentangled Control
  3. 2024Dynamic Prompt Optimizing for Text-to-Image Generation
  4. 2023Prompt-Free Diffusion: Taking "Text" out of Text-to-Image Diffusion Models
  5. 2023Manipulating Embeddings of Stable Diffusion Prompts
  6. 2023User-friendly Image Editing with Minimal Text Input: Leveraging Captioning and Injection Techniques
  7. 2023Compositional Text-to-Image Synthesis with Attention Map Control of Diffusion Models
  8. 2024Towards Understanding Cross and Self-Attention in Stable Diffusion for Text-Guided Image Editing