TL;DR
Counterfactual explanations (CEs) are the gold standard for showing users how to change a machine learning model's prediction (e.g., "increase your income by \$10k to get approved for a loan"). This paper reveals that CEs are highly sensitive to "upstream" pipeline choices—like feature definitions, label thresholds, and optimization metrics—often changing the final explanation more than the choice of the explanation algorithm itself. As a result, CEs cannot serve as objective justifications or robust tools for recourse without radical transparency regarding these subjective design choices.
What Problem Does This Paper Address?
When an AI system rejects a job applicant or denies a loan, the user naturally asks: Why? In explainable AI (XAI), Counterfactual Explanations (CEs) answer this by providing the minimal changes needed to flip the outcome. This is widely championed as a tool for algorithmic recourse—giving individuals an actionable path to reverse an unfavorable decision.
However, CEs operate under a dangerous "fixed model assumption." They treat the trained model as an objective, unshakeable ground truth. In reality, an ML model is the product of dozens of highly subjective engineering and business decisions. If an organization changes how it defines a feature upstream, or optimizes for a different success metric, the resulting counterfactual advice given to the end-user might completely shift. The authors tackle this gap by quantifying exactly how sensitive CEs are to these hidden, upstream pipeline interventions.
Methods
The authors formalize the entire machine learning pipeline as a Structural Causal Model (SCM) to trace how changes at the beginning of the pipeline propagate down to the final explanation.
They test the impact of four distinct upstream interventions:
- Label Definition: Shifting a business constraint (a salary cap threshold) that determines who gets a positive label.
- Feature Measurement: Changing how a categorical concept (like "private sector worker") is operationalized from raw data.
- Success Metric: Changing the metric optimized during cross-validation (e.g., Accuracy vs. F1-score vs. ROC-AUC).
- Validation Strategy: Altering the evaluation split method (Holdout vs. 5-fold vs. 10-fold cross-validation).
They compare these against a downstream baseline: tuning the internal confidence threshold ($\tau$) of the counterfactual generation algorithm itself. To ensure their findings aren't warped by algorithmic randomness, they evaluate two stable, retrieval-based CE methods: DiCE-kdtree and NICE.
Datasets
The experiments use population data from the American Community Survey (ACS), accessed via the folktables library. The authors simulate a hypothetical resume screening task where demographic, occupational, and educational features are used to predict a candidate's "fitness score," which they proxy using actual market earnings.
Key Insights and Ideas
- The Illusion of Neutrality: CEs answer why the model made this decision, but they completely obscure why the model was built this way. They frame the burden of change entirely around the individual, rather than questioning the institutional choices behind the model.
- Upstream Dominance: Subjective choices made by data scientists and business stakeholders long before an explanation is generated have a massive downstream impact. Choosing to optimize for F1-score instead of Accuracy can alter the counterfactual advice more drastically than changing the explanation method's internal parameters.
- Relational Recourse: Algorithmic recourse shouldn't just be a unilateral set of instructions forcing a user to adapt to a system. True recourse must be relational, allowing users to inspect, contest, and potentially force a revision of the upstream design choices themselves.
Key Results
The authors measured "Explanation Sensitivity" (how much the recommended counterfactuals moved in the feature space) and "Consistency" (whether the same features were recommended for change).
- Business & Feature Choices: Altering the salary cap or changing the definition of a "private sector worker" pushed the explanation sensitivity far outside the baseline threshold ($\tau$) band.
- Metrics Matter Most: Changing the cross-validation success metric was the most volatile intervention. Optimizing for
recallorF1-scoreinstead ofaccuracycompletely scrambled the generated counterfactuals.
- Disagreement Across Pipelines: As shown in Figure 3, upstream interventions significantly lowered Value Agreement (down to 0.18–0.26 for DiCE). This means that under different, equally defensible pipeline configurations, the algorithm tells the exact same user to change entirely different categorical features to get the same result.
Limitations and Future Work
The study deliberately limits its scope to retrieval-based CE methods (which select real instances from the training set) because optimization-based methods suffer from high seed-to-seed variance that would swamp the measurements.
Future work is needed to evaluate whether these upstream sensitivities hold true for optimization-based CEs and other local explanation frameworks (like SHAP or LIME). Additionally, the authors emphasize the need to develop broader frameworks for "algorithmic transparency" that include data-sharing structures and documentation trails (like Datasheets for Datasets) so that upstream choices can be audited publicly.
Summary updated