mlsanityData to 7 Oct 2026

Prompt-Softbox-Prompt: A Free-Text Embedding Control for Image Editing

arXiv 2408.13623 ↗First posted 24 Aug 2024cs.CVcited by 4

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

Abstract (arXiv)

While text-driven diffusion models demonstrate remarkable performance in image editing, the critical components of their text embeddings remain underexplored. The ambiguity and entanglement of these embeddings pose challenges for precise editing. In this paper, we provide a comprehensive analysis of text embeddings in Stable Diffusion XL, offering three key insights: (1) textitaug embedding~footnotetextitaug embedding is obtained by combining the pooled output of the final text encoder with the timestep embeddings. https://github.com/huggingface/diffusers retains complete textual semantics but contributes minimally to image generation as it is only fused via the ResBlocks. More text information weakens its local semantics while preserving most global semantics. (2) textitBOS and textitpadding embedding do not contain any semantic information. (3) textitEOS holds the semantic information of all words and stylistic information. Each word embedding is important and does not interfere with the semantic injection of other embeddings. Based on these insights, we propose PSP (Prompt-Softbox-Prompt), a training-free image editing method that leverages free-text embedding. PSP enables precise image editing by modifying text embeddings within the cross-attention layers and using Softbox to control the specific area for semantic injection. This technique enables the addition and replacement of objects without affecting other areas of the image. Additionally, PSP can achieve style transfer by simply replacing text embeddings. Extensive experiments show that PSP performs remarkably well in tasks such as object replacement, object addition, and style transfer. Our code is available at https://github.com/yangyt46/PSP.

Key facts. Cited by 4 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 49 of its 62 references that are in the map. First posted on arXiv 24 Aug 2024.

Builds on

49 of 62 references.

Closest ancestors · 14

Same direction, newest first

  1. 2024Enhancing Prompt Following with Visual Control Through Training-Free Mask-Guided Diffusion23 Apr
  2. 2024Uncovering the Text Embedding in Text-to-Image Diffusion Models1 Apr
  3. 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing27 Sep
  4. 2023Highly Personalized Text Embedding for Image Manipulation by Stable Diffusion15 Mar
  5. 2022Imagen Editor and EditBench: Advancing and Evaluating Text-Guided Image Inpainting13 Dec
  6. 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
  7. 2022DiffusionDet: Diffusion Model for Object Detection17 Nov
  8. 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
  9. 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
  10. 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
  11. 2022BBDM: Image-to-image Translation with Brownian Bridge Diffusion Models16 May
  12. 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
2 more
  1. 2021GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models20 Dec
  2. 2021DiffusionCLIP: Text-Guided Diffusion Models for Robust Image Manipulation6 Oct

Other references · 35

  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. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  5. 2020Denoising Diffusion Implicit Modelscited by 9,655
  6. 2023Segment Anythingcited by 8,158
  7. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
  8. 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
  9. 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
  10. 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
  11. 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 897
  12. 2016Generative Adversarial Text to Image Synthesiscited by 735
23 more
  1. 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 722
  2. 2017AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networkscited by 664
  3. 2016StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networkscited by 575
  4. 2023ELITE: Encoding Visual Concepts into Textual Embeddings for Customized Text-to-Image Generationcited by 414
  5. 2023AnyDoor: Zero-shot Object-level Image Customizationcited by 411
  6. 2023InstantBooth: Personalized Text-to-Image Generation without Test-Time Finetuningcited by 343
  7. 2023Denoising Diffusion Models for Plug-and-Play Image Restorationcited by 335
  8. 2023VideoFusion: Decomposed Diffusion Models for High-Quality Video Generationcited by 330
  9. 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
  10. 2022SmartBrush: Text and Shape Guided Object Inpainting with Diffusion Modelcited by 276
  11. 2024StoryDiffusion: Consistent Self-Attention for Long-Range Image and Video Generationcited by 240
  12. 2023SinSR: Diffusion-Based Image Super-Resolution in a Single Stepcited by 235
  13. 2023Implicit Diffusion Models for Continuous Super-Resolutioncited by 216
  14. 2023Style Aligned Image Generation via Shared Attentioncited by 214
  15. 2022RenderDiffusion: Image Diffusion for 3D Reconstruction, Inpainting and Generationcited by 162
  16. 2023Cross-Image Attention for Zero-Shot Appearance Transfercited by 135
  17. 2024Training-Free Consistent Text-to-Image Generationcited by 123
  18. 2022Denoising diffusion models for out-of-distribution detectioncited by 102
  19. 2023SimDA: Simple Diffusion Adapter for Efficient Video Generationcited by 101
  20. 2023Ambiguous Medical Image Segmentation using Diffusion Modelscited by 92
  21. 2023TexFusion: Synthesizing 3D Textures with Text-Guided Image Diffusion Modelscited by 86
  22. 2023Sketch and Text Guided Diffusion Model for Colored Point Cloud Generationcited by 36
  23. 2024ObjectAdd: Adding Objects into Image via a Training-Free Diffusion Modification Fashioncited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025SAEdit: Token-level control for continuous image editing via Sparse AutoEncoder
  2. 2025Instructing Text-to-Image Diffusion Models via Classifier-Guided Semantic Optimization
  3. 2023StyleDiffusion: Prompt-Embedding Inversion for Text-Based Editing
  4. 2024Addressing Text Embedding Leakage in Diffusion-based Image Editing
  5. 2023PRedItOR: Text Guided Image Editing with Diffusion Prior
  6. 2023Manipulating Embeddings of Stable Diffusion Prompts
  7. 2026Text-to-Image Models Need Less from Text Encoders Than You Think
  8. 2024Latent Space Disentanglement in Diffusion Transformers Enables Zero-shot Fine-grained Semantic Editing