Robust Counterfactual Policy Optimisation via Nondeterministic Causal Models

Jessica Lally, Milad Kazemi, Nicola Paoletti, David Watson, Sander BeckersarXiv 2026

TL;DR

Standard counterfactual policy optimization assumes the world is deterministic underneath its hidden variables, failing to account for the inherent randomness of real-world environments like healthcare. This paper introduces a framework using Probabilistic Nondeterministic Causal Models (PNSCMs) to properly separate unobserved confounding from irreducible stochasticity. By applying a robust sensitivity analysis, the authors successfully derive safe, high-performing policies even when critical patient data is entirely hidden.

What Problem Does This Paper Address?

When designing automated systems for safety-critical domains like healthcare, we often want to ask counterfactual questions: "What would have happened to this patient if we had given them a different treatment sequence?" Answering this offline requires causal models.

Traditionally, researchers use Structural Causal Models (SCMs), which assume that if you knew every single hidden factor (latent variable) in the universe, the world would be completely deterministic. But real-world systems—especially human biology—possess irreducible stochasticity (intrinsic randomness that cannot be explained away by hidden variables).

If a model treats all randomness as a hidden confounder, its counterfactual estimates become overly pessimistic or wildly inaccurate. This paper addresses the gap by modeling environments where both hidden confounders (e.g., an unobserved chronic illness) and true, irreducible noise coexist.

Methods

The authors bridge the gap between reinforcement learning (MDPs) and causality through several novel steps:

  1. Probabilistic Nondeterministic SCMs (PNSCMs): Instead of deterministic functions, they use conditional probability distributions to model transitions. This allows the environment to be inherently random while still accounting for latent variables.
  2. Actualised Refinement: This is the mechanism that drives their counterfactual logic. If a counterfactual action matches what actually happened in the real world, the model enforces that the outcome must be identical (since the hidden confounder was constant). If the action changes, the model gracefully transitions to a bounded probability distribution.
  3. Sensitivity Analysis Framework: Since the hidden confounder $U$ cannot be observed, they bound its potential impact using an odds-ratio parameter ($\Delta$). They introduce a clever data-driven calibration technique: they systematically hide known variables one by one to see how much they alter transition dynamics, using the strongest observed variable to set a realistic upper bound for $\Delta$.
  4. Decoupled Optimization: Globally optimizing a counterfactual policy across time is a notoriously difficult, non-convex problem. The authors simplify this by decoupling the state-action pairs across time steps. Using the Gurobi optimizer, they solve these blocks independently to find a guaranteed conservative lower bound for the policy's value.

Datasets

  • Sepsis MDP Simulator: The framework was validated using a standard sepsis treatment simulator originally developed by Oberst and Sontag (2019). The state space tracks four vital signs (heart rate, blood pressure, oxygen concentration, and glucose levels), and the agent chooses between three treatment toggles.
  • The Confounder: To test their method, the authors hid the patient's diabetes status (which affects 20% of the population) from the data, turning it into a global latent confounder that alters how patients respond to treatments.

Key Insights and Ideas

  • Noise Separation Matters: Conflating irreducible noise with latent confounding severely harms policy evaluation. Separating them allows the algorithm to understand that some risks are just random, while others are driven by the hidden state (diabetes).
  • Safe Pessimism via Decoupling: While decoupling state-action pairs gives up some theoretical tightness, it makes the optimization computationally tractable and guarantees a valid lower bound. In safety-critical fields, being safely conservative is highly desirable.
  • Self-Calibrating Sensitivity: Instead of relying on a human domain expert to guess how confounding the hidden variable is, the paper's method of hiding known variables provides a highly effective proxy for bounding unknown risks.

Key Results

The authors evaluated their robust counterfactual policies ($\pi^*_\Delta$) against the true, fully-observed Sepsis MDP (where diabetes status was revealed during testing).

  • Robust Improvement: As shown in Table 1, the derived policies robustly improved upon the observed suboptimal baseline trajectories, even though the algorithm had to guess the impact of diabetes.
  • Proxy Accuracy: For patients with diabetes, their unscaled proxy ($\Gamma = 1$) closely matched the "oracle" performance—the absolute best possible robust policy you could find if you actually knew the true sensitivity of diabetes beforehand.
Figure 1: Mean difference between counterfactual policy values and the oracle (under true diabetes sensitivity ∆∗), averaged across 10 randomly sampled suboptimal trajectories.

As seen in Figure 1 (above), for diabetic trajectories (a), a scale factor of $\Gamma = 1$ minimizes the error relative to the oracle ($\bar{\delta}_1$ and $\bar{\delta}_2$ approach 0). For non-diabetic trajectories (b), the value estimates are conservative, yet the policy performance ($\bar{\delta}_2$) remains remarkably close to the oracle across various scales.

Limitations and Future Work

  • Static Confounders Only: The current framework only handles global confounders—unchanging traits like a baseline genetic condition or diabetes status. It cannot yet handle time-varying confounders (e.g., a patient's fluctuating immune response).
  • Overly Conservative Bounds: Because the optimization is decoupled to remain tractable, the lower bounds can occasionally be too pessimistic, potentially causing the system to reject a beneficial policy.

The authors note that future work will focus on extending this framework to time-varying latent variables and exploring gradient-descent methods to incorporate time-homogeneity for tighter, less conservative value estimates.

Summary updated

BibTeX
@misc{lally2026robust,
  author = {Jessica Lally and Milad Kazemi and Nicola Paoletti and David Watson and Sander Beckers},
  title = {{Robust Counterfactual Policy Optimisation via Nondeterministic Causal Models}},
  year = {2026},
  eprint = {2608.02893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.02893},
}
Figure