Auditing Gender Presentation Differences in Text-to-Image Models

Yanzhe Zhang, Lu Jiang, Greg Turk, Diyi Yang

Introduction

As text-to-image (T2I) models like DALL-E 2 and Stable Diffusion become ubiquitous, auditing their inherent biases is critical. Traditional audits typically focus on "representation bias"—quantifying the frequency of generated genders for specific prompts (e.g., how many "doctors" are female). However, this approach overlooks the nuanced ways in which gender is presented. Even if a model achieves numerical parity, it may still rely on harmful stereotypes regarding how different genders are dressed or equipped.

This paper introduces a novel framework to measure Gender Presentation Differences (GEP). Rather than asking who is generated, the authors investigate how they are presented by analyzing the stereotypical attributes (clothing, accessories, etc.) that models automatically attach to specific genders.

The GEP Framework

The researchers proposed a three-part methodology to quantify these differences:

  1. The GEP Metric: A "GEP vector" is defined where each dimension represents the frequency difference of a specific attribute (e.g., "wearing a suit") between images of men and women. The GEP score is the normalized magnitude of this vector, providing a single value to represent the degree of presentation bias.
  2. Neutral vs. Explicit Probing: The framework evaluates models in two settings. Neutral prompts (e.g., "A man sitting at a table") reveal default associations, while Explicit prompts (e.g., "A woman in a tie sitting at a table") test the model's ability to override internal stereotypes.
  3. Cross-Modal Classifiers: To automate the audit, the authors developed a method to train logistic regression classifiers on CLIP embeddings using only text prompts. Because CLIP aligns text and image spaces, these classifiers can accurately identify fine-grained attributes in generated images without requiring expensive human annotation.

Experimental Results

The study evaluated CogView2, DALL-E 2, and Stable Diffusion v1.5 across 15 common attributes (e.g., boots, dress, suit) and 16 diverse contexts.

Comparison of CLIP and GEP scores across models. While CLIP measures prompt alignment, the GEP score quantifies the difference in how genders are presented. In explicit settings, DALL-E 2 shows the lowest GEP score, indicating better success at overriding stereotypes.

Stereotype Amplification and Failure

The results indicate that models often exaggerate real-world data. For example, while men wear suits more frequently in many professional datasets, T2I models may almost never generate a woman in a suit unless explicitly prompted. Even with explicit prompts, models frequently fail. As shown in the comparison above, CogView2 and Stable Diffusion often struggle to associate "masculine" attributes with women, sometimes even reverting to generating a man instead of the requested woman in a tie.

Model Comparisons

  • Stable Diffusion: Exhibited the highest GEP score in neutral settings (0.07), suggesting the strongest default gender stereotypes.
  • DALL-E 2: Demonstrated the lowest GEP score in explicit settings. It was significantly more successful at associating non-stereotypical attributes with a specified gender, likely due to internal diversification filters implemented by OpenAI.
  • CogView2: While it showed low GEP in neutral settings, this was largely attributed to lower image quality and a general failure to render many specific attributes.

Discussion and Limitations

A key finding of the research is that standard CLIP similarity scores are insufficient for auditing bias. While CLIP measures how well an image matches a prompt, it does not capture the systematic differences in presentation that the GEP score reveals.

However, the study is currently limited to binary gender (man/woman) due to the constraints of existing training data and the complexities of defining non-binary presentation attributes. Furthermore, there is an inherent tension between image quality and bias: as models become better at rendering specific items like "suits," their stereotypical associations become more pronounced and visible. Future work aims to extend this framework to audit racial and cultural presentation differences.

Summary updated

BibTeX
@inproceedings{zhang2024auditing,
  author = {Yanzhe Zhang and Lu Jiang and Greg Turk and Diyi Yang},
  title = {{Auditing Gender Presentation Differences in Text-to-Image Models}},
  booktitle = {EAAMO},
  year = {2024},
  doi = {10.1145/3689904.3694710},
}
Figure