Scaling Causal Inference with Polynomial Time Algorithms

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 124 papers26 conceptsfrozen 2026-10-04

Causal inference has long been perceived as a computationally daunting frontier. While standard probabilistic reasoning is well-understood, moving up "Pearl’s Ladder of Causation"—from observations to interventions and finally to counterfactuals—is often assumed to trigger an exponential explosion in complexity. However, a growing body of research demonstrates that for many practical classes of models, the most sophisticated causal questions can be answered in polynomial time.

The core intuition behind this shift is that causal structures, such as Directed Acyclic Graphs (DAGs) and Structural Causal Models (SCMs), often possess inherent constraints—like tree topologies, linearity, or "read-once" logic—that allow us to bypass the brute-force search of the model space.

The Myth of Counterfactual Complexity

Counterfactual reasoning—asking "what would have happened if I had acted differently?"—is the most computationally intensive rung of the causal ladder. It requires reasoning across multiple "worlds" simultaneously. Yet, Yizuo Chen, Yunqiu Han, and Adnan Darwiche have shown in On the Complexity of Counterfactual Reasoning that this is not a jump in complexity class. For fully specified SCMs, counterfactual inference is at most quadratic relative to standard reasoning. If you can compute a probability efficiently, you can compute a counterfactual efficiently.

This efficiency extends to dynamic systems. In Spatio-Temporal Graphical Counterfactuals: An Overview, Mingyu Kang and colleagues demonstrate that recursive algorithms can handle counterfactuals in networked environments with polynomial time complexity relative to the number of nodes and edges.

The "holy grail" of the field is causal discovery: learning the graph structure itself from raw data. While searching the space of all possible DAGs is NP-hard, specific model assumptions make the problem tractable.

  1. Linearity and Noise: Asish Ghoshal and Jean Honorio proved in Learning linear structural equation models in polynomial time and sample complexity that linear SEMs can be recovered in polynomial time by replacing the restrictive "faithfulness" assumption with a weaker "causal minimality" condition.
  2. Latent Variables: Even when some variables are hidden, structure learning isn't necessarily impossible. Stuart Russell and Stuart Russell 0001 introduced a polynomial-time algorithm for learning Causal Trees with Latent Variables by combining observational data with targeted interventions at the "leaf" nodes.
  3. Discrete Complexity: For discrete data, Jilles Vreeken and Kailash Budhathoki use Stochastic Complexity to identify causal direction. By finding the "simplest" description of the data, they achieve state-of-the-art accuracy with algorithms that scale linearly with sample size.

Identifiability as a Computational Recipe

Identifiability is the question of whether a causal effect can be calculated from the available data. Recent work has turned this theoretical question into a set of efficient "recipes."

In m-Transportability, Sanghack Lee and Vasant G Honavar provide a polynomial-time algorithm (msID) to determine if causal knowledge can be transferred from multiple source environments to a target domain. Similarly, Yaroslav Kivva and colleagues solved the Conditional Causal Effects problem, proving that determining if a conditional effect is identifiable is computationally efficient.

Even in the presence of hidden confounders, identifying the "causal contribution" of a specific feature—a task known as do-Shapley—can be done in $O(n^3)$ time. As Yonghan Jung and Jin Tian demonstrate, graphical criteria allow us to quantify these contributions without needing to perform an exponential search of the causal graph.

Why It Works: Exploiting Local Structure

The reason these algorithms achieve polynomial efficiency is that they exploit local dependencies. Whether it is Joseph Halpern and Hana Chockler using "read-once" formulas to calculate Causal Responsibility in linear time, or Clément Yvernes identifying effects in Summary Causal Graphs, the strategy is the same: reduce global causal questions into local structural checks. By focusing on how information flows through specific nodes and edges, researchers are proving that causal reasoning is not just a theoretical ideal, but a scalable tool for high-dimensional, real-world systems.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_scaling_causal_inference_with_polynomial_efcf5177,
  title = {Scaling Causal Inference with Polynomial Time Algorithms},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scaling-causal-inference-with-polynomial-time-algorithms/rdr_efcf5177397a43fb85689b7c1fbfefe1},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-30},
}

This exact version (version 1, frozen text):

@misc{lacuna_scaling_causal_inference_with_polynomial_efcf5177_v1,
  title = {Scaling Causal Inference with Polynomial Time Algorithms},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scaling-causal-inference-with-polynomial-time-algorithms/rdr_efcf5177397a43fb85689b7c1fbfefe1/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-30},
}