Causal Expectation-Maximisation

Marco Zaffalon, Alessandro Antonucci, Rafael CabañasarXiv 2020

TL;DR

Causal inference is NP-hard even in simple polytree models, making exact counterfactual reasoning computationally daunting. This paper introduces Causal Expectation-Maximisation (EMCC), a practical algorithm that approximates counterfactual bounds by sampling distributions compatible with observed data, while providing a rigorous way to test if a causal model actually fits the evidence.

What Problem Does This Paper Address?

At the top of Judea Pearl’s "Ladder of Causation" sits counterfactual reasoning—answering "what if" questions about the past. Structural Causal Models (SCMs) are the mathematical engine for this, but they often rely on latent (unobserved) variables.

When these latent variables are present, we usually only have a Partially Specified SCM (PSCM). In these cases, counterfactual probabilities are often "non-identifiable," meaning they don't have a single value but rather fall within an interval or bound.

Existing methods to compute these bounds are either highly specialized (ad hoc), computationally explosive (like polynomial optimization), or limited to specific graph types. The authors identify a fundamental hurdle: they prove that computing even simple interventional queries in polytree-shaped PSCMs is NP-hard. This hardness necessitates efficient, general-purpose approximation methods.

Methods

The authors propose EMCC (EM for Causal Computation), adapting the classic Expectation-Maximization algorithm to the causal domain.

  1. M-Compatibility: The paper introduces the concept of "M-compatibility"—checking if a given causal model can actually generate the observed data. If a model isn't M-compatible, any counterfactuals derived from it are logically suspect.
  2. The Algorithm: EMCC treats latent variables as "missing at random" data.
  3. E-step: It estimates the posterior probability of the latent variables given the observed data.
  4. M-step: It updates the distributions of these latent variables to maximize the likelihood of the observed data.
  5. Inner Approximation: Because the EM algorithm converges to a single global optimum (a "compatible" distribution), the authors run it multiple times with different random initializations. By taking the minimum and maximum results across these runs, they produce an inner approximation of the true counterfactual interval.
  6. Credible Bounds: They provide a theoretical framework to determine how many EM runs are needed to reach a desired level of confidence (credibility) that the approximation is close to the true bounds.

Datasets

The authors evaluated EMCC using a benchmark of 460 synthetic SCMs.

  • Structure: These models were Boolean endogenous chains consisting of 5, 7, or 10 nodes.
  • Complexity: The benchmark included Markovian models (each node has its own latent parent), quasi-Markovian models, and more complex non-quasi-Markovian models (where latent variables can influence multiple observed nodes).
  • Evaluation: They compared EMCC's approximate bounds against exact bounds (where available) or against results from a very high number of EM runs.

Key Insights and Ideas

  • NP-Hardness Proof: The paper proves that causal inference is computationally difficult even in very simple graph structures (polytrees). This justifies the shift toward approximation methods like EMCC.
  • The Necessity of Structural Equations: A major "aha moment" is the argument that counterfactual bounds cannot be reliably computed by looking at the causal graph alone. Example 5 in the paper demonstrates that if the underlying structural equations are restricted (non-conservative), the true counterfactual value might fall entirely outside the bounds calculated by methods that ignore those equations.
  • Compatibility as a Filter: EMCC naturally discards models that are incompatible with the data. This is a crucial safety check that many previous bounding methods lacked.
  • Efficiency via d-separation: The algorithm leverages the "c-component" factorization of SCMs (see Figure 2), allowing the EM process to be parallelized across independent parts of the graph.
Figure 2: A SCM (a), its reduction (b), its endogenous factorisation (c).

Key Results

  • Rapid Convergence: Experiments showed that EMCC provides a very accurate estimate (RMSE < 0.01) quite quickly. As shown in Figure 3, the error drops significantly within the first few runs.
  • Confidence Levels: The authors established that 20 EM runs are sufficient to achieve 95% credibility for non-identifiable counterfactual intervals.
  • Identifiability Testing: For cases where a query is identifiable (a single value), just 6 runs are enough to be 95% confident of the result.
  • Scalability: While execution time increases with model complexity (treewidth), the method remains viable for models with 10+ nodes, completing runs in a few hundred seconds even for complex non-quasi-Markovian cases (see Figure 4).
Figure 3: EMCC RMSE vs. number of runs (n).

Limitations and Future Work

  • Inner Bounds: EMCC provides an inner approximation of the interval. While it gets very close, it might slightly underestimate the full width of the true non-identifiable bound.
  • Categorical Variables: The current implementation and proofs focus on categorical (discrete) manifest variables.
  • Future Directions: The authors suggest extending EMCC to continuous domains, which would significantly broaden its applicability in fields like economics and medicine where variables are often continuous.

Summary updated

BibTeX
@misc{zaffalon2020causal,
  author = {Marco Zaffalon and Alessandro Antonucci and Rafael Cabañas},
  title = {{Causal Expectation-Maximisation}},
  year = {2020},
  eprint = {2011.02912},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.02912},
}
Figure