On the Complexity of Counterfactual Reasoning
Not on the map. Why?
Abstract (arXiv)
We study the computational complexity of counterfactual reasoning in relation to the complexity of associational and interventional reasoning on structural causal models (SCMs). We show that counterfactual reasoning is no harder than associational or interventional reasoning on fully specified SCMs in the context of two computational frameworks. The first framework is based on the notion of treewidth and includes the classical variable elimination and jointree algorithms. The second framework is based on the more recent and refined notion of causal treewidth which is directed towards models with functional dependencies such as SCMs. Our results are constructive and based on bounding the (causal) treewidth of twin networks -- used in standard counterfactual reasoning that contemplates two worlds, real and imaginary -- to the (causal) treewidth of the underlying SCM structure. In particular, we show that the latter (causal) treewidth is no more than twice the former plus one. Hence, if associational or interventional reasoning is tractable on a fully specified SCM then counterfactual reasoning is tractable too. We extend our results to general counterfactual reasoning that requires contemplating more than two worlds and discuss applications of our results to counterfactual reasoning with a partially specified SCM that is coupled with data. We finally present empirical results that measure the gap between the complexities of counterfactual reasoning and associational/interventional reasoning on random SCMs.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 18 of its 80 references that are in the map. First posted on arXiv 24 Nov 2022.
Builds on
18 of 80 references.
References · 18
- 2013A Differential Approach to Inference in Bayesian Networkscited by 93
- 2013Probabilities of Causation: Bounds and Identificationcited by 89
- 2013Counterfactual Probabilities: Computational Methods, Bounds and Applicationscited by 67
- 2021Partial Counterfactual Identification from Observational and Experimental Datacited by 64
- 2021An Automated Approach to Causal Inference in Discrete Settingscited by 39
- 2021Nested Counterfactual Identification from Arbitrary Surrogate Experimentscited by 38
- 2021Causes of Effects: Learning individual responses from population datacited by 36
- 2015Margins of discrete Bayesian networkscited by 26
- 2020Structural Causal Models Are (Solvable by) Credal Networkscited by 22
- 2013Bucket Elimination: A Unifying Framework for Several Probabilistic Inferencecited by 13
- 2013Counterfactuals and Policy Analysis in Structural Modelscited by 13
- 2022Unit Selection with Nonbinary Treatment and Effectcited by 12
6 more
- 2020An Advance on Variable Elimination with Applications to Tensor-Based Computationcited by 10
- 2020Causal Expectation-Maximisationcited by 10
- 2022Tractable Boolean and Arithmetic Circuitscited by 9
- 2022Bounding Counterfactuals under Selection Biascited by 6
- 2013Reduction of Computational Complexity in Bayesian Networks through Removal of Weak Dependenciescited by 1
- 2013Inter-causal Independence and Heterogeneous Factorizationcited by 1
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 1.
7 papers.
- 2025Explaining k-Nearest Neighbors: Abductive and Counterfactual Explanationscited by 10
- 2024Identifying Causal Effects Under Functional Dependenciescited by 3
- 2024Causal Unit Selection using Tractable Arithmetic Circuitscited by 3
- 2023Tractable Bounding of Counterfactual Queries by Knowledge Compilationcited by 2
- 2023An Algorithm and Complexity Results for Causal Unit Selectioncited by 1
- 2024Constrained Identifiability of Causal Effectscited by 1
- 2024Teleporter Theory: A General and Simple Approach for Modeling Cross-World Counterfactual Causalitycited by 0
- 2025Explaining k-Nearest Neighbors: Abductive and Counterfactual Explanations10 Jan 2025
- 2024Constrained Identifiability of Causal Effects3 Dec 2024
- 2024Teleporter Theory: A General and Simple Approach for Modeling Cross-World Counterfactual Causality17 Jun 2024
- 2024Causal Unit Selection using Tractable Arithmetic Circuits10 Apr 2024
- 2024Identifying Causal Effects Under Functional Dependencies7 Mar 2024
- 2023Tractable Bounding of Counterfactual Queries by Knowledge Compilation5 Oct 2023
- 2023An Algorithm and Complexity Results for Causal Unit Selection28 Feb 2023