From What Ifs to Insights: Counterfactuals in Causal Inference vs. Explainable AI

Galit Shmueli, David Martens, Jaewon Yoo, Travis Greene
5/19/2025
stat.MLcs.AIcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Counterfactuals play a pivotal role in the two distinct data science fields of causal inference (CI) and explainable artificial intelligence (XAI). While the core idea behind counterfactuals remains the same in both fields--the examination of what would have happened under different circumstances--there are key differences in how they are used and interpreted. We introduce a formal definition that encompasses the multi-faceted concept of the counterfactual in CI and XAI. We then discuss how counterfactuals are used, evaluated, generated, and operationalized in CI vs. XAI, highlighting conceptual and practical differences. By comparing and contrasting the two, we hope to identify opportunities for cross-fertilization across CI and XAI.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{shmueli2025from,
  title  = {From What Ifs to Insights: Counterfactuals in Causal Inference vs. Explainable AI},
  author = {Galit Shmueli and David Martens and Jaewon Yoo and Travis Greene},
  year   = {2025},
  eprint = {2505.13324},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.13324v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.13324.svg)](https://codeofpaper.com/paper/2505.13324)

Discussion