Graph-based Complexity for Causal Effect by Empirical Plug-in

Rina Dechter, Annie Raichev, Alexander Ihler, Jin Tian · DOI

Abstract: This paper focuses on the computational complexity of computing empirical plug-in estimates for causal effect queries. Given a causal graph and observational data, any identifiable causal query can be estimated from an expression over the observed variables, called the estimand. The estimand can then be evaluated by plugging in probabilities computed empirically from data. In contrast to conventional wisdom, which assumes that high dimensional probabilistic functions will lead to exponential evaluation time of the estimand. We show that computation can be done efficiently, potentially in time linear in the data size, depending on the estimand's hypergraph. In particular, we show that both the treewidth and hypertree width of the estimand's structure bound the evaluation complexity of the plug-in estimands, analogous to their role in the complexity of probabilistic inference in graphical models. Often, the hypertree width provides a more effective bound, since the empirical distributions are sparse.

Introduction

In causal inference, the primary goal is often to estimate the effect of an intervention—answering questions like "What is the effect of treatment $X$ on outcome $Y$?" This typically involves two distinct phases: identifiability, where we determine if the causal query can be reduced to a mathematical formula (the estimand) based on observed data, and estimation, where we calculate the numerical value of that formula using a finite dataset.

The "plug-in" method is the most straightforward estimation approach: theoretical probabilities in the estimand are replaced with empirical counts from the data. However, conventional wisdom in the field has long held that evaluating these estimands is computationally prohibitive in high dimensions. Because these formulas often involve complex sums over many variables, standard theory suggests evaluation time should grow exponentially with the number of variables. This paper challenges that assumption, demonstrating that the underlying structure of the data and the causal graph allow for significantly more efficient computation.

The PI-HTE Framework

The authors bridge the gap between causal inference and Probabilistic Graphical Models (PGMs) by introducing the PI-HTE (Plug-In Hypertree Evaluation) framework. This approach leverages two key concepts to break the "curse of dimensionality":

  1. Empirical Bayesian Networks (empBN): The dataset is treated as a sparse graphical model. In a dataset with $t$ samples, any probability table—regardless of the number of variables—can have at most $t$ non-zero entries. This inherent sparsity is the fundamental driver of efficiency.
  2. Hypertree Width ($hw$): While treewidth ($w$) is the standard complexity measure for exact inference, it is often overly pessimistic because it assumes dense probability tables. Hypertree width is a more refined metric that accounts for how functions "cover" variables, providing a tighter bound when data is sparse.
Belief network and its tree decomposition

The core algorithmic finding is that evaluation complexity is $O(n \cdot t^{hw})$. This means computation scales with the data size $t$ raised to the power of the hypertree width, rather than the domain size of variables raised to the power of the treewidth. For many structures, this results in near-linear scaling relative to the dataset size.

Experimental Evaluation

To validate these theoretical bounds, the authors tested PI-HTE against four synthetic benchmarks with varying causal structures and complexities:

  • Chain Model: A 99-node sequence. Despite a massive treewidth ($w=98$), its hypertree width is minimal ($hw=1$).
  • Cone Cloud Model: A 15-variable model with $hw=2$.
  • Diamond Model: A 17-variable model with $hw=2$.
  • 3-Layer Model: A 17-variable model with $hw=4$.
Synthetic causal structures used for evaluation

Data was sampled from these models using various distributions (uniform, deterministic, and Dirichlet) to observe how different types of empirical sparsity impact performance.

Key Results and Insights

The empirical results strongly support the theoretical claims. In the Chain Model, where standard analysis would predict a complexity of $10^{59}$ operations, PI-HTE successfully solved the query in approximately 10 minutes for a dataset of 10,000 samples. This confirms that for structures with $hw=1$, the calculation runs in linear time relative to the number of samples.

Furthermore, the scaling behavior was highly predictable. For models with $hw=2$, computation time grew quadratically with the sample size ($t^2$), while the $hw=4$ model showed cubic to quartic growth. Importantly, memory usage remained manageable, with the maximum table size during computation scaling directly with the data size rather than the theoretical state space.

Conclusion

This research demonstrates that computational complexity in causal inference is governed by the interaction between the estimand's structure and the sparsity of the empirical data. By shifting the focus from treewidth to hypertree width, the authors show that many "impossible" causal queries are, in fact, practically computable.

Future work remains in optimizing the heuristic search for minimal hypertree decompositions, which is itself an NP-hard problem, and extending these graph-based complexity bounds to more advanced estimators like Targeted Maximum Likelihood Estimation (TMLE).

Summary updated

BibTeX
@misc{dechter2024graph,
  author = {Rina Dechter and Annie Raichev and Alexander Ihler and Jin Tian},
  title = {{Graph-based Complexity for Causal Effect by Empirical Plug-in}},
  year = {2024},
  eprint = {2411.10008},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.10008},
}
Figure