Taking the Whys Seriously: Limitations of Counterfactual Explanations in Justification and Recourse

Mattia Cerrato, Otto Sahlgren, Xenia HeilmannarXiv 2026

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.

Figure 1: The structural causal model representing the data generating process. We assume that the world W is not observable, but that features X and labels Y may be obtained via measurement models. The trained model F similarly depends on certain design choices and produces labels ˆY . The counterfactual examples ˆX will ultimately depend on the interventions made by the developers regarding the SCM pictured here. We report structural equations and other variables in Equation 2.

They test the impact of four distinct upstream interventions:

  1. Label Definition: Shifting a business constraint (a salary cap threshold) that determines who gets a positive label.
  2. Feature Measurement: Changing how a categorical concept (like "private sector worker") is operationalized from raw data.
  3. Success Metric: Changing the metric optimized during cross-validation (e.g., Accuracy vs. F1-score vs. ROC-AUC).
  4. 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 recall or F1-score instead of accuracy completely scrambled the generated counterfactuals.
Sensitivity of CEs when changing the cross-validation success metric compared to the baseline downstream threshold band.
  • 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.
Figure 3: Within-method agreement under upstream inter- ventions (top two rows of each panel) vs. the downstream τ baseline (bottom two rows). DiCE-kdtree in blue, NICE in orange. Markers are means with 95% Student-t CIs over per-query scores; metrics are Jaccard (◦), Sign Agreement on continuous features (△), Value Agreement on categori- cal features (□). Higher values indicate more agreement; an upstream marker to the left of its τ counterpart means the upstream intervention produced more disagreement than τ does.

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

BibTeX
@misc{cerrato2026taking,
  author = {Mattia Cerrato and Otto Sahlgren and Xenia Heilmann},
  title = {{Taking the Whys Seriously: Limitations of Counterfactual Explanations in Justification and Recourse}},
  year = {2026},
  eprint = {2608.30956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.30956},
}
Figure