Abstract
Machine learning models often inherit and amplify societal biases present in training data, leading to discriminatory outcomes. This paper introduces a model-agnostic pre-processing method that transforms datasets to be "fair" by preserving quantiles within a causal framework. By mapping individuals to their counterfactual counterparts in a baseline group, the proposed method satisfies various fairness criteria—from demographic parity to calibration—while maintaining high predictive accuracy.
Introduction
Machine learning models are increasingly used in sensitive domains like credit scoring and recidivism prediction. However, these models often inherit biases from their training data. While many fairness definitions exist, such as demographic parity and equality of odds, they are often mathematically incompatible. This research addresses the challenge of fair data adaptation: transforming a dataset such that any classifier trained on it will be fair. The authors specifically navigate the tension between "blind" fairness (treating everyone the same) and "resolved" fairness (accounting for legitimate differences, such as department choice in university admissions).
Methodology
The core of the approach is a data transformation procedure based on Causal Structural Equation Models (SEMs) and a novel Quantile Preservation Assumption (QPA).
- Quantile Preservation: The method assumes that an individual's relative standing (their quantile) within their group would remain the same in a counterfactual world. For example, a woman in the 80th percentile of income among women is mapped to the income value of the 80th percentile among men.
- Resolving Variables: Users can designate certain variables as "resolving"—those whose relationship with the protected attribute is deemed non-discriminatory. This allows the method to shift between strict demographic parity (no resolving variables) and calibration (all variables resolving).
- Implementation: The practical implementation, available in the
fairadaptR package, utilizes Quantile Regression Forests to estimate conditional distributions. For categorical variables, Optimal Transport is used to find the fairest mapping between groups.
Experimental Evaluation
The authors evaluated their approach on synthetic datasets and real-world benchmarks:
- UCI Adult Dataset: Predicting whether income exceeds $50k/year, with gender as the protected attribute.
- COMPAS Dataset: Predicting criminal recidivism, with race as the protected attribute.
On these datasets, the fairadapt method achieved an accuracy-fairness trade-off competitive with or superior to state-of-the-art baselines like reweighing or fair reductions. Synthetic tests confirmed that increasing the set of resolving variables moves the predictor from satisfying demographic parity toward satisfying calibration.
Discussion and Robustness
A key insight of this work is the robustness of the method to model misspecification. Even if the underlying causal model is slightly incorrect, the method still guarantees "population fairness" (e.g., demographic parity) as long as the protected attribute is a root node in the causal graph.
Furthermore, by using resolving variables, the authors demonstrate that common observational fairness metrics are points on a spectrum defined by which causal paths are chosen to be "fixed." The method also offers counterfactual interpretability, allowing one to see what an individual's features would look like if they belonged to the baseline group.
Conclusion and Future Work
While the method shows promise, it requires a pre-defined causal graph. Although robust to some misspecification, an entirely incorrect graph could lead to unintended consequences. Additionally, the choice of baseline group can influence results. Future work should address the long-term temporal implications of these fairness criteria on the well-being of different groups, moving beyond static fairness assessments.
Summary updated