TL;DR
FairSHAP is a novel, model-agnostic preprocessing framework that uses Shapley value attribution to identify and selectively modify "fairness-critical" features in training data. By combining instance-level matching with interpretable feature importance, it significantly reduces bias across both individual and group fairness metrics while maintaining high model accuracy and data integrity.
What Problem Does This Paper Address?
Machine learning models often inherit or amplify societal biases present in training data, leading to unfair outcomes in high-stakes areas like hiring, lending, and criminal justice. Existing bias mitigation strategies—categorized as pre-, in-, or post-processing—often face a "black box" problem: they modify data or models without a transparent rationale for why specific changes were made.
Furthermore, many methods focus exclusively on group fairness (e.g., ensuring equal outcomes for men vs. women) while ignoring individual fairness (ensuring similar individuals are treated similarly). This can lead to "individual arbitrariness." The authors of FairSHAP aim to bridge this gap by providing a transparent, interpretable preprocessing method that targets individual-level biases to improve overall fairness without sacrificing data fidelity.
Methods
FairSHAP operates as a data augmentation pipeline that happens before the final model is trained. Its workflow consists of four main steps:
- Split and Match: The training data is divided into two groups based on a sensitive attribute (e.g., a privileged and an unprivileged group). The algorithm then uses Nearest Neighbor matching or Optimal Transport to find "twins"—instances from the opposite group that are otherwise identical or highly similar in their non-sensitive features and labels.
- Attribution via Shapley Values: The method calculates the Shapley value for each feature of an instance. In this context, the Shapley value quantifies how much a specific feature contributes to the Discriminative Risk (DR)—an individual fairness metric that measures how much a model's prediction changes if only the sensitive attribute is flipped.
- Targeted Data Augmentation: Features that exceed a predefined fairness-critical threshold ($T$) are identified. Instead of removing these features or perturbing the whole dataset, FairSHAP selectively replaces these specific values with the values from the matched "twin" in the other group.
- Recombination: The modified instances are recombined into a new, augmented training set.
This approach is model-agnostic and algorithm-adaptive; it consults a proxy model once to identify bias sources but results in a modified dataset that can be used to train any downstream classifier.
Datasets
The authors evaluated FairSHAP on five standard tabular datasets frequently used in fairness research:
- COMPAS: Recidivism risk scores (Sensitive attributes: Sex, Race).
- ADULT: Income prediction based on census data (Sensitive attributes: Sex, Race).
- German Credit: Credit risk assessment (Sensitive attribute: Sex).
- Census Income KDD: Large-scale census data (Sensitive attribute: Sex).
- Default Credit: Credit card default prediction (Sensitive attribute: Sex).
Key Insights and Ideas
- The Individual-Group Fairness Link: A core theoretical contribution is proving that reducing individual-level Discriminative Risk (DR) provides a mathematical upper bound for group-level Demographic Parity (DP). In simpler terms, fixing fairness for individuals naturally leads to fairer outcomes for groups.
- Interpretability as a Shield Against "Fairwashing": By using Shapley values, the method provides a clear rationale for every data modification. This prevents "fairwashing," where bias is hidden rather than removed.
- Minimalism for Fidelity: Unlike methods that project the entire dataset into a new space (like Correlation Remover), FairSHAP only edits features that are mathematically proven to drive unfairness. This preserves the "truth" of the data, maintaining high accuracy.
- Bidirectional Learning: The matching process is symmetric; the unprivileged group learns "fairer" feature values from the privileged group, and vice versa, ensuring a balanced representation.
Key Results
FairSHAP consistently achieved state-of-the-art or comparable performance against benchmarks like Disparate Impact Remover (DIR) and Correlation Remover (CR):
- Bias Reduction: It reduced Discriminative Risk (DR) by up to 80% on the German Credit dataset and nearly 40% on COMPAS.
- Accuracy Preservation: Unlike many fairness interventions that suffer a significant "accuracy tax," FairSHAP maintained negligible accuracy loss. In the COMPAS, KDD, and Default Credit datasets, accuracy actually improved after the fairness modifications.
- Data Integrity: The method showed significantly lower Wasserstein distance (a measure of how much the data distribution changed) compared to other preprocessing techniques, indicating it perturbs the data far less while achieving better fairness gains.
Limitations and Future Work
- Computational Complexity: Calculating Shapley values is computationally expensive, especially for high-dimensional data. While the authors used a prefix-chain estimator to mitigate this, scaling to extremely large datasets remains a challenge.
- One-Hot Encoding Issues: The authors noted that one-hot encoding categorical features can dilute the impact of Shapley values, making it harder to identify the most critical features in datasets with many categories.
- Future Directions: The team plans to explore alternative matching methods beyond Nearest Neighbor and integrate even more efficient Shapley estimation techniques to handle massive, high-dimensional datasets.
Summary updated