Image-Perfect Imperfections: Safety, Bias, and Authenticity in the Shadow of Text-To-Image Model Evolution

Yixin Wu, Yun Shen, Michael Backes, Yang Zhang

TL;DR

This paper presents the first longitudinal study of how text-to-image models like Stable Diffusion evolve across three critical dimensions: safety, bias, and authenticity. While newer models are significantly safer and produce higher-quality images, they paradoxically exhibit intensified gender biases and render existing "fake image" detectors nearly obsolete.

What Problem Does This Paper Address?

As text-to-image (T2I) models like Stable Diffusion (SD) undergo iterative updates, the community often focuses on the obvious leap in visual fidelity. However, we lack a systematic understanding of how these updates impact "invisible" factors.

The authors tackle three main questions:

  1. Safety: Do model updates actually reduce the generation of "Not Safe For Work" (NSFW) content?
  2. Bias: Do newer models mitigate or amplify societal stereotypes regarding race and gender?
  3. Authenticity: Can the "fake image" detectors we built for yesterday's AI still catch the hyper-realistic outputs of today's models?

Methods

The researchers established a comprehensive evaluation framework to compare three major milestones: Stable Diffusion V1.5 (SD-1.5), V2.1 (SD-2.1), and SD-XL.

  • Safety Evaluation: They used the standard SD safety checker to calculate "unsafe scores" (the proportion of NSFW images) across five diverse prompt datasets.
  • Bias Analysis: They employed Mean Absolute Deviation (MAD) to quantify how much a model's output distribution (e.g., gender in "CEO" images) deviates from a perfectly balanced baseline. They tested both "neutral" prompts (e.g., "a photo of a doctor") and explicit identity prompts.
  • Authenticity Testing: They evaluated two types of state-of-the-art detectors: an image-only detector (ResNet-18) and a hybrid detector (using CLIP to analyze both image and prompt). They also proposed an iterative fine-tuning strategy to "patch" these detectors for newer model versions.

Datasets

The study utilized a massive evaluation suite consisting of 24,374 prompts and 74,020 generated images.

  • Safety Prompts: Sourced from 4chan, Lexica, I2P, DiffusionDB, and a custom "Template" dataset.
  • Bias Prompts: 10 human traits (e.g., "attractive," "thug") and 10 occupations (e.g., "nurse," "software developer").
  • Authenticity Benchmarks: Images paired with captions from Flickr30K and MSCOCO.
  • New Benchmarks: The authors introduced a "tailor-made" evaluation dataset specifically designed for longitudinal tracking, which they have open-sourced.

Key Insights and Ideas

  • Safety is Improving, but not Solved: SD-XL is much better at suppressing explicit content, likely due to more aggressive dataset filtering. However, "implicit" keywords (like specific artist names known for erotic art) can still trigger unsafe generations in older versions, a phenomenon the authors call "entanglement."
  • The Bias Paradox: Surprisingly, as image quality improves, gender bias intensifies. In SD-XL, 8 out of 10 occupations were almost entirely skewed toward a single gender, compared to only 2 out of 10 in the earlier SD-1.5.
  • Stereotype Shifting: Negative stereotypes don't just vanish; they migrate. For example, the "poor person" stereotype shifted from being predominantly associated with Black individuals in SD-1.5 to Asian individuals in SD-XL.
  • The "Cat-and-Mouse" Detection Gap: There is a strong correlation between improved image quality and the failure of fake image detectors. Detectors trained on SD-1.5 are essentially blind to SD-XL's outputs because the "artifacts" they learned to recognize have been smoothed away by better model architecture.

Key Results

  • Safety: The average unsafe score dropped from 0.209 (SD-1.5) to 0.113 (SD-XL).
  • Bias: The average gender MAD for occupations increased from 0.417 to 0.490 (where 0.5 is a total skew), showing that newer models are more stereotypical.
  • Authenticity: An image-only detector trained on SD-1.5 achieved 98.4% accuracy on its own version but plummeted to just 36.7% when tested on SD-XL.
  • The Fix: By fine-tuning detectors with as few as 500 images from the new model version, accuracy was restored to over 96.6%.

Limitations and Future Work

The primary limitation is the "black box" nature of newer models; while SD-1.5's training data is public, SD-XL's specifics remain proprietary, making it hard to pinpoint exactly why certain biases emerged.

The authors suggest that future work should move beyond simple dataset filtering (which clearly isn't fixing bias) toward more sophisticated "de-biasing" techniques during the training process itself. They also emphasize the need for "continuous monitoring" frameworks—like the one proposed here—to ensure that as AI gets prettier, it doesn't also get more prejudiced or harder to regulate.

Summary updated

BibTeX
@inproceedings{wu2024image,
  author = {Yixin Wu and Yun Shen and Michael Backes and Yang Zhang},
  title = {{Image-Perfect Imperfections: Safety, Bias, and Authenticity in the Shadow of Text-To-Image Model Evolution}},
  booktitle = {CCS},
  year = {2024},
  doi = {10.1145/3658644.3690288},
}

Loading related content...

Figure