Causality-Aided Trade-Off Analysis for Machine Learning Fairness

Zhenlan Ji, Pingchuan Ma, Shuai Wang, Yanhui Li

Abstract

As machine learning models are increasingly deployed in high-stakes domains, the tension between fairness, accuracy, and robustness has become a significant barrier to responsible AI development. Traditional methods for evaluating these trade-offs rely on correlation, which often fails to capture the complex, confounded relationships within ML pipelines. This paper presents a novel causal analysis framework that treats fairness interventions as variables within a learned causal graph. By leveraging Differentiable Bayesian Structure Learning (DiBS) and Double Machine Learning (DML), the framework identifies the root causes of performance degradation and provides actionable insights for optimizing model behavior.

1. Introduction

The deployment of machine learning (ML) in safety-critical sectors—such as criminal justice, credit scoring, and healthcare—has necessitated a rigorous focus on algorithmic fairness. While a plethora of pre-, in-, and post-processing methods have been developed to mitigate bias, these interventions often act as "black boxes." Developers frequently encounter a "trade-off problem," where improvements in fairness metrics lead to unpredictable declines in predictive accuracy or model robustness.

Current approaches to managing these trade-offs are largely heuristic. Simple correlational analysis is often misleading because metrics are frequently confounded; for instance, a fairness intervention might simultaneously alter training distributions and test-set outcomes, making it difficult to isolate the true driver of performance loss. This research proposes a shift from correlation to causality, providing a principled way to disentangle the interactions between fairness, performance, and robustness.

2. The Causal Analysis Framework

The authors introduce a two-phase pipeline designed to map and quantify the causal relationships within an ML workflow.

2.1 Phase 1: Causal Discovery

The first step involves constructing a Graph Model to represent the ML pipeline. The authors treat fairness-improving methods as interventional nodes. To accommodate the variety of existing methods, parameters are normalized into ratios (0 to 1), and non-parameterized methods are handled via probabilistic sampling.

To learn the structure of this graph, the framework utilizes Differentiable Bayesian Structure Learning (DiBS). DiBS is a state-of-the-art, score-based method capable of handling high-dimensional spaces. In this study, the model incorporates 46 distinct nodes, representing a significant leap in complexity over traditional causal discovery applications in ML.

2.2 Phase 2: Causal Inference

Once the causal graph is established, the framework quantifies the effects of specific interventions using Double Machine Learning (DML). This allows for the calculation of the Average Treatment Effect (ATE), effectively "controlling for" confounders to isolate the impact of one metric on another.

Furthermore, the framework enables counterfactual queries. Developers can ask "what if" questions, such as: "If we intervene to improve group fairness by a specific margin, what is the isolated, causal impact on test accuracy?" This capability transforms fairness optimization from a trial-and-error process into a targeted engineering task.

3. Experimental Setup

The framework was evaluated using three benchmark datasets in fairness research:

  • Adult Income: Predicting income levels (Sensitive attributes: Sex, Race).
  • COMPAS: Predicting recidivism risk (Sensitive attributes: Sex, Race).
  • German Credit: Evaluating credit risk (Sensitive attributes: Sex, Age).

The study tested 12 fairness-improving methods across the entire ML lifecycle, including pre-processing (e.g., Reweighing, FairSmote), in-processing (e.g., Adversarial Debiasing), and post-processing (e.g., Reject Option Classification).

4. Key Insights

The causal analysis yielded several critical findings that challenge conventional wisdom in ML fairness:

  • Disentangling Confounders: The learned graphs showed that "Test Accuracy" and "Statistical Parity Difference" (SPD) often share common ancestors in the data. Without a causal lens, developers might incorrectly assume accuracy directly causes unfairness, when both are actually driven by underlying dataset properties.
  • Centrality of Specific Metrics: The study identified Average Odds Difference (AOD) and the Theil Index (TI) as the most frequent "causal" drivers of trade-offs. These metrics are the most reliable indicators of how a fairness intervention will ripple through the rest of the system.
  • The Robustness Trade-off: A significant finding was the inherent tension between fairness and robustness. Fairness interventions often alter the model's learning trajectory in ways that increase sensitivity to noise or membership inference attacks, making robustness a "hidden victim" of fairness optimization.
  • Contextual Variability: Causal structures are not static. A method that successfully balances "Sex" fairness on the Adult dataset may produce entirely different causal trade-offs when applied to "Race" on the COMPAS dataset.

5. Results and Performance

The framework's utility was validated through both expert review and downstream application:

  • Graph Accuracy: Causal graphs were reviewed by Ph.D. experts in ML fairness, who reported an error rate of less than 10% across most scenarios, confirming the reliability of the DiBS algorithm.
  • Optimized Method Selection: The framework was used to select optimal combinations of fairness methods. This approach outperformed the state-of-the-art Adaptive Fairness Improvement (AFI) by identifying synergistic combinations (e.g., Disparate Impact Remover paired with Predictive Rate) rather than relying on single-method interventions.
  • Quantifiable Impact: On the Adult dataset, the framework successfully identified group fairness metrics as the primary drivers of performance trade-offs in 158 distinct experimental instances.

6. Limitations and Future Directions

While the framework provides a powerful new toolset, some limitations remain. The current study focused on Feed-Forward Neural Networks (FFNNs); different architectures like CNNs or Transformers may exhibit unique causal behaviors. Additionally, while inference is fast (<20 seconds), the initial causal discovery phase for 46+ nodes is computationally intensive, requiring approximately 30 minutes per graph.

Future research will focus on extending the framework to more complex, multi-stage pipelines and integrating multiple causal discovery algorithms to further enhance graph reliability.

Summary updated

BibTeX
@inproceedings{ji2023causality,
  author = {Zhenlan Ji and Pingchuan Ma and Shuai Wang and Yanhui Li},
  title = {{Causality-Aided Trade-Off Analysis for Machine Learning Fairness}},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00105},
}
Figure