The Computational Complexity of Structure-Based Causality

Gadi Aleksandrowicz, Hana Chockler, Joseph Y. Halpern, Alexander Ivrii

Abstract

This paper investigates the computational complexity of the updated Halpern-Pearl (HP) definition of actual causality. By analyzing the structural requirements of the definition—specifically the minimality condition—the authors demonstrate that determining causality is $D^P_2$-complete. This result identifies the first "natural" problem for this complexity class and provides a comprehensive characterization of related concepts such as responsibility and blame.

Introduction

The quest to formalize "actual causality"—determining whether a specific event caused another in a given scenario—is a cornerstone of Artificial Intelligence and philosophy. For instance, in the classic "Suzy and Billy" thought experiment, if both throw rocks at a bottle but Suzy’s hits first, we intuitively identify Suzy as the cause. The Halpern-Pearl (HP) framework, introduced in 2001 and refined in 2005, provides a rigorous mathematical basis for these intuitions using structural equations and counterfactual reasoning.

The Halpern-Pearl Framework

The HP definition relies on three conditions to identify a set of events $\vec{X} = \vec{x}$ as a cause for an effect $\phi$:

  1. AC1: Both the cause and the effect must actually occur in the real world.
  2. AC2: There exists a "contingency"—a hypothetical setting of other variables—under which the effect $\phi$ depends counterfactually on $\vec{X}$.
  3. AC3: The set $\vec{X}$ must be minimal; no proper subset of $\vec{X}$ satisfies AC1 and AC2.
Figure 1: A basic causal model representing a scenario where two independent events (ST and BT) can lead to an outcome (BS), often used to illustrate simple disjunctive causality.

The 2005 update to the HP definition introduced subtle but significant changes to the AC2 condition, primarily to better handle cases of "preemption" where one cause prevents another from acting.

Complexity and the Minimality Trap

While the complexity of the original 2001 definition was well-mapped (ranging from NP-complete to $\Sigma^P_2$-complete), the updated version introduced new logical hurdles. A key insight of this research is the "Minimality Trap." In the original definition, any cause could be reduced to a single event (a singleton). In the updated version, a cause may necessarily consist of a conjunction of multiple events.

Figure 2: A more complex causal model for the 'Suzy and Billy' scenario, illustrating preemption where Suzy's hit (SH) prevents Billy's hit (BH) from being the actual cause.

To characterize this, the authors utilize the $D^P_k$ complexity classes. A problem is in $D^P_k$ if it is the intersection of a language in $\Sigma^P_k$ and a language in $\Pi^P_k$. Determining causality under the updated definition requires two simultaneous hard checks: proving a "witness" exists for the cause (a $\Sigma^P_2$ task) and proving that no such witness exists for any smaller subset (a $\Pi^P_2$ task). This intersection lands the problem squarely in $D^P_2$.

Key Results

The paper provides a complete taxonomy of the complexity of the updated HP definition:

  • General Causality: Deciding if a set of events is a cause is $D^P_2$-complete. This is the first "natural" problem identified for this class.
  • Singleton Causality: Determining if a single event is a cause is $\Sigma^P_2$-complete.
  • Binary Models: Even when restricted to binary variables, singleton causality remains $\Sigma^P_2$-complete, unlike the original definition which was easier in binary settings.
  • Responsibility and Blame: These quantitative measures are even more complex, with responsibility being $FP^{D^P_2[\log n]}$-complete.

Limitations and Future Work

The current analysis focuses on recursive causal models, which lack feedback loops. While sufficient for many scenarios, non-recursive models found in biology or economics may exhibit even higher complexity. The identified $D^P_2$ complexity suggests that for large systems, researchers must look toward approximation algorithms or identifying tractable subclasses where causality can be computed efficiently.

Summary updated

BibTeX
@inproceedings{aleksandrowicz2014computational,
  author = {Gadi Aleksandrowicz and Hana Chockler and Joseph Y. Halpern and Alexander Ivrii},
  title = {{The Computational Complexity of Structure-Based Causality}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8863},
}
Figure