Abstract: Causal approaches to fairness have seen substantial recent interest, both from the machine learning community and from wider parties interested in ethical prediction algorithms. In no small part, this is due to their promise of providing a rigorous framework for reasoning about the effects of interventions and counterfactuals. However, these methods typically rely on the strong and often untestable assumption of "no unmeasured confounding." This paper introduces the first sensitivity analysis tools to "stress test" these models, allowing researchers to quantify exactly how much hidden bias it would take to break a model’s fairness guarantees.
The Challenge of Unmeasured Confounding
In the quest for algorithmic fairness, researchers have moved beyond simple statistical parity toward counterfactual fairness. This approach asks: "Would the algorithm have made the same decision if this individual belonged to a different protected group, but was otherwise identical?"
To answer this, a causal model is required—a map of how variables like education, zip code, and race influence each other. However, these models usually assume "no unmeasured confounding," meaning there are no hidden variables affecting both the features and the outcome. In the real world, this assumption is almost always a gamble. If a hidden factor (like "socioeconomic background") influences both a candidate's test scores and their eventual job performance, a model that looks "fair" on paper might actually be smuggling in discrimination through the back door.
Methodology
The authors propose a framework to evaluate the Counterfactual Unfairness (CFU) of a predictor under varying levels of hidden confounding. They focus on Additive Noise Models (ANMs), where each variable is a function of its parents plus some random "noise." They introduce two primary tools:
- Grid-Based Tool (Bivariate): For simple scenarios with two main variables, they provide a fast, closed-form procedure to calculate the maximum possible unfairness given a specific "confounding budget" (the maximum allowed correlation between hidden noise terms).
- Optimization-Based Tool (Multivariate): For complex systems with many variables, they frame the search for the "worst-case" unfairness as a differentiable optimization problem using tools like PyTorch.
Experimental Results
The researchers evaluated their tools on two real-world datasets: US Law School data (predicting GPA) and the NHS Staff Survey (predicting health outcomes).
Key findings include:
- The "Breaking Point" Analysis: Researchers can now identify the level of hidden confounding at which a model becomes unacceptably biased. Domain experts can then judge if that level of confounding is plausible.
- Robustness of Causal Models: Counterfactually fair predictors are generally much more robust than "blind" predictors (models that simply ignore the protected attribute). Even under high levels of hidden confounding, the causal models remained significantly fairer than standard machine learning baselines.
- Non-Symmetric Sensitivity: The impact of confounding isn't always linear. In the Law School data, the direction of hidden bias mattered as much as its strength, with negative correlations resulting in lower unfairness than positive ones.
Limitations and Future Work
The current work is primarily optimized for Additive Noise Models with Gaussian noise. While the framework can be extended to non-linear functions, doing so increases computational complexity. Future work could explore sensitivity to entirely incorrect graph structures or "path-specific" effects, and aim to scale these tools to the larger, messier graphs typical of industrial data science.
Summary updated