Biased Models Have Biased Explanations

Aditya Jain, Manish Ravula, Joydeep GhosharXiv 2020

Abstract

Machine learning models in high-stakes domains often exhibit biases that lead to unfair outcomes for protected groups. This paper demonstrates that a model's explanations, specifically SHAP values, directly reflect these underlying biases. We propose a framework that uses SHAP values to detect discrimination and a novel "Quadrant Method" for post-processing that achieves group fairness while improving individual fairness compared to traditional randomized approaches.

Introduction

As machine learning (ML) is increasingly deployed in sensitive areas like criminal justice and finance, ensuring fairness is paramount. However, Explainable AI (XAI) and Fairness in ML (FairML) have largely developed independently. Existing fairness mitigation often relies on "post-processing" interventions that randomly flip predictions to meet group-level statistical goals, such as Demographic Parity. This approach is fundamentally "individually unfair," as it penalizes individuals arbitrarily. We address this by asking: Can we use a model's own explanations to identify exactly who was unfairly advantaged or disadvantaged by their protected attributes?

Methodology: The SHAP-Based Approach

The core of our approach utilizes SHAP (SHapley Additive exPlanations) values, which assign each feature a contribution score toward a final prediction.

Discrimination Detection

We translate standard fairness definitions into SHAP terms. For instance, Demographic Parity is violated if the mean absolute SHAP value for a protected attribute is significantly non-zero. Our detection pipeline involves calculating SHAP values (using distillation for black-box models), quantifying distributions using metrics like Wasserstein distance, and comparing them against a "fairness baseline" created by randomizing the protected attribute.

Targeted Mitigation: The Quadrant Method

Instead of random selection, we propose a principled way to select individuals for recourse. By plotting individuals on a 2D plane—SHAP contribution of the protected attribute versus the model prediction—we identify four distinct groups.

The Quadrant Method for targeted fairness intervention

This visualization allows us to pinpoint individuals who received an "undue advantage" or "undue disadvantage" due to their protected attribute. We prioritize these individuals for outcome adjustments to meet group fairness targets, ensuring the burden of correction falls on those most affected by the model's bias.

Experimental Results

We evaluated our framework using the ProPublica COMPAS recidivism dataset, a benchmark known for racial bias.

Detection Performance

Our analysis confirmed that the model heavily weighted race. In the COMPAS dataset, being Caucasian increased the odds of a favorable outcome, while being African American had a negative effect.

Distribution of SHAP values for Race vs. Randomized Race

As shown in the figure, the SHAP distribution for the actual race attribute is significantly wider and more peaked away from zero compared to the randomized baseline, indicating a clear reliance on the protected feature. The mean absolute SHAP value for race was approximately 0.05, compared to 0.01 for the randomized baseline.

Mitigation and Fairness

Our proposed algorithm achieved group fairness metrics (Accuracy, False Positive Cost, etc.) comparable to state-of-the-art randomized methods. However, our method offers a qualitative improvement by making the selection process transparent and justifiable, targeting those the model explicitly biased rather than random individuals.

Discussion and Conclusion

The hypothesis that Biased Models Have Biased Explanations provides a powerful tool for both auditing and correcting ML systems. By moving beyond "blind" random fixes to explanation-guided interventions, we can better balance the tension between group and individual fairness. Future work will explore the dependency on mimic models for black-box systems and the application of other XAI methods like LIME or Integrated Gradients to these same tasks.

Summary updated

BibTeX
@misc{jain2020biased,
  author = {Aditya Jain and Manish Ravula and Joydeep Ghosh},
  title = {{Biased Models Have Biased Explanations}},
  year = {2020},
  eprint = {2012.10986},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.10986},
}
Figure