Partial Counterfactual Identification from Observational and Experimental Data

Junzhe Zhang, Jin Tian, Elias Bareinboim

Introduction

In causal inference, counterfactual queries—such as asking "What would have happened to this specific patient if they had received a different treatment?"—sit at the apex of the Pearl Causal Hierarchy. They are notoriously difficult to answer because they require reconciling conflicting information between the observed world and a hypothetical one.

Often, the combination of observational data, experimental data, and a causal diagram is insufficient to pinpoint a single, unique answer. In these cases, the query is considered non-identifiable. Instead of giving up, researchers seek partial identification: finding the tightest possible upper and lower bounds for the counterfactual probability. While prior methods for finding these bounds were largely restricted to specific, simple causal structures (like the Instrumental Variable graph), this paper introduces a systematic framework for partial identification in arbitrary causal diagrams, even when unobserved factors are continuous.

Methodology: Taming Infinite Complexity

The authors' approach transforms a complex, potentially infinite causal inference problem into a solvable optimization task using three key pillars:

  1. Canonical Structural Causal Models (SCMs): The core theoretical breakthrough is Theorem 2.4. It proves that for any causal diagram with discrete observed variables, all counterfactual distributions can be represented by a "canonical" SCM where unobserved (exogenous) variables are also discrete and finite. This is a major result: it means researchers do not need to account for the infinite complexity of continuous hidden factors. The cardinality of these discrete states is strictly bounded by the number of possible functions mapping parents to children within groups of variables connected by hidden confounding.
  2. Polynomial Programming: By leveraging these canonical SCMs, the task of finding optimal bounds translates into a polynomial programming problem. The objective is to minimize or maximize the target counterfactual probability subject to constraints imposed by the observed data.
  3. Bayesian MCMC Algorithms: Because solving polynomial programs is generally NP-hard and computationally expensive, the authors developed two Markov Chain Monte Carlo (MCMC) algorithms: Blocked Gibbs Sampling and Collapsed Gibbs Sampling. These algorithms allow researchers to efficiently approximate optimal bounds from finite data samples by sampling from the posterior distribution of the model parameters.

Validation and Results

The authors validated their algorithmic approach using both synthetic models and real-world data. Unlike previous "symbolic" methods that required manual mathematical derivation for each new graph, this algorithmic approach can be applied to any Directed Acyclic Graph (DAG) without modification.

Causal diagrams used in the study, including (a) Instrumental Variable (IV), (b) Non-IV, (c) Frontdoor, and (d) Bow graphs.

The synthetic experiments tested the framework across several well-known causal structures:

  • Identifiability Recovery (Frontdoor Graph): In settings where the true value is theoretically identifiable, the algorithm's bounds correctly collapsed to a single point estimate ($P \approx 0.5085$), matching the ground truth.
  • Matching Sharp Bounds (Bow Graph): For the Bow graph, the algorithm produced a 100% credible interval ($[0, 0.6775]$) that perfectly matched the known optimal theoretical bounds for the Probability of Necessity and Sufficiency (PNS).
  • New Frontiers (Non-IV Graph): In the Non-IV setting, where no closed-form bounding solution previously existed, the algorithm successfully provided valid, informative bounds ($[0.4949, 0.8482]$) that contained the true counterfactual value.

To demonstrate real-world applicability, the authors applied the framework to the International Stroke Trial (IST), a large-scale dataset involving aspirin and heparin treatments for stroke patients. The method successfully obtained sharp bounds on treatment effects even in settings with potential unobserved confounding. By bridging theory and practice, the framework provides a path to handle finite, noisy samples using Bayesian credible intervals that converge to the true, tightest possible bounds as more data is collected.

Limitations and Future Directions

While the MCMC approach makes arbitrary bounding tractable, the state space of the canonical SCMs grows exponentially with the number of parents a variable has. Scaling this framework to very large, dense graphs remains a computational challenge. Additionally, while priors with "full support" work well, the choice of prior can influence results in very small sample regimes.

Future work will likely explore more efficient polynomial optimization solvers and extend the framework to handle continuous observed variables directly, further expanding the toolkit for robust causal inference.

Summary updated

BibTeX
@inproceedings{zhang2022partial,
  author = {Junzhe Zhang and Jin Tian and Elias Bareinboim},
  title = {{Partial Counterfactual Identification from Observational and Experimental Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=MAd8IQ65f_Z},
}
Figure