Introduction
Generative text-to-image models, such as Stable Diffusion, have revolutionized content creation but have also introduced significant ethical challenges. These models do not merely reflect the societal biases present in their massive training datasets; they actively amplify them. For instance, prompts for high-status roles like "CEO" or "firefighter" predominantly yield images of white men, while roles like "social worker" are skewed toward women. This paper investigates where these biases originate within the diffusion pipeline and introduces Fair Diffusion, a novel deployment-stage technique to generate diverse, fair images without the need for expensive retraining or dataset filtering.
Auditing the Diffusion Pipeline
To understand the flow of bias, the authors conducted a comprehensive audit of the Stable Diffusion pipeline, breaking it down into three core components:
- Training Data: Analysis of a 1.83-million image subset of LAION-5B, filtered for recognizable faces across 150 occupations.
- Text Encoder: Evaluation of the pre-trained CLIP model using the image Embedding Association Test (iEAT).
- Downstream Task: Assessment of over 480,000 images generated by Stable Diffusion (v1.5, 2.1), DeepFloyd IF, and Paella.
Using the FairFace facial attribute classifier, the researchers measured gender and age distributions. The audit revealed that bias amplification is a systemic issue: if a dataset contains 70% male images for a specific occupation, the resulting model often generates those images at a 90% frequency. Furthermore, the CLIP text encoder was found to be a major contributor, mathematically associating male-appearing individuals with "career/science" and female-appearing individuals with "family/arts."
Fair Diffusion: A Deployment-Stage Solution
Historically, mitigating bias required curating billion-image datasets or retraining models with fairness constraints—both of which are computationally prohibitive. Fair Diffusion offers an alternative by utilizing Semantic Guidance (SEGA) at the inference stage.
Instead of altering model weights, Fair Diffusion injects "fair instructions" during the iterative denoising process. For example, to achieve statistical parity for a "firefighter" prompt, the system can apply positive guidance for "female person" and negative guidance for "male person" on a per-generation basis. This allows for precise control over demographic proportions while preserving the core content and quality of the image.
Experimental Results
The effectiveness of Fair Diffusion was validated across 150 occupations. Key findings include:
- Neutralizing Bias: Fair Diffusion successfully shifted the gender distribution for all tested occupations into a "fair boundary" of 50% ± 4%, effectively neutralizing the default model bias.
- Beyond Binary Gender: The method proved effective for multi-class attributes like age. While default Stable Diffusion over-indexes on individuals aged 20-39, Fair Diffusion balanced outputs across three age brackets (0-19, 20-39, 40+) to approximately 33% each.
- Qualitative Integrity: Visually, the subjects' demographic traits are altered without destroying the composition or the occupational context (e.g., firefighters retain their specific gear and environment).
Limitations and Ethical Considerations
While Fair Diffusion is a powerful tool for fairness, it faces several challenges. The current automated evaluation relies on the FairFace classifier, which is limited to binary gender categories; the authors emphasize that gender is a spectrum and call for more inclusive datasets. Additionally, the fine-grained control offered by Fair Diffusion presents a dual-use dilemma: while it can be used to promote diversity, it could also be exploited by malicious actors to intentionally maximize stereotypes. Future work will focus on extending these techniques to image-to-image editing and developing automated systems for fair guidance detection.
Summary updated