Balanced Datasets Are Not Enough: Estimating and Mitigating Gender Bias in Deep Image Representations

Tianlu Wang, Jieyu Zhao, Mark Yatskar, Kai-Wei Chang, Vicente Ordonez

Abstract

In this work, we present a framework to measure and mitigate intrinsic biases with respect to protected variables—such as gender—in visual recognition tasks. We show that trained models significantly amplify the association of target labels with gender beyond what one would expect from biased datasets. Surprisingly, we show that even when datasets are balanced such that each label co-occurs equally with each gender, learned models amplify the association between labels and gender, as much as if data had not been balanced! To mitigate this, we adopt an adversarial approach to remove unwanted features corresponding to protected variables from intermediate representations in a deep neural network—and provide a detailed analysis of its effectiveness. Experiments on two datasets: the COCO dataset (objects), and the imSitu dataset (actions), show reductions in gender bias amplification while maintaining most of the accuracy of the original models.

The Problem of Bias Amplification

Machine learning models are notorious for picking up on "spurious correlations." If a dataset contains more images of women in kitchens and men in offices, a model might learn to associate "spatula" with "woman" rather than learning the actual visual features of the object. This research focuses on bias amplification: the phenomenon where a model's predictions are even more skewed than the training data itself.

Previously, researchers thought balancing the dataset (ensuring equal representation) was the cure. This paper proves that balanced datasets are not enough because models latch onto unlabeled, gender-correlated features—like the presence of children or specific background settings—to maintain their biased associations.

Quantifying Bias via Leakage

To measure this phenomenon, the authors introduce two key metrics:

  1. Dataset Leakage ($\lambda_D$): How much gender information can be predicted simply by looking at the ground-truth labels of a dataset.
  2. Model Leakage ($\lambda_M$): How much gender information can be predicted from the model’s actual outputs.
Conceptual overview of Dataset Leakage vs. Model Leakage metrics.

If Model Leakage is higher than Dataset Leakage, the model is amplifying bias. The study found that even on "balanced" versions of the COCO and imSitu datasets, models still amplified gender bias almost as much as those trained on original, unbalanced data.

Adversarial Mitigation Strategy

To fix this, the authors employ Adversarial Debiasing. They integrate a "critic" (a second neural network) into the training process. While the main model attempts to predict the object or action, the critic attempts to predict the person's gender from the model's internal representations.

The adversarial training framework using gradient reversal to remove gender-specific features.

By using a gradient reversal layer, the main model is penalized if the critic succeeds. This forces the model to learn features that are useful for the task (e.g., identifying a "frisbee") but "blind" to gender. The authors found that applying this at the final convolutional layer (adv @ conv5) was the most effective, reducing bias amplification by 53% to 67%.

Key Insights and Results

  • The "Hidden Correlation" Trap: Balancing the label "cooking" between genders is insufficient if other unlabeled factors (like children or kitchen decor) remain unbalanced. The model uses these as proxies for gender.
  • Minimal Accuracy Trade-off: Unlike simpler methods like blurring out people, the adversarial method only caused a minor drop in performance—roughly 1.2 to 2.2 points in F1 score.
  • Visualization of Bias: Using an auto-encoder, the authors visualized that debiased models learned to selectively obscure gender-revealing parts of an image (like faces or specific clothing) while keeping the objects of interest clear.

Conclusion

This work demonstrates that dataset balancing is an incomplete solution for algorithmic bias. By treating bias as an information-theoretic "leakage" problem and using adversarial training to scrub protected attributes from neural representations, we can significantly reduce bias amplification while maintaining high performance in visual recognition tasks.

Summary updated

BibTeX
@inproceedings{wang2018balanced,
  author = {Tianlu Wang and Jieyu Zhao and Mark Yatskar and Kai-Wei Chang and Vicente Ordonez},
  title = {{Balanced Datasets Are Not Enough: Estimating and Mitigating Gender Bias in Deep Image Representations}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2018},
}
Figure