Investigating Bias in Image Classification using Model Explanations

Schrasing Tong, Lalana KagalarXiv 2020

Abstract

This study evaluates the efficacy of Explainable AI (XAI) methods, specifically Grad-CAM and Testing with Concept Activation Vectors (TCAV), in detecting and quantifying hidden biases in image classification models. By training AlexNet on datasets with controlled levels of gender and attribute bias (e.g., Doctor vs. Nurse), the researchers assess whether saliency maps and concept-based explanations can replace traditional, label-intensive fairness audits. Results indicate that while XAI can identify biased features, it suffers from high false-alarm rates in unbiased models and lacks the precision necessary for quantitative bias measurement.

Introduction

Detecting bias in computer vision is notoriously difficult. Traditional fairness metrics usually require "sensitive attributes" (like race or gender) to be explicitly labeled for every image. However, in the real world, bias is often implicit or tied to features we haven't labeled—like a model identifying "doctors" based on the presence of a stethoscope or "basketball players" by a specific jersey number. This research investigates whether model explanations can bypass the need for these labels. If an explanation highlights a person's face as the reason for a "nurse" classification, we intuitively know the model is biased. The researchers wanted to see if this intuition could be turned into a reliable, efficient, and quantitative framework for bias detection.

Methods and Datasets

The researchers evaluated two distinct types of explanation mechanisms:

  1. Grad-CAM: A saliency-map approach that produces heatmaps showing which pixels in an image contributed most to a specific prediction.
  2. TCAV (Testing with Concept Activation Vectors): A higher-level approach that quantifies how much a specific "concept" (e.g., "female," "white coat," "jersey") influenced a model's decision across an entire class.

To test these, they fine-tuned AlexNet models on datasets with varying "degrees of bias." They simulated bias by intentionally skewing the training data—for example, creating a version of the "doctor" class that was 100% male and a "nurse" class that was 100% female, then gradually balancing the ratios to see how the explanations changed. The authors curated two specific datasets using Google Image search: Doctor vs. Nurse (gender bias) and Basketball vs. Volleyball Players (gender and jersey color bias).

Grad-CAM heatmaps across the Doctor-Nurse and Basketball-Volleyball datasets.

Key Insights and Ideas

  • The "Noise" of Unbiased Models: One of the most surprising findings was that even "unbiased" models (trained on perfectly balanced data) frequently generated explanations that looked biased. For example, an unbiased model might still focus on a face to identify a doctor. This makes it incredibly difficult to set a "baseline" for what a fair model should look like using XAI alone.
  • The Efficiency Paradox: While XAI is often touted as a way to save time, the authors found that manually examining hundreds of Grad-CAM heatmaps or curating "concept sets" for TCAV requires significant human effort—potentially as much as just labeling the original data for a traditional audit.
  • Detection vs. Quantification: Explanations are good at telling you that a model is biased (e.g., "it's looking at the hair length"), but they are poor at telling you how much that bias will affect real-world performance.
Grad-CAM highlighting a face as a primary feature for classification, a potential indicator of gender bias.

Key Results

The authors proposed three new explanation-based metrics (M1, M2, M3). They found that Metric 2 (the total percentage of explanations showing bias) tended to vastly overestimate bias in fair models. In the "Doctor-Nurse" task, when the model was 100% biased, Grad-CAM correctly identified biased features in many incorrect predictions. However, even in the 1:1 (unbiased) model, 7 out of 32 examined explanations still pointed to biased features, creating a high "false alarm" rate. TCAV scores generally followed the direction of the bias, but the scores did not scale linearly with the actual performance disparity, making them unreliable for precise fairness "thresholding."

Conclusion

The authors conclude that current XAI tools are not yet a "silver bullet" for bias detection. Major limitations include human subjectivity in deciding whether a highlighted region represents bias, and the difficulty of detecting "invisible" biases not tied to specific objects (like lighting or camera angles). Future work should focus on developing more automated, "bias-aware" explanation mechanisms that can robustly reflect changes in discriminating features without requiring constant human oversight.

Summary updated

BibTeX
@misc{tong2020investigating,
  author = {Schrasing Tong and Lalana Kagal},
  title = {{Investigating Bias in Image Classification using Model Explanations}},
  year = {2020},
  eprint = {2012.05463},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.05463},
}
Figure