Prompt-Softbox-Prompt: A Free-Text Embedding Control for Image Editing
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
- 2024Enhancing Prompt Following with Visual Control Through Training-Free Mask-Guided Diffusion23 Apr
- 2024Uncovering the Text Embedding in Text-to-Image Diffusion Models1 Apr
- 2023Dynamic Prompt Learning: Addressing Cross-Attention Leakage for Text-Based Image Editing27 Sep
- 2023Highly Personalized Text Embedding for Image Manipulation by Stable Diffusion15 Mar
- 2022Imagen Editor and EditBench: Advancing and Evaluating Text-Guided Image Inpainting13 Dec
- 2022InstructPix2Pix: Learning to Follow Image Editing Instructions17 Nov
- 2022DiffusionDet: Diffusion Model for Object Detection17 Nov
- 2022DiffEdit: Diffusion-based semantic image editing with mask guidance20 Oct
- 2022DreamBooth: Fine Tuning Text-to-Image Diffusion Models for Subject-Driven Generation25 Aug
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding23 May
- 2022BBDM: Image-to-image Translation with Brownian Bridge Diffusion Models16 May
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latents13 Apr
2 more
Other references · 35
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
- 2020Denoising Diffusion Implicit Modelscited by 9,655
- 2023Segment Anythingcited by 8,158
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,290
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 2,994
- 2022Prompt-to-Prompt Image Editing with Cross Attention Controlcited by 2,409
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,231
- 2022Plug-and-Play Diffusion Features for Text-Driven Image-to-Image Translationcited by 897
- 2016Generative Adversarial Text to Image Synthesiscited by 735
23 more
- 2023MasaCtrl: Tuning-Free Mutual Self-Attention Control for Consistent Image Synthesis and Editingcited by 722
- 2017AttnGAN: Fine-Grained Text to Image Generation with Attentional Generative Adversarial Networkscited by 664
- 2016StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networkscited by 575
- 2023ELITE: Encoding Visual Concepts into Textual Embeddings for Customized Text-to-Image Generationcited by 414
- 2023AnyDoor: Zero-shot Object-level Image Customizationcited by 411
- 2023InstantBooth: Personalized Text-to-Image Generation without Test-Time Finetuningcited by 343
- 2023Denoising Diffusion Models for Plug-and-Play Image Restorationcited by 335
- 2023VideoFusion: Decomposed Diffusion Models for High-Quality Video Generationcited by 330
- 2023Training-Free Layout Control with Cross-Attention Guidancecited by 312
- 2022SmartBrush: Text and Shape Guided Object Inpainting with Diffusion Modelcited by 276
- 2024StoryDiffusion: Consistent Self-Attention for Long-Range Image and Video Generationcited by 240
- 2023SinSR: Diffusion-Based Image Super-Resolution in a Single Stepcited by 235
- 2023Implicit Diffusion Models for Continuous Super-Resolutioncited by 216
- 2023Style Aligned Image Generation via Shared Attentioncited by 214
- 2022RenderDiffusion: Image Diffusion for 3D Reconstruction, Inpainting and Generationcited by 162
- 2023Cross-Image Attention for Zero-Shot Appearance Transfercited by 135
- 2024Training-Free Consistent Text-to-Image Generationcited by 123
- 2022Denoising diffusion models for out-of-distribution detectioncited by 102
- 2023SimDA: Simple Diffusion Adapter for Efficient Video Generationcited by 101
- 2023Ambiguous Medical Image Segmentation using Diffusion Modelscited by 92
- 2023TexFusion: Synthesizing 3D Textures with Text-Guided Image Diffusion Modelscited by 86
- 2023Sketch and Text Guided Diffusion Model for Colored Point Cloud Generationcited by 36
- 2024ObjectAdd: Adding Objects into Image via a Training-Free Diffusion Modification Fashioncited by 7
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025A Survey on 3D Gaussian Splatting Applications: Segmentation, Editing, and Generationcited by 19
- 2025Personalize Your LLM: Fake it then Align itcited by 15
- 2025SplitFlux: Learning to Decouple Content and Style from a Single Imagecited by 5
- 2026DiffStyle3D: Consistent 3D Gaussian Stylization via Attention Optimizationcited by 0
- 2026DiffStyle3D: Consistent 3D Gaussian Stylization via Attention Optimization27 Jan 2026
- 2025SplitFlux: Learning to Decouple Content and Style from a Single Image19 Nov 2025
- 2025A Survey on 3D Gaussian Splatting Applications: Segmentation, Editing, and Generation13 Aug 2025
- 2025Personalize Your LLM: Fake it then Align it2 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2025SAEdit: Token-level control for continuous image editing via Sparse AutoEncoder
- 2025Instructing Text-to-Image Diffusion Models via Classifier-Guided Semantic Optimization
- 2023StyleDiffusion: Prompt-Embedding Inversion for Text-Based Editing
- 2024Addressing Text Embedding Leakage in Diffusion-based Image Editing
- 2023PRedItOR: Text Guided Image Editing with Diffusion Prior
- 2023Manipulating Embeddings of Stable Diffusion Prompts
- 2026Text-to-Image Models Need Less from Text Encoders Than You Think
- 2024Latent Space Disentanglement in Diffusion Transformers Enables Zero-shot Fine-grained Semantic Editing