Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models

Senmao Li, J. Weijer, Taihang Hu, Fahad Shahbaz Khan, Qibin Hou +2 more
2/12/2026

No official code found. Best implementation: sen-mao/SuppressEOT (60 stars, last commit 2024-12-03).

Abstract

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 $\textit{soft-weighted regularization}$ and $\textit{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).

View on arXivView PDF

Code Implementations(1)

sen-mao/SuppressEOTCommunity100%

Official Implementations "Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models" (ICLR2024)

602PythonFeb 5, 20241 years ago

Similar Papers

Cite this paper

@article{li2026what,
  title  = {Get What You Want, Not What You Don't: Image Content Suppression for Text-to-Image Diffusion Models},
  author = {Senmao Li and J. Weijer and Taihang Hu and Fahad Shahbaz Khan and Qibin Hou and Yaxing Wang and Jian Yang},
  year   = {2026},
  eprint = {2402.05375},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.05375},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.05375.svg)](https://codeofpaper.com/paper/2402.05375)

Discussion