Implicit Bias Injection Attacks against Text-to-Image Diffusion Models
Huayang Huang, Xiangye Jin, Jiaxu Miao, Yu Wu
TL;DR
This work reveals a covert form of bias, implicit and semantically diverse, that can be injected into text-to-image diffusion models without retraining. It introduces IBI-Attacks, which precompute a bias-direction in prompt embeddings using neutral and biased prompts generated by an LLM, then dynamically adapt this direction per input with an adaptive feature-selection module. The approach demonstrates strong bias injection while preserving original semantics, with high transferability across scenes and favorable stealth in human studies, and shows robustness against certain debiasing methods. The findings highlight an important risk in diffusion-based generation and suggest the need for comprehensive bias-mitigation strategies that account for latent-space directions and adaptive expression across prompts.
Abstract
The proliferation of text-to-image diffusion models (T2I DMs) has led to an increased presence of AI-generated images in daily life. However, biased T2I models can generate content with specific tendencies, potentially influencing people's perceptions. Intentional exploitation of these biases risks conveying misleading information to the public. Current research on bias primarily addresses explicit biases with recognizable visual patterns, such as skin color and gender. This paper introduces a novel form of implicit bias that lacks explicit visual features but can manifest in diverse ways across various semantic contexts. This subtle and versatile nature makes this bias challenging to detect, easy to propagate, and adaptable to a wide range of scenarios. We further propose an implicit bias injection attack framework (IBI-Attacks) against T2I diffusion models by precomputing a general bias direction in the prompt embedding space and adaptively adjusting it based on different inputs. Our attack module can be seamlessly integrated into pre-trained diffusion models in a plug-and-play manner without direct manipulation of user input or model retraining. Extensive experiments validate the effectiveness of our scheme in introducing bias through subtle and diverse modifications while preserving the original semantics. The strong concealment and transferability of our attack across various scenarios further underscore the significance of our approach. Code is available at https://github.com/Hannah1102/IBI-attacks.
