The Bias Amplification Paradox in Text-to-Image Generation

Preethi Seshadri, Sameer Singh, Yanai Elazar · DOI

Abstract

Recent studies suggest that text-to-image (T2I) models like Stable Diffusion significantly amplify gender-occupation biases present in their training data. This paper investigates this "bias amplification paradox"—the question of why a model optimized to fit a data distribution would systematically deviate from it to become more biased. By analyzing the LAION-5B dataset and Stable Diffusion outputs, we demonstrate that much of this observed amplification is a measurement artifact caused by a distributional shift between descriptive training captions and underspecified generation prompts. When accounting for explicit gender indicators and prompt style, the perceived amplification nearly vanishes, suggesting that these models are faithful, rather than malicious, learners of their training distributions.

Introduction: The Problem of Bias Amplification

Machine learning models often inherit societal biases from their training data. A concerning phenomenon in generative AI is bias amplification, where a model exacerbates existing imbalances. For instance, if a training dataset contains 20% female engineers, a model might generate only 10% female engineers when prompted with "a photo of an engineer." This systematic deviation poses a challenge to the assumption that models simply minimize loss by fitting the training distribution.

The Distributional Shift Hypothesis

The core of the paradox lies in how we measure bias. Standard evaluations compare the aggregate gender ratio of an occupation in a training set (e.g., LAION) against the ratio in generated images. However, training captions often contain explicit gender indicators (e.g., "female doctor") when the subject deviates from a stereotype.

Figure 1: The bias amplification paradox illustrated with the 'engineer' prompt.

As shown in Figure 1, when a model is given a neutral prompt like "a photo of an engineer," it draws from the subset of training data that lacks explicit gender markers. In many web-scraped datasets, this "unmarked" category is significantly more biased than the dataset as a whole. The model is not inventing bias; it is matching the distribution of the specific, underspecified prompt it was given.

Methodology and Data

The researchers analyzed Stable Diffusion (v1.4 and v1.5) trained on LAION-5B. They focused on 62 occupations, generating 500 images per occupation using neutral templates. Gender was classified using a face detector and a zero-shot CLIP classifier. To test the impact of distributional shifts, they employed two refinement strategies:

  1. Excluding Explicit Indicators: Removing training captions that explicitly mentioned gender to better match the neutral generation prompts.
  2. Nearest Neighbor (NN) Matching: Using Sentence-BERT to find training captions semantically and structurally similar to the simple generation prompts.

Results: From Amplification to Faithfulness

In a naive baseline, Stable Diffusion appeared to amplify bias by an average of 12.57%. However, as the comparison became more "like-to-like," this figure dropped significantly.

Figure 2: Observed gender ratios in training vs. generation across 62 occupations.

The scatter plot in Figure 2 illustrates the general trend of bias across occupations. By combining the removal of gender indicators with nearest-neighbor matching, the measured amplification fell to 4.35%. Most strikingly, when the model was prompted with the exact captions found in the training set, amplification dropped to a negligible 0.68%. This indicates that the model's internal representation of the data is highly accurate.

Conclusion

The "bias amplification" observed in T2I models is largely a result of prompt underspecification and the linguistic quirks of web-scraped data. Rather than being "malicious" actors that invent new biases, these models are highly faithful learners of the specific data distributions they are shown. Future mitigation efforts should focus on curating training data and refining captions to reflect desired diversity, rather than assuming the model is the primary source of the imbalance.

Summary updated

BibTeX
@inproceedings{seshadri2024bias,
  author = {Preethi Seshadri and Sameer Singh and Yanai Elazar},
  title = {{The Bias Amplification Paradox in Text-to-Image Generation}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.353},
}
Figure