A Dynamical View of the Question of Why

Mehdi Fatemi, Sindhu C. M. Gowda

Causal inference has traditionally relied on static graphs and hypothetical "what-if" interventions. While frameworks like Judea Pearl’s Structural Causal Models (SCMs) excel at answering static questions (e.g., "Does smoking cause cancer?"), they struggle with dynamic, continuously changing systems (e.g., "Why did a patient’s blood sugar drop at exactly 4 PM?").

Presented at ICLR 2024, A Dynamical View of the Question of Why offers a novel paradigm. The authors propose deriving causality directly from the flow of time in dynamic, stochastic systems, bypassing the need for predefined causal graphs or impossible real-world interventions.

The Challenge of Dynamic Systems

Applying traditional causal reasoning to complex, time-evolving systems presents two major hurdles:

  1. The Graph Problem: Constructing a causal graph for a system with millions of interacting variables—such as every pixel in a video game over time—is practically impossible.
  2. The Intervention Problem: Real-world systems often cannot be paused or rewound to test a theory. You cannot reverse time to observe what would have happened if a patient had not taken their medication.

To overcome these, the authors argue that causality must be viewed as a continuous process. They shift away from traditional "do-calculus" toward a framework that models how the underlying dynamics of a system carry a cause toward its eventual effect.

Redefining Causality via Reinforcement Learning

The paper introduces several mathematical concepts to bridge the gap between system dynamics and causality:

  • Grit ($\Gamma_B$): This represents the "pessimistic" probability of an effect $B$ occurring. It is the minimum probability that $B$ will happen, regardless of any future actions taken to prevent it.
  • The Value Lemma: The authors prove that "Grit" is mathematically equivalent to the optimal value function in a Reinforcement Learning (RL) setting. By training an RL agent to avoid a specific outcome, the agent's failure rate (its value function) reveals the probability of that outcome occurring.
  • The Decomposition Lemma (g-formula): Using Itô’s calculus, the authors break down the change in Grit into individual contributions from every state variable and action over time.
  • Formal Causation: A "cause" is formally defined as an event that strictly increases the Grit of an effect, with a contribution that outweighs the background noise of other variables.

In practice, the researchers train an RL model on observational data to learn the value of different states. They then use the gradients of that model to identify which specific variables pushed the system toward a given outcome. If changing variable $X$ at time $T$ significantly spikes the probability of failure, $X$ is identified as a likely cause.

Key Results: Uncovering Causality in Complex Environments

The authors evaluated their framework on two intricate environments: a high-dimensional discrete game (Atari Pong) and a continuous medical simulator (Type-1 Diabetes Mellitus Simulator).

Atari Pong

In Atari Pong, the "effect" was losing a point, and the "variables" were the raw screen pixels. The model successfully identified that the root cause of losing a point was not merely the paddle missing the ball at the last moment, but the ball's trajectory established several frames earlier.

Atari Pong Causal Analysis

As shown in the analysis above, the framework tracks the Grit ($\Gamma(x)$, bottom row) frame by frame. It identifies Frame 51 as the point of "Sufficient Causation"—the exact moment the Grit reaches 1.0, indicating that the point is lost regardless of what the player does next. The gradient maps ($\nabla \Gamma(x)$) clearly highlight the specific pixels (the ball and paddle positions) driving this inevitable outcome.

Diabetes Management

Using an FDA-approved medical simulator, the framework analyzed a continuous time-series of 13 body-system variables and two actions (insulin and meal intake). In a scenario involving multiple insulin doses and meals, the model successfully ignored correlated but non-causal events. It pinpointed the exact insulin injection that caused a hypoglycemic dip, demonstrating that only that specific dose's contribution was positive and dominant.

Limitations and Future Directions

While groundbreaking, the framework has a few limitations:

  • Full Observability: The current mathematics assume the "full state" of the system is visible. Real-world applications with hidden variables will require extending this work to Partially Observable Markov Decision Processes (POMDPs).
  • Stochasticity Limits: The approach relies on diffusion processes, which typically account for only the mean and variance of stochasticity. Systems with more extreme randomness may challenge the current lemmas.
  • Computational Load: Training a high-quality RL agent for causal analysis is computationally intensive compared to simpler statistical methods, though it remains one of the few viable ways to handle such complex dynamics.

By reframing causality as a dynamic process measurable through reinforcement learning, this work provides a powerful new lens for understanding why events happen in complex, time-evolving systems.

Summary updated

BibTeX
@inproceedings{fatemi2024dynamical,
  author = {Mehdi Fatemi and Sindhu C. M. Gowda},
  title = {{A Dynamical View of the Question of Why}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=lrQlLqQase},
}
Figure