Growth Inhibitors for Suppressing Inappropriate Image Concepts in Diffusion Models
Die Chen, Zhiwen Li, Mingyuan Fan, Cen Chen, Wenmeng Zhou, Yanhao Wang, Yaliang Li
TL;DR
This paper tackles the risk of inappropriate content in diffusion-based image generation by addressing implicit unsafe prompts that bypass explicit word filters. It introduces Growth Inhibitors for Erasure (GIE), a non-finetuning approach that operates in the image space by extracting target-concept features from cross-attention maps and injecting growth inhibitors during the diffusion process to erase unwanted content. An adapter learns the optimal suppression scale from early attention statistics, enabling precise erasure across varying degrees and scopes of concepts and even enabling simultaneous suppression of multiple concepts. Across NSFW content, artistic styles, and common objects, GIE outperforms eight baselines in erasure fidelity while preserving image quality and semantic alignment, and it generalizes to unseen concepts with minimal training overhead.
Abstract
Despite their remarkable image generation capabilities, text-to-image diffusion models inadvertently learn inappropriate concepts from vast and unfiltered training data, which leads to various ethical and business risks. Specifically, model-generated images may exhibit not safe for work (NSFW) content and style copyright infringements. The prompts that result in these problems often do not include explicit unsafe words; instead, they contain obscure and associative terms, which are referred to as implicit unsafe prompts. Existing approaches directly fine-tune models under textual guidance to alter the cognition of the diffusion model, thereby erasing inappropriate concepts. This not only requires concept-specific fine-tuning but may also incur catastrophic forgetting. To address these issues, we explore the representation of inappropriate concepts in the image space and guide them towards more suitable ones by injecting growth inhibitors, which are tailored based on the identified features related to inappropriate concepts during the diffusion process. Additionally, due to the varying degrees and scopes of inappropriate concepts, we train an adapter to infer the corresponding suppression scale during the injection process. Our method effectively captures the manifestation of subtle words at the image level, enabling direct and efficient erasure of target concepts without the need for fine-tuning. Through extensive experimentation, we demonstrate that our approach achieves superior erasure results with little effect on other concepts while preserving image quality and semantics.
