Exposing Hidden Biases in Text-to-Image Models via Automated Prompt Search
On the map: Diffusion models → Image generation, text-to-image and editing
Abstract (arXiv)
Text-to-image (TTI) diffusion models have achieved remarkable visual quality, yet they have been repeatedly shown to exhibit social biases across sensitive attributes such as gender, race and age. To mitigate these biases, existing approaches frequently depend on curated prompt datasets - either manually constructed or generated with large language models (LLMs) - as part of their training and/or evaluation procedures. Beside the curation cost, this also risks overlooking unanticipated, less obvious prompts that trigger biased generation, even in models that have undergone debiasing. In this work, we introduce Bias-Guided Prompt Search (BGPS), a framework that automatically generates prompts that aim to maximize the presence of biases in the resulting images. BGPS comprises two components: (1) an LLM instructed to produce attribute-neutral prompts and (2) attribute classifiers acting on the TTI's internal representations that steer the decoding process of the LLM toward regions of the prompt space that amplify the image attributes of interest. We conduct extensive experiments on Stable Diffusion 1.5 and a state-of-the-art debiased model and discover an array of subtle and previously undocumented biases that severely deteriorate fairness metrics. Crucially, the discovered prompts are interpretable, i.e they may be entered by a typical user, quantitatively improving the perplexity metric compared to a prominent hard prompt optimization counterpart. Our findings uncover TTI vulnerabilities, while BGPS expands the bias search space and can act as a new evaluation tool for bias mitigation.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Image generation, text-to-image and editing, one of 14 directions in Diffusion models. Builds on 41 of its 51 references that are in the map. First posted on arXiv 9 Dec 2025.
Builds on
41 of 51 references.
Closest ancestors · 10
Same direction, newest first
- 2025Visually Guided Decoding: Gradient-Free Hard Prompt Inversion with Language Models13 May
- 2025Dissecting and Mitigating Diffusion Bias via Mechanistic Interpretability26 Mar
- 2024On Discrete Prompt Optimization for Diffusion Models27 Jun
- 2024Dynamic Prompt Optimizing for Text-to-Image Generation5 Apr
- 2024Balancing Act: Distribution-Guided Debiasing in Diffusion Models28 Feb
- 2023Prompting Hard or Hardly Prompting: Prompt Inversion for Text-to-Image Diffusion Models19 Dec
- 2023Finetuning Text-to-Image Diffusion Models for Fairness11 Nov
- 2023HRS-Bench: Holistic, Reliable and Scalable Benchmark for Text-to-Image Models11 Apr
- 2022Multi-Concept Customization of Text-to-Image Diffusion8 Dec
- 2022DALL-Eval: Probing the Reasoning Skills and Social Biases of Text-to-Image Generation Models8 Feb
Other references · 31
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2022Classifier-Free Diffusion Guidancecited by 5,847
- 2014Deep Learning Face Attributes in the Wildcited by 3,693
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022An Image is Worth One Word: Personalizing Text-to-Image Generation using Textual Inversioncited by 2,245
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2023AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Modelscited by 785
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2022Easily Accessible Text-to-Image Generation Amplifies Demographic Stereotypes at Large Scalecited by 262
- 2023Stable Bias: Analyzing Societal Representations in Diffusion Modelscited by 226
19 more
- 2022Optimizing Prompts for Text-to-Image Generationcited by 207
- 2023SneakyPrompt: Jailbreaking Text-to-image Generative Modelscited by 189
- 2023Prompting4Debugging: Red-Teaming Text-to-Image Diffusion Models by Finding Problematic Promptscited by 171
- 2023Holistic Evaluation of Text-To-Image Modelscited by 160
- 2023Fair Diffusion: Instructing Text-to-Image Generation Models on Fairnesscited by 151
- 2023Social Biases through the Text-to-Image Generation Lenscited by 127
- 2024Jailbreaking Prompt Attack: A Controllable Adversarial Attack against Diffusion Modelscited by 72
- 2023The Bias Amplification Paradox in Text-to-Image Generationcited by 70
- 2024Survey of Bias In Text-to-Image Generation: Definition, Evaluation, and Mitigationcited by 66
- 2024OpenBias: Open-set Bias Detection in Text-to-Image Generative Modelscited by 61
- 2025IHEval: Evaluating Language Models on Following the Instruction Hierarchycited by 53
- 2023TIBET: Identifying and Evaluating Biases in Text-to-Image Generative Modelscited by 52
- 2024Universal Prompt Optimizer for Safe Text-to-Image Generationcited by 28
- 2024Identifying Implicit Social Biases in Vision-Language Modelscited by 27
- 2024FAIntbench: A Holistic and Precise Benchmark for Bias Evaluation in Text-to-Image Modelscited by 22
- 2024New Job, New Gender? Measuring the Social Bias in Image Generation Modelscited by 16
- 2025A Large Scale Analysis of Gender Biases in Text-to-Image Generative Modelscited by 14
- 2024The Male CEO and the Female Assistant: Evaluation and Mitigation of Gender Biases in Text-To-Image Generation of Dual Subjectscited by 6
- 2024KCIF: Knowledge-Conditioned Instruction Followingcited by 2
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Word-Level Explanations for Analyzing Bias in Text-to-Image Models
- 2025FairImagen: Post-Processing for Bias Mitigation in Text-to-Image Models
- 2024Bias Begets Bias: The Impact of Biased Embeddings on Diffusion Models
- 2025Hidden Bias in the Machine: Stereotypes in Text-to-Image Models
- 2025Aligned but Stereotypical? How System Prompts Shape Demographic Bias in LLM-Based Text-to-Image Models
- 2024Generated Bias: Auditing Internal Bias Dynamics of Text-To-Image Generative Models
- 2025Implicit Bias Injection Attacks against Text-to-Image Diffusion Models
- 2026DebFilter: Eradicating Biases Stashed in Value