TL;DR
This paper introduces a novel causal framework to systematically evaluate the robustness of common machine learning fairness practices. By generating observationally equivalent but causally distinct "neighboring" datasets, the authors demonstrate that standard fairness guidelines—such as dropping sensitive attributes or tuning hyperparameters—are highly fragile and frequently fail when underlying data relationships shift.
What Problem Does This Paper Address?
As machine learning (ML) models are increasingly deployed in high-stakes socioeconomic domains (e.g., criminal justice, lending, and grading), ensuring algorithmic fairness has become paramount. The software engineering and ML communities have established several "best practices" across the development lifecycle, including data pre-processing (feature selection), in-processing (hyperparameter tuning), and post-processing (bias mitigation).
However, these guidelines are typically treated as static rules of thumb. The authors identify a critical gap: how robust are these fairness practices to subtle data variations, faulty labels, or distribution shifts? If a fairness intervention works on a specific training set, there is currently no guarantee it will remain effective if the real-world data possesses a slightly different underlying causal structure.
Methods
The authors propose a search-based testing framework grounded in causality theory to stress-test these fairness practices.
The workflow consists of three main phases:
- Partial Causal Graph Discovery: Standard causal discovery algorithms (PC, GES, SIMY) are run on a dataset to generate a Completed Partially Directed Acyclic Graph (CPDAG). These graphs often contain unresolved, bi-directional edges representing causal ambiguity.
- Structural Causal Model (SCM) Inference: The framework resolves these ambiguous edges to construct an equivalence class of Directed Acyclic Graphs (DAGs). It uses Bayesian inference (via the STAN probabilistic programming language) to learn edge weights and generate realistic "neighboring" datasets.
- Robustness Validation Search: The framework systematically searches through these equivalent causal graphs, trains ML models on the generated neighbor datasets, and evaluates whether a given fairness property (expressed in first-order logic) still holds true. Fairness is primarily measured using Equal Opportunity Difference (EOD).
Datasets
The framework was evaluated using six widely recognized benchmarks from the ML fairness literature:
- Adult Census: Predicting whether an individual's income exceeds $50k/year (Sensitive attribute: Sex).
- COMPAS: Recidivism risk scoring (Sensitive attribute: Race).
- Bank Marketing: Predicting term deposit subscriptions (Sensitive attribute: Age).
- Law School: Predicting law school success/bar passage (Sensitive attribute: Sex).
- Student Performance: Predicting student academic performance (Sensitive attribute: Sex).
- Heart Disease: Predicting the presence of heart disease (Sensitive attribute: Sex).
Key Insights and Ideas
- Causal Ambiguity Flips Fairness Outcomes: Observationally identical data can support multiple valid causal interpretations. For example, in the Adult dataset, a bi-directional edge between
genderandoccupationcan mean gender influences career choice, or occupation shapes societal perceptions of gender.
- The Illusion of Robustness: When evaluated purely on static training data, fairness practices appear stable. However, when tested against causally distinct neighbor datasets, their performance diverges wildly. A practice that mitigates bias under one causal graph can actively exacerbate it under an equivalent one.
- Feature Selection is Unreliable: Standard techniques like
SelectKBestorSelectPercentiledo not yield consistent fairness improvements and can degrade performance depending on which causal path is active.
Key Results
- Causal Algorithm Performance: The Greedy Equivalence Search (GES) algorithm consistently outperformed PC and SIMY in generating high-quality, realistic adversarial neighbor datasets.
- Fragility of Dropping Sensitive Attributes: For the Adult dataset, dropping the
genderattribute decreased EOD bias by 0.13 in one causal graph configuration (Figure 3/4 in paper text), but increased EOD by 0.09 in an observationally equivalent neighbor graph (Figure 4/6 in paper text). - Feature Selection Robustness: Among pre-processing methods,
SelectFpr(selecting features based on false positive rates) demonstrated the highest robustness across both in-distribution and out-of-distribution scenarios. - Post-Processing Mitigation Mismatch: The robustness of post-processing tools like
Threshold OptimizerandCalibrated Equalized Oddsproved to be mutually exclusive; one might remain robust for a specific dataset where the other completely fails.
Limitations and Future Work
The authors note a few key limitations:
- Linear Assumptions: The framework relies on linear models for causal inference, which may oversimplify highly complex, non-linear real-world relationships.
- Unobserved Confounders: The current causal models assume there are no hidden, unobserved variables influencing the system.
- Fairness Metric Focus: The evaluation focused primarily on group fairness (EOD), potentially overlooking nuances captured by individual or counterfactual fairness definitions.
Future Work: The authors plan to leverage causal theory to explain why specific practices fail under certain structures and extend the framework to support a broader array of fairness metrics (e.g., AOD, SPD).
Summary updated