Introduction
Diffusion Models (DMs) have set a new standard for high-fidelity image synthesis, yet they suffer from a significant "mirroring" problem: they reflect and often amplify the demographic biases present in their massive, uncurated training datasets. When prompted for a "doctor," a model might disproportionately generate images of light-skinned males, perpetuating harmful stereotypes. While addressing these biases is critical, existing solutions often require computationally prohibitive retraining or rely on "sample guidance" techniques that can degrade image quality.
This paper introduces Distribution Guidance, a lightweight, inference-time intervention that achieves demographic balance by steering the model’s internal feature space toward a target attribute distribution. By focusing on batch-level statistics rather than individual image labels, the authors provide a path toward fairer generative AI without sacrificing visual excellence.
The Limitations of Instance-Level Guidance
Previous attempts to debias DMs typically employ instance-level guidance, where every generated image is forced toward a specific attribute (e.g., "ensure this specific face is female"). This approach often leads to "sample collapse" or visual distortions. If a latent representation is already strongly predisposed toward one category, forcing it into another can result in unnatural artifacts.
Furthermore, retraining large-scale models like Stable Diffusion is impractical for most researchers. There is a clear need for a "plug-and-play" method that can be applied to pre-trained models to ensure diverse and representative outputs.
Methodology: Distribution and H-Space Guidance
The authors propose a two-pronged strategy to achieve fairness efficiently:
1. Distribution-Level Steering
Instead of imposing a strict label on every image, Distribution Guidance looks at a batch of images simultaneously. The goal is to ensure the entire batch matches a user-defined target distribution (e.g., an equal split across different racial groups). This provides the model with "semantic flexibility": it can choose to transform the samples that are closest to the decision boundary—the "easier" ones to change—while leaving more distinct samples alone. This selective pressure results in significantly higher image quality compared to forcing every sample to change.
2. Leveraging the H-Space
The researchers discovered that the bottleneck layer of the denoising UNet—referred to as the h-space—is a gold mine of semantic information. They found that even a simple linear layer or a small Multi-Layer Perceptron (MLP), termed an Attribute Distribution Predictor (ADP), can predict demographic traits from these internal features with over 90% accuracy.
During the generation process, the gradients from the ADP are used to steer the h-space features. This ensures the final generated batch follows the desired distribution without ever touching the original model weights.
Experimental Evaluation
The method was tested across several diverse datasets and tasks:
- CelebA-HQ & FFHQ: Used to evaluate facial attributes such as gender, age, and race.
- LAION/Stable Diffusion v1.5: Used to test text-to-image generation for complex prompts.
- WaterBirds: Used to demonstrate the mitigation of spurious correlations (e.g., ensuring waterbirds are not only generated against water backgrounds).
Key Results
- Fairness vs. Quality: The method achieved a dramatic reduction in Fairness Discrepancy (FD). For gender balancing in Stable Diffusion, the FD dropped from 0.317 (random sampling) to 0.024 (Distribution Guidance). Crucially, this was achieved while maintaining or improving the Frechet Inception Distance (FID), a standard metric for image quality.
- Multi-Attribute Balancing: Unlike baseline methods that struggle with complexity, this approach successfully balanced multiple traits simultaneously (e.g., Gender + Race + Eyeglasses) without creating artifact-heavy results.
- Downstream Utility: To prove the real-world utility of the method, the authors used their debiased DM to generate a balanced training set for a separate race classifier. This "fair" synthetic data improved the classifier's accuracy on minority groups (e.g., Black females) from 75.76% to 91.04%.
Conclusion and Future Directions
Distribution-Guided Debiasing offers a practical, efficient, and high-quality solution to the bias problem in Diffusion Models. By shifting the focus from individual samples to batch distributions and targeting the semantically rich h-space, the authors provide a tool that can be integrated into existing workflows with zero retraining.
While the current method relies on pre-trained classifiers to create initial labels for the ADP, future work aims to explore "unsupervised" debiasing. This would involve automatically discovering biased directions within the h-space, further reducing the reliance on external labeled data and making the path to fair generative AI even more accessible.
Summary updated