Introduction
Large-scale text-to-image diffusion models, such as Stable Diffusion XL (SDXL), have revolutionized content creation but often reflect and amplify societal biases present in their training data. This paper introduces DeCoDi (Debiasing Concepts in Diffusion), a lightweight, "plug-and-play" inference-time intervention designed to mitigate these biases without requiring expensive model retraining or fine-tuning.
The Challenge of Model Bias
Current text-to-image models frequently produce stereotypical representations. For example, prompts for "CEO" typically generate middle-aged white men, while "nurse" prompts result in young women. Addressing this usually involves:
- Massive Compute: Retraining models on balanced datasets is computationally prohibitive.
- Data Curation: Manually balancing datasets for every protected attribute is an immense task.
DeCoDi addresses these challenges by modifying the generation procedure rather than the model weights, making fairness interventions accessible to a broader range of practitioners.
Methodology: The DeCoDi Approach
DeCoDi builds upon Classifier-Free Guidance (CFG). While standard CFG balances unconditioned and text-conditioned noise estimates, DeCoDi introduces a third component: a biased concept guidance term ($\gamma$).
The process involves:
- Biased Prompt Generation: Using an LLM (GPT-4o) to generate a "negative prompt" describing stereotypical biases (e.g., for "nurse," the prompt might include "woman, feminine features").
- Vector-Space Manipulation: During denoising, DeCoDi calculates the direction toward this biased concept and subtracts it from the total guidance, pushing the latent representation away from the stereotype.
- Warm-up and Momentum: To maintain image quality, debiasing begins only after the initial image structure is formed (warm-up) and uses a momentum term to ensure smooth transitions across diffusion steps.
Experimental Evaluation
The authors evaluated DeCoDi using SDXL on a benchmark of 1,200 images across three biased occupational concepts: Nurse (gender), Firefighter (ethnicity), and CEO (age). Evaluation was conducted by human annotators and GPT-4o, which proved to be a reliable automated judge of demographic diversity.
Key Results
DeCoDi achieved significant shifts in demographic distribution while maintaining high image quality (as measured by CLIP-Scores):
- CEO (Age): Reduced "elderly" representations from 55.75% to 0.50%, favoring younger and middle-aged outputs.
- Firefighter (Ethnicity): Shifted from 88.50% white to a diverse mix including 46.75% Black and 41.25% Indian representations.
- Nurse (Gender): Successfully steered the output from 99.50% female to 87% male.
Discussion and Insights
A notable finding was attribute entanglement: debiasing for one trait (e.g., age) often increased diversity in others (e.g., ethnicity), suggesting that biases are clustered in the model's latent space. Furthermore, the success of the "warm-up" period demonstrates that the model can establish core composition (e.g., "a person in a suit") before specific demographic attributes are modified.
Limitations and Future Work
While effective, DeCoDi faces limitations such as simplified binary classifications and occasional over-correction (e.g., shifting almost entirely away from elderly CEOs). Future research will focus on better handling entangled attributes and refining the "Biased Concept Prompt" generation to ensure consistent steering across diverse contexts.
Summary updated