TL;DR
This paper introduces "fairness Shapley values," a novel method to explain why a machine learning model is unfair by attributing unfairness to specific input features. They also propose a "meta-algorithm" that uses these explanations to train fairer models by learning a small "perturbation" to an existing model, offering flexibility and improved stability without sacrificing accuracy.
What Problem Does This Paper Address?
Machine learning models are increasingly used in high-stakes decisions, making it crucial to ensure they are fair. However, defining and measuring fairness is complex, with many competing definitions. While model explainability tools are often used to understand model behavior, existing methods can be easily manipulated to hide unfairness, making them unreliable for assessing fairness. This paper tackles the challenge of reliably explaining and mitigating unfairness in machine learning models, especially when sensitive attributes (like race or gender) are not directly used by the model but are correlated with other features.
Methods
The core of the paper is the introduction of fairness Shapley values. Building on the established Shapley value framework for explaining model accuracy, they adapt it to quantify and attribute unfairness. Specifically, they define new "value functions" that capture different fairness metrics (like demographic parity and equalized odds) and use these to calculate Shapley values that highlight which features contribute most to the model's unfairness.
A key innovation is a meta-algorithm for learning fair models. Instead of training a completely new fair model from scratch, they propose training a small "perturbation" to an existing, potentially unfair, model. This perturbation is trained to correct the unfairness. By explaining the original model, the perturbation, and the final corrected model, they gain a comprehensive understanding of the fairness intervention, including the trade-offs made between accuracy and fairness. This approach leverages the linearity of Shapley values and offers flexibility by being model-agnostic with respect to the original model.
Datasets
The experiments were conducted on two well-known datasets:
- Adult dataset: Used for predicting whether an individual earns more than $50K per year, with "sex" as the protected attribute.
- COMPAS dataset: Used for predicting recidivism risk, with "race" as the protected attribute.
Key Insights and Ideas
- Fairness is explainable: The paper demonstrates that unfairness, like accuracy, can be systematically attributed to individual features using Shapley values. This moves beyond simply detecting unfairness to understanding its root causes within the model's decision-making process.
- Robustness to manipulation: Unlike traditional feature importance measures, fairness Shapley values are shown to be robust to manipulation. Attempts to suppress the influence of a protected attribute by using proxies do not reduce the overall fairness Shapley value sum, which directly reflects the model's unfairness.
- Understanding the trade-off: The meta-algorithm allows for a clear explanation of the "correction" itself. By explaining the perturbation, researchers can see exactly what trade-offs are being made to achieve fairness, offering valuable insights into the intervention process.
- Flexibility and stability: The perturbation-based approach is model-agnostic and can be applied to various existing fairness interventions. It also offers improved training stability, as the corrected model is anchored to the original model's local accuracy optimum, preventing it from collapsing into trivial solutions.
Key Results
- Effective attribution of unfairness: The fairness Shapley values successfully identified features contributing to demographic parity differences on both the Adult and COMPAS datasets. For instance, "marital-status" was found to be a significant contributor to both accuracy and unfairness on the Adult dataset.
- No performance loss: The meta-algorithm, when applied with existing training-time fairness algorithms (like those from Agarwal et al. and Zhang et al.), resulted in no significant loss in model accuracy compared to training fair models from scratch.
- Improved stability: Experiments showed that the perturbation-based approach exhibited less variance in accuracy outcomes across different hyperparameter settings compared to standard adversarial training methods, indicating greater training stability.
- Competitive performance: The perturbed models performed competitively with other state-of-the-art fairness methods, achieving desired fairness levels without substantial accuracy degradation.
Limitations and Future Work
- Generalization to multiclass: While the paper mentions generalizing to multiclass classification, the primary experimental results focus on binary classification.
- Choice of fairness metric: The effectiveness of the fairness Shapley values is dependent on the chosen fairness metric. The paper explores demographic parity and equalized odds, but other metrics might require further adaptation.
- Computational cost: Shapley value computation can be computationally intensive, especially for complex models and large datasets. The paper uses approximations and Monte Carlo methods, but this remains a consideration.
The authors suggest that their approach offers a powerful tool for model development and fine-tuning of fairness, contributing to the creation of fairer models and a deeper understanding of unfairness in machine learning.
Summary updated