[Paper Review] Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models
This paper proposes a prompt-based method to suppress unwanted visual content in text-to-image diffusion models without fine-tuning. It uses soft-weighted regularization on text embeddings and inference-time optimization of attention maps to suppress negative targets (e.g., glasses) while preserving positive content, achieving state-of-the-art results across both latent-space (Stable Diffusion) and pixel-space (DeepFloyd-IF) models.
The success of recent text-to-image diffusion models is largely due to their capacity to be guided by a complex text prompt, which enables users to precisely describe the desired content. However, these models struggle to effectively suppress the generation of undesired content, which is explicitly requested to be omitted from the generated image in the prompt. In this paper, we analyze how to manipulate the text embeddings and remove unwanted content from them. We introduce two contributions, which we refer to as $ extit{soft-weighted regularization}$ and $ extit{inference-time text embedding optimization}$. The first regularizes the text embedding matrix and effectively suppresses the undesired content. The second method aims to further suppress the unwanted content generation of the prompt, and encourages the generation of desired content. We evaluate our method quantitatively and qualitatively on extensive experiments, validating its effectiveness. Furthermore, our method is generalizability to both the pixel-space diffusion models (i.e. DeepFloyd-IF) and the latent-space diffusion models (i.e. Stable Diffusion).
Motivation & Objective
- To address the failure of text-to-image diffusion models in suppressing explicitly requested negative content (e.g., 'without glasses').
- To develop a method that removes unwanted content from generated images without fine-tuning the diffusion model or requiring paired training data.
- To preserve desired content while suppressing negative targets through targeted manipulation of CLIP text embeddings.
- To generalize across both latent-space (e.g., Stable Diffusion) and pixel-space (e.g., DeepFloyd-IF) diffusion models.
Proposed method
- Proposes soft-weighted regularization on the text embedding matrix to suppress negative target information from the [EOT] embedding, which aggregates the full prompt's semantics.
- Applies inference-time text embedding optimization using two losses: negative target suppression loss and positive target preservation loss.
- Uses SVD-based component weighting with modified exponential decay ($\hat{\sigma} = \beta \cdot e^{\alpha\sigma} \cdot \sigma$) to prioritize suppression of high-singular-value components linked to unwanted content.
- Optimizes attention maps during inference to weaken attention to negative target tokens and strengthen attention to positive target tokens.
- Operates entirely on the text encoder output, avoiding any modification to the diffusion model weights or need for paired image data.
- Generalizes across multiple diffusion architectures, including Stable Diffusion and DeepFloyd-IF, by relying only on prompt-level text embedding manipulation.
Experimental results
Research questions
- RQ1Can we effectively suppress unwanted visual content in text-to-image diffusion models without fine-tuning the generative model?
- RQ2How can we modify text embeddings to remove redundant semantic information related to negative targets while preserving positive content?
- RQ3Does inference-time optimization of text embeddings improve suppression of unwanted content and generation of desired content?
- RQ4Can the proposed method generalize across different diffusion architectures, including both latent-space and pixel-space models?
- RQ5What is the impact of soft-weighted regularization on the [EOT] embedding in suppressing unwanted content?
Key findings
- The method reduces the DetScore for 'glasses' from 0.819 (baseline SD) to 0.123 in generated images, indicating strong suppression of unwanted content.
- Inference-time optimization improves suppression performance, with ablation studies confirming its significant contribution to final results.
- The method generalizes effectively to both Stable Diffusion (1.5 and 2.1) and DeepFloyd-IF, demonstrating cross-architecture robustness.
- The approach successfully suppresses unwanted content in complex prompts like 'a man without glasses' without generating artifacts or distorting the positive subject.
- The method enables prompt-based editing tasks such as subject replacement and addition, achieving results comparable to GLIGEN and Attend-and-Excite, but without requiring reference images or model fine-tuning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.