On the Tractability of Neural Causal Inference

Matej Zecevic, Devendra Singh Dhami, Kristian Kersting

Abstract

Neurally-parameterized Structural Causal Models in the Pearlian notion to causality, referred to as NCM, were recently introduced as a step towards next-generation learning systems. However, said NCM are only concerned with the learning aspect of causal inference but totally miss out on the architecture aspect. That is, actual causal inference within NCM is intractable in that the NCM won't return an answer to a query in polynomial time. This insight follows as corollary to the more general statement on the intractability of arbitrary SCM parameterizations, which we prove in this work through classical 3-SAT reduction. Since future learning algorithms will be required to deal with both high dimensional data and highly complex mechanisms governing the data, we ultimately believe work on tractable inference for causality to be decisive. We also show that not all "causal" models are created equal. More specifically, there are models capable of answering causal queries that are not SCM, which we refer to as partially causal models (PCM). We provide a tabular taxonomy in terms of tractability properties for all of the different model families, namely correlation-based, PCM and SCM. To conclude our work, we also provide some initial ideas on how to overcome parts of the intractability of causal inference with SCM by showing an example of how parameterizing an SCM with SPN modules can at least allow for tractable mechanisms. We hope that our impossibility result alongside the taxonomy for tractability in causal models can raise awareness for this novel research direction since achieving success with causality in real world downstream tasks will not only depend on learning correct models as we also require having the practical ability to gain access to model inferences.

Introduction

In the quest for "Causal AI," researchers have combined deep learning with Judea Pearl’s Structural Causal Models (SCMs). While these "Neural Causal Models" (NCMs) are excellent at approximating complex functions, they often ignore the architecture aspect of inference. Even if a model perfectly learns the underlying causal structure, querying it—for instance, asking "What is the probability of Y given an intervention on X?"—can be computationally intractable. This paper formalizes these tractability limits and proposes a path toward efficient causal reasoning.

The Complexity of Causal Inference

The authors provide a formal proof of intractability using a reduction from the classical 3-SAT problem. They demonstrate that causal marginal inference in arbitrary parameterized SCMs is NP-hard. This "impossibility result" serves as a warning: simply increasing model capacity or depth will not overcome the fundamental computational complexity of causal reasoning.

The causal inference pipeline: A query is transformed into an estimand via do-calculus, which is then estimated using data and a specific model architecture (NN, SPN, or BN).

A Taxonomy of Causal Models

To better understand the landscape, the authors categorize models into three distinct families based on their causal expressivity and tractability:

  1. Non-Causal Models: Standard architectures like CNNs or standard Sum-Product Networks (SPNs) that are limited to capturing associations.
  2. Partially Causal Models (PCM): Models such as iSPN that can handle interventions ($do$-queries) but lack the full power to address counterfactuals.
  3. Structural Causal Models (SCM): Fully expressive models (like NCMs) capable of addressing the entire Pearl Causal Hierarchy (PCH), including counterfactuals.

Tractable Neural Causal Models (TNCM)

To bridge the gap between expressivity and efficiency, the authors introduce the Tractable Neural Causal Model (TNCM). Standard NCMs typically use Multi-Layer Perceptrons (MLPs) for structural equations, which can be slow to evaluate. In contrast, TNCM leverages Sum-Product Networks (SPNs) as building blocks. SPNs are probabilistic circuits that guarantee exact, linear-time inference for specific sub-tasks. By replacing MLPs with SPNs, TNCM makes the individual causal mechanisms tractable, even if general marginal inference remains hard.

Experimental Results

The approach was evaluated using synthetic SCM simulations representing four classic causal structures: Colliders, Chains, Confounded variables, and Backdoor structures. These simulations allowed for precise measurement against ground-truth causal effects.

Key Findings:

  • Linear Scaling: Empirical tests showed that TNCM achieves linear scaling for mechanism inference as model capacity increases, whereas standard MLP-based NCMs exhibit higher-degree polynomial scaling.
  • Causal Accuracy: Both NCM and TNCM performed effectively in estimating the Average Treatment Effect (ATE) across all scenarios, suggesting that adopting a tractable architecture does not compromise causal accuracy.
  • Density Estimation: TNCM remained competitive with NCM in modeling probability distributions, though it showed slightly higher variance in confounded cases.

Conclusion

While the "marginal bottleneck" (the NP-hardness of general marginal inference) remains a challenge, this work highlights that the choice of architecture is critical for practical causal AI. By focusing on tractable mechanisms through models like TNCM, we move closer to systems that can perform complex causal reasoning in real-time. Future work will involve testing these models on high-dimensional, real-world datasets and further automating the discovery of tractable causal structures.

Summary updated

BibTeX
@misc{zecevic2021tractability,
  author = {Matej Zecevic and Devendra Singh Dhami and Kristian Kersting},
  title = {{On the Tractability of Neural Causal Inference}},
  year = {2021},
  eprint = {2110.12052},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.12052},
}
Figure