Fairness in Deep Learning: A Computational Perspective

Mengnan Du, Fan Yang, Na Zou, Xia Hu

TL;DR

This paper provides a comprehensive computational roadmap for identifying and fixing algorithmic bias in deep learning. By leveraging interpretability as a "debugging" tool, the authors categorize fairness issues into outcome discrimination and quality disparity, offering a systematic review of mitigation strategies across the entire machine learning lifecycle.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are increasingly deployed in high-stakes domains like criminal justice, hiring, and medicine. However, because these models are "data-driven," they often inherit and even amplify historical societal biases present in their training sets.

The core challenge is that DNNs are notoriously opaque "black boxes." It is difficult to tell if a model is making a decision based on legitimate features or protected attributes (like race or gender) that might be hidden through redundant encodings (e.g., a ZIP code acting as a proxy for race). The authors address the need for a rigorous, computational framework to detect these biases and mitigate them without destroying the model's utility.

Methods

The authors frame fairness through three lenses: Detection, Measurement, and Mitigation.

Detection via Interpretability

A key contribution is the use of interpretability to diagnose bias:

  • Local Interpretation: Examining which specific input features (like a surname or ZIP code) triggered a specific prediction, such as a loan rejection.
  • Global Interpretation: Identifying high-level "concepts" the model has learned. For example, using Concept Activation Vectors (CAVs) to see if a "doctor" classifier relies on a "male" concept.
The role of interpretation in the DNN pipeline, showing local and global approaches.

Mitigation Strategies

The paper categorizes mitigation into three stages:

  1. Pre-processing: Debias the data before training (e.g., reweighing samples or swapping gendered terms in text).
  2. In-processing: Changing the training process itself. This includes Adversarial Training, where a "predictor" tries to learn the task while an "adversary" tries to guess the protected attribute from the internal representations. The goal is to make the internal representation "blind" to the sensitive attribute.
  3. Post-processing: Calibrating the final outputs to ensure they meet fairness metrics like Demographic Parity or Equality of Opportunity.

Datasets

The authors evaluate various mitigation algorithms using two classic fairness benchmarks:

  • Adult Census Income: Used to predict whether income exceeds $50k/yr, with gender as the protected attribute.
  • COMPAS: A criminal recidivism dataset where race is the protected attribute.

They also reference the Faces of the World dataset and ImageNet to discuss representation issues and quality disparity in computer vision.

Key Insights and Ideas

  • Bias Amplification: DNNs don't just replicate bias; they often amplify it. A model might show higher levels of discrimination than the raw data it was trained on.
  • Representation vs. Input: Even if you "hide" sensitive attributes from the input, DNNs are excellent at finding proxies. Bias detection must therefore happen within the latent representations (the hidden layers) of the model.
  • The "Doctor" Stereotype: Using global interpretation, the authors highlight how a CNN doctor classifier captured a "not-woman" concept, significantly increasing its confidence when the subject was perceived as male.
Global interpretation showing a CNN's reliance on gender concepts for doctor classification and an adversarial mitigation scheme.
  • Quality Disparity: Fairness isn't just about biased outcomes; it's about service quality. For instance, facial recognition error rates for darker-skinned females can be as high as 34.7%, compared to just 0.8% for lighter-skinned males.

Key Results

The authors compared five mitigation methods (Reweighing, Optimized Pre-processing, Prejudice Remover, and Calibrated Odds) against a standard DNN.

  • The Fairness-Utility Trade-off: Most mitigation methods improved fairness metrics (bringing Parity closer to 1 and Odds closer to 0) but resulted in a slight drop in overall accuracy.
  • Prejudice Remover: This in-processing method showed strong performance on the Adult dataset, achieving a Demographic Parity of 0.961 (where 1 is perfect) compared to the original DNN's 0.347.
  • Conflicting Metrics: The results show that a model can be "fair" according to one metric (like Demographic Parity) while remaining "unfair" according to another (like Equality of Opportunity), highlighting the need for context-specific fairness definitions.

Limitations and Future Work

  • Intersectional Fairness: Most current work focuses on a single attribute (e.g., just race). Real-world discrimination often happens at the intersection of multiple attributes (e.g., African American women).
  • Benchmark Scarcity: There is a lack of diverse, high-quality benchmark datasets specifically designed to test for a wide range of biases.
  • Large-Scale Models: Mitigating bias in massive pre-trained models like BERT or XLNet remains a massive challenge due to the computational cost of retraining or fine-tuning them with fairness constraints.
  • Formalization: There is still no "silver bullet" metric for fairness; different legal and ethical contexts require different mathematical definitions.

Summary updated

BibTeX
@inproceedings{du2021fairness,
  author = {Mengnan Du and Fan Yang and Na Zou and Xia Hu},
  title = {{Fairness in Deep Learning: A Computational Perspective}},
  booktitle = {IEEE Intell. Syst},
  year = {2021},
  url = {https://openreview.net/forum?id=f08a507Abx},
}
Figure