Abstract
Trustworthy machine learning is often treated as a collection of independent "pillars"—such as fairness, explainability, and robustness—but in real-world applications, these functions must operate in concert. This paper introduces an extensible "composer tool" to chain these interventions into unified pipelines. Our findings reveal that stacking multiple trust-focused algorithms can lead to over-correction, degraded explanation quality, and unpredictable performance trade-offs.
Introduction
As machine learning (ML) systems are deployed in high-stakes domains like healthcare and criminal justice, developers are increasingly tasked with ensuring models are "trustworthy." This typically involves satisfying multiple requirements: models should be fair, decisions should be explainable, and systems should be robust against adversarial attacks.
Historically, research in these areas has occurred in silos. A developer might apply a fairness "pre-processor" to their data and a "post-processor" to their model's output without understanding how these functions interact. Does stacking fairness interventions make a model "twice as fair," or do they cancel each other out? Does fixing bias break the "faithfulness" of explanations? This research addresses this gap by empirically studying the composition of trust functions.
Methodology
The researchers developed a modular Composer Tool (configured via YAML) that allows users to string together different trust-related functions across the ML lifecycle. The study evaluated 9 different pipeline combinations across 6 model classes (including XGBoost and Random Forest) to observe how these chains affected standard performance metrics alongside fairness metrics (e.g., Disparate Impact) and explainability metrics (e.g., Faithfulness).
The interventions are categorized into four primary stages:
- Pre-processing: Modifying training data (e.g., Reweighing or Learning Fair Representations).
- In-processing: Modifying the training algorithm (e.g., Grid Search Reduction).
- Post-processing: Adjusting final predictions (e.g., Reject Option Classification).
- Explainability: Generating post-hoc insights (e.g., LIME).
Datasets
The study utilized 7 diverse, real-world datasets frequently used in fairness research: Adult Income, Bank Marketing, COMPAS Recidivism, German Credit, HMDA (over 1 million records), Mexico Poverty, and Zindi.
Key Insights
The empirical study revealed several critical phenomena regarding the composition of trust functions:
- The Over-Correction Trap: If a model is already relatively fair after one intervention, adding a second often leads to over-correction. The model may flip from being biased against a minority group to being biased against the majority group, rather than achieving a perfect balance.
- Fairness vs. Explanation Quality: There is a hidden cost to fairness. As more fairness interventions are added to a pipeline, the "faithfulness" of local explanations—how accurately an explanation describes the model's actual logic—tends to deteriorate.
- Dataset Dependency: There is no "silver bullet" pipeline. A sequence of interventions that works perfectly for the COMPAS dataset might fail or provide diminishing returns on the Adult Income dataset.
- Incompatibility of Methods: Some post-processing methods (like Calibrated Equalized Odds) have strict requirements for model calibration. When composed with certain in-processing steps, these requirements are often violated, causing the post-processor to fail entirely.
Results and Discussion
In many cases, a single pre-processing step (like Reweighing) provided the bulk of the fairness improvement. Adding in-processing or post-processing on top often yielded marginal gains at a high cost to accuracy. For example, on the Adult dataset, achieving a "fair" Disparate Impact ratio (>0.8) required multiple interventions but resulted in a significant drop in ROC AUC and accuracy compared to the baseline.
Visualizing these shifts using LIME, the authors showed that fairness interventions physically shift feature importance. A "fair" model might be forced to ignore or invert the weight of a protected attribute (like race) to counter-balance inherent biases in the rest of the data.
Conclusion and Future Work
This study provides a foundational look at the interaction between fairness and explainability. Future work will expand the scope to include adversarial robustness, privacy transformations, and uncertainty quantification. The authors intend to open-source the composer tool as part of the AI Fairness 360 (AIF360) and AI Explainability 360 (AIX360) ecosystems, while also investigating automated optimization for function composition.
Summary updated