Natural Counterfactuals With Necessary Backtracking

Guang-Yuan Hao, Jiji Zhang, Biwei Huang, Hao Wang, Kun Zhang
2/2/2024
cs.AIcs.CVcs.LG

Official code: GuangyuanHao/natural_counterfactuals (4 stars, last commit 2024-11-08).

Abstract

Counterfactual reasoning is pivotal in human cognition and especially important for providing explanations and making decisions. While Judea Pearl's influential approach is theoretically elegant, its generation of a counterfactual scenario often requires too much deviation from the observed scenarios to be feasible, as we show using simple examples. To mitigate this difficulty, we propose a framework of \emph{natural counterfactuals} and a method for generating counterfactuals that are more feasible with respect to the actual data distribution. Our methodology incorporates a certain amount of backtracking when needed, allowing changes in causally preceding variables to minimize deviations from realistic scenarios. Specifically, we introduce a novel optimization framework that permits but also controls the extent of backtracking with a naturalness criterion. Empirical experiments demonstrate the effectiveness of our method. The code is available at https://github.com/GuangyuanHao/natural_counterfactuals.

View on arXivView PDF

Code Implementations(1)

40Shell, PythonOct 23, 20241 years ago

Similar Papers

Cite this paper

@article{hao2024natural,
  title  = {Natural Counterfactuals With Necessary Backtracking},
  author = {Guang-Yuan Hao and Jiji Zhang and Biwei Huang and Hao Wang and Kun Zhang},
  year   = {2024},
  eprint = {2402.01607},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2402.01607},
  url    = {http://arxiv.org/abs/2402.01607v3},
  journal = {NEURIPS 2024 2024}
}

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/2402.01607.svg)](https://codeofpaper.com/paper/2402.01607)

Discussion