FairSHAP: Preprocessing for Fairness Through Attribution-Based Data Augmentation
Lin Zhu, Yijun Bian, Lei You
TL;DR
FairSHAP tackles the fairness gap in ML by treating bias reduction as an interpretable preprocessing task. It identifies fairness-critical features at the instance level using Shapley value attributions and then performs bidirectional instance-level matching across sensitive groups to replace high-contribution features with reference values, yielding a minimally perturbed augmented dataset. The method achieves substantial reductions in discriminative risk and improvements in demographic parity and equality of opportunity across multiple tabular datasets, with occasional gains in predictive accuracy. Its model-agnostic, transparent pipeline can be integrated into existing workflows, providing interpretable insights into the sources of bias and how data modifications influence fairness.
Abstract
Ensuring fairness in machine learning models is critical, particularly in high-stakes domains where biased decisions can lead to serious societal consequences. Existing preprocessing approaches generally lack transparent mechanisms for identifying which features or instances are responsible for unfairness. This obscures the rationale behind data modifications. We introduce FairSHAP, a novel pre-processing framework that leverages Shapley value attribution to improve both individual and group fairness. FairSHAP identifies fairness-critical instances in the training data using an interpretable measure of feature importance, and systematically modifies them through instance-level matching across sensitive groups. This process reduces discriminative risk - an individual fairness metric - while preserving data integrity and model accuracy. We demonstrate that FairSHAP significantly improves demographic parity and equality of opportunity across diverse tabular datasets, achieving fairness gains with minimal data perturbation and, in some cases, improved predictive performance. As a model-agnostic and transparent method, FairSHAP integrates seamlessly into existing machine learning pipelines and provides actionable insights into the sources of bias.Our code is on https://github.com/youlei202/FairSHAP.
