Manuscript Offprint

arXiv:2608.30956

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

Mattia Cerrato, Otto Sahlgren, Xenia Heilmann

Abstract

Counterfactual explanations (CEs) are widely used in explainable artificial intelligence (AI) to show how a model's outputs would change if the input features were manipulated. This technique is used for a range of tasks such as debugging models, explaining predictions, justifying decisions, and providing algorithmic recourse. In this paper, we explore the normative legitimacy of employing counterfactuals in real-life model deployment settings. We discuss the different stakes involved in these different purposes for which CEs are commonly employed, and find stricter requirements for justification and recourse. In particular, we find that naive application of CEs for justification and recourse can lead to ignoring contestable choices made throughout the machine learning (ML) pipeline, thus obfuscating that decisions and counterfactuals for those decisions are also artifacts of an organization's materialized design and governance choices. We demonstrate this with four empirical experiments involving interventions at stages of the ML pipeline "upstream" of the explanation itself, and show that these affect the generated counterfactuals. We find that an organization's choices on measurement models for feature and labels, business requirements, model validation, and the metric of model success have as much or more impact on the generated counterfactuals as the specifics of the generating method. Our findings underline the need to account for such choices upon providing justification and recourse, providing a stark reminder of the relational nature of these tasks. As putative justifications or recourse recommendations, CEs do not provide adequate answers to some important "why"-questions because they preclude consideration of whether the decision-maker ought to have acted differently.

Introduction

The growing adoption of machine learning (ML) systems in high-stakes decision-making contexts has spurred research on the interrelated notions of transparency, explainability, and interpretability. Transparency, generally defined as "the availability of information about an actor that allows other actors to monitor the workings or performance of the first actor" (Meijer 2013, p.430), lacks a unique and well-defined equivalent in the context of ML systems. Instead, multiple notions of "algorithmic transparency" can be defined in relation to different objects and subcomponents as subject to

transparency, where the transparency thereof can take different forms and gradations (Diakopoulos 2025, p.199). For example, "algorithmic transparency" can refer to the code, datasets, algorithms or their purposes and use-cases being disclosed in an understandable form to some audience.

One of the most celebrated techniques to this end is the generation of counterfactual explanations (CEs) (Wachter, Mittelstadt, and Russell 2018; Kusner et al. 2017), which have been referred to as "de-facto standard in explainable artificial intelligence" (Sokol and Flach 2019). The basic concept of CEs is to provide explanation to the "why" question: why does the model return this decision in this situation? CEs propose modifications to the input data that would incur a different decision by the model (Verma et al. 2024). Thus, CEs relate to singular decisions rather than global approximation of a complex model, and may provide an explanation by contrast rather than by local approximation as done by other techniques such as local explanations (Ribeiro, Singh, and Guestrin 2016). CE is both attractive and flexible, seeing usage beyond the abstract opening of the "black box", such as in model debugging (Abid, Yuksekgonul, and Zou 2022), and the provision of justification and recourse for algorithmic decisions (Karimi, Schölkopf, and Valera 2021; Wachter, Mittelstadt, and Russell 2018).

Our contribution is motivated by critical research on CE and its limits in the aforementioned tasks. Though we acknowledge the potential of CEs, we are interested in gauging the extent to which they can reliably support justification, contestation, and reversal of decisions across real-world decision-making settings. Specifically, we believe that assessing CEs' sensitivity to expectable circumstantial variation is crucial for determining whether CE can robustly realize values central to practices of public justification and recourse mechanisms, such as agency, trust, and accountability. For example, adequate recourse mechanisms will enable contestation, appeal, and reversal across a range of circumstances rather than only under narrowly specified conditions (Venkatasubramanian and Alfano 2020). It is therefore crucial to assess whether CEs can deliver stable and meaningful recourse under variation characteristic to real-world decision-making settings.

Our paper provides both empirical and theoretical contributions. While prior research has explored the robustness of CEs under minor changes in the data, model, and gen-

∗^{*}These authors contributed equally.

eration method (Virgolin and Fracaros 2022; Slack et al. 2021; Brughmans, Leyman, and Martens 2024), we measure the sensitivity of CEs under systematic “upstream interventions” affecting the pipeline that starts from data collection, goes through model selection and fitting, and finally ends in the generation of CEs. Specifically, we start from explicitly modeling certain choices usually made on the “business side” of the ML pipeline as interventions on a structural causal model (SCM) representing the pipeline itself, such as the observation model of features, the labeling mechanism and the metric employed to operationalize the fitness of a model. For simplicity, we refer to these choices collectively as upstream choices which produce different specifications of the SCM and, by extension, models.

We find that upstream interventions can dramatically affect the CEs generated downstream, producing differences comparable in magnitude to those observed when the explanation method itself is changed (Brughmans, Leyman, and Martens 2024). Drawing on these findings, we substantiate the theoretical claim that several assumptions need to hold—in both an empirical and normative sense—for CEs to represent adequate “whys” in many real-life cases. Upstream interventions represent meaningful, non-neutral, and potentially contestable choices made by model providers or decision-makers. However, they remain unaccounted for when CEs are presented as evidence to justify models or particular outputs or as recommendations for decision reversal. We argue that taking the “whys” seriously requires, besides mere explainability, broader transparency about upstream assumptions and choices, accordingly, and recognizing model providers and deployers as parties whose choices and policies require justification and potential revision.

References (54)

  • Meaningfully debugging model mistakes using conceptual counterfactual explanations
  • The Hidden Assumptions Behind Counterfactual Explanations and Principal Reasons
  • Evaluation of Instance-Based Explanations: An In-Depth Analysis of Counterfactual Evaluation Metrics, Challenges, and the CEval Toolkit
  • Explanation and Justification in Machine Learning: A Survey
  • Less Discriminatory Algorithms
  • S.; and Neill, D. B. 2025
  • Statistical modeling: The two cultures (with comments and a rejoinder by the author)
  • NICE: An Algorithm for Nearest Instance Counterfactual Explanations
  • Disagreement amongst counterfactual explanations: how transparency can be misleading
  • The Case for Correctability in Fair Machine Learning
  • Time Can Invalidate Algorithmic Recourse (opens arXiv in a new tab)
  • Prospective Algorithmic Accountability and the Role of the News Media
  • On the Adversarial Robustness of Causal Algorithmic Recourse
  • Towards A Rigorous Science of Interpretable Machine Learning
  • Don't Explain Noise: Robust Counterfactuals for Randomized Ensembles
  • Datasheets for datasets
  • PreCoF: Counterfactual Explanations for Fairness
  • A survey of methods for explaining black box models
  • Robust Counterfactual Explanations in Machine Learning: A Survey
  • REVISE: Towards Realistic Individual Recourse and Actionable Explanations in Black-Box Decision Making Systems (opens arXiv in a new tab)
  • Algorithmic recourse: from counterfactual explanations to interventions
  • The Use and Misuse of Counterfactuals in Ethical Machine Learning
  • J.; Loftus, J.; Russell, C.; and Silva, R. 2017
  • What Constitutes a Less Discriminatory Algorithm? In Proceedings of the 2025 Symposium on Computer Science and Law, 136–151
  • Achieving diversity in counterfactual explanations: a review and discussion
  • P.-W.; Qiu, J.; Wang, Z.; Yu, H.; Chen, Y.; Zhang, G.; and Lo, B. 2025 (opens arXiv in a new tab)
  • M.; and Lee, S.-I
  • Understanding the Complex Dynamics of Transparency
  • Explanation in Artificial Intelligence: Insights from the Social Sciences
  • K.; Sharma, A.; and Tan, C. 2020
  • The Robust Demands of the Good: Ethics with Attachment, Virtue, and Respect
  • K.; Markey, K.; D'Arinzo, L.; Schellmann, H.; Sloane, M.; Squires, P.; Arif Khan, F.; and Stoyanovich, J. 2022
  • Why should I trust you?
  • Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead
  • K.; Akhtar, M. A. K.; and Kumar, A. 2020
  • Counterfactual Explanations Can Be Manipulated
  • Desiderata for Interpretability: Explaining Decision Tree Predictions with Counterfactuals
  • Towards Robust and Reliable Algorithmic Recourse
  • Actionable Recourse in Linear Classification
  • The Philosophical Basis of Algorithmic Recourse
  • Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Review
  • On the Robustness of Sparse Counterfactual Explanations to Adverse Perturbations
  • Counterfactual Explanations Without Opening the Black Box: Automated Decisions and the GDPR. Harvard Journal of Law & Technology, 31(2): 841–887 (opens arXiv in a new tab)
  • Advancing Graph Counterfactual Fairness through Fair Representation Learning
  • LLMs for generating and evaluating counterfactuals: A comprehensive study
  • Fairness in ranking, part i: Score-based ranking
  • The “Default” column shows the non-interventional choice, that is, the SCM setting $\xi_{0}$
  • The set distance is built in two layers: a per-CE cost $c(x, x')$ on the feature space, and a symmetric aggregator over sets of CEs
  • replacing each mean by a max recovers Hausdorff
  • For each intervention pair $(\xi,\xi^{\prime})$, method, and seed, we compute $d(\hat{X}_{\xi}(x),\hat{X}_{\xi^{\prime}}(x))$ at every query $x$ with $\hat{y}=0$ and take the mean over queries
  • We use the symmetric Jaccard agreement:
  • agreeing on feature j
  • agree-on-feature-but-not-value
  • We note that reducing each set to a single representative CE (e.g