Integrating Markov processes with structural causal modeling enables counterfactual inference in complex systems

Robert Osazuwa Ness, Kaushal Paneri, Olga VitekNeurIPS 2019

In fields like systems biology, researchers frequently rely on two primary types of models to understand complex systems, each presenting a frustrating trade-off. On one hand, Markov Process Models excel at describing mechanisms—detailing how molecules interact over time according to physical laws. While they can predict how a system reaches a new equilibrium after an intervention (like administering a drug), they cannot perform counterfactual inference. They cannot answer personalized "what-if" questions, such as: "Given that Patient A responded this way to Drug X, how would that specific patient have responded to Drug Y?"

On the other hand, Structural Causal Models (SCMs) are the gold standard for counterfactual reasoning. They anchor predictions to observed data by inferring latent "noise" (the unique, unobserved factors of a specific case). However, SCMs often lack mechanistic grounding and suffer from "unidentifiability"—meaning multiple different SCMs can fit the same data but yield contradictory counterfactual answers.

This paper introduces a novel framework designed to bridge this gap. By casting a system's equilibrium behavior as an SCM using the physical parameters of a Markov model, the authors enable robust counterfactual reasoning in complex biological systems.

Methodology: Bridging the Gap

The authors propose a multi-step pipeline to transform a discrete-state, continuous-time Markov process into a mathematically consistent SCM:

  1. Equilibrium Mapping: The process begins with the Markov model's "master equations" (ordinary differential equations describing state changes). The authors solve these equations to find the steady-state equilibrium distribution.
  2. Monotonic Conversion: To convert a generative probability distribution into a deterministic SCM, the framework employs "monotonic conversion." For simple cases, an inverse CDF transform is used. For more complex, high-dimensional systems, the authors utilize a Gaussian approximation combined with the "reparameterization trick" (commonly seen in Variational Autoencoders) to ensure the model remains differentiable and scalable.
  3. Counterfactual Algorithm: Once the SCM is constructed, it follows the standard causal inference cycle: Abduction-Action-Prediction. The model uses observed data to infer the specific latent noise of a sample (Abduction), applies a "do-intervention" (Action), and finally predicts the outcome (Prediction).

Case Studies and Results

The framework is evaluated using two simulated case studies of canonical biological pathways, which serve as established mechanistic models to generate ground-truth trajectories.

1. MAPK Signaling Pathway

The first case study examines a three-protein cascade (MAP3K $\rightarrow$ MAP2K $\rightarrow$ MAPK) that is essential for cell fate decisions.

MAPK Signaling Pathway Results

The results demonstrate significant robustness to model misspecification. When the underlying Markov model was intentionally misspecified (e.g., an incorrect rate parameter), direct simulation yielded an error of 1.03. In contrast, the SCM-based counterfactual error was only 0.343. Furthermore, the SCM's counterfactual distribution exhibited less variance than rate-manipulation simulations, indicating that "ideal interventions" in the SCM framework provide highly stable predictions.

2. IGF Signaling System

The second case study scales up to a more complex network involving growth factor receptors (EGF, IGF) and branching paths (PI3K/AKT and Raf/Mek/Erk).

IGF Signaling System and Results

In this highly complex system featuring multiple paths of influence, the SCM remained remarkably accurate. While the error for the direct simulation exploded to 92.55 under misspecification, the SCM maintained an error of just 7.563.

Key Insights

The most profound insight from this work is the "Anchoring" Effect. Counterfactual inference acts as a corrective lens. By conditioning on observed data during the abduction step, the SCM captures the specific stochastic state of a system. If the base Markov model is slightly inaccurate, a direct simulation will compound that error. However, the SCM "anchors" its prediction to the actual observed data, effectively compensating for the model's inaccuracies.

Additionally, the authors prove that the counterfactuals generated by their SCM are consistent with the actual stochastic trajectories of the underlying Markov process, successfully resolving the identifiability problem that typically plagues standard SCMs.

Limitations and Future Work

While powerful, the current framework has a few notable limitations:

  • Equilibrium Constraint: The methodology currently only applies to systems at equilibrium and cannot yet support counterfactuals for transient states (the "journey" before settling).
  • Approximation Weakness: The Gaussian approximations used for Binomial distributions weaken near boundaries (e.g., when protein counts approach 0 or 100).
  • Functional Limits: The closed-form solutions are restricted to zero or first-order hazard functions (mass action kinetics). Extending this to non-linear kinetics, like Hill functions, remains an open challenge.
  • Cycles: Many complex biological systems rely heavily on feedback loops. Extending this framework to handle cyclic SCMs is a primary direction for future research.

Summary updated

BibTeX
@inproceedings{ness2019integrating,
  author = {Robert Osazuwa Ness and Kaushal Paneri and Olga Vitek},
  title = {{Integrating Markov processes with structural causal modeling enables counterfactual inference in complex systems}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure