Causal Reinforcement Learning using Observational and Interventional Data

Maxime Gasse, Damien Grasset, Guillaume Gaudron, Pierre-Yves Oudeyer

TL;DR

Combining offline demonstrations with online interactions is notoriously difficult when the demonstrator has access to privileged information that the learning agent cannot see. This paper casts model-based reinforcement learning in partially observable environments (POMDPs) as a causal inference problem using Pearl’s do-calculus. By learning a unified latent-variable model across both observational and interventional regimes, the proposed framework safely deconfounds offline data, delivering dramatic sample-efficiency gains over purely online or naively combined approaches.

What Problem Does This Paper Address?

In reinforcement learning (RL), online exploration can be expensive, slow, or dangerous, while offline demonstration data is often abundant. In fully observable environments (MDPs), merging offline and online data is relatively straightforward. However, in partially observable settings (POMDPs), offline demonstrations often come from human or privileged agents who make decisions based on hidden factors.

For instance, a human driver might tap the brakes after spotting a pedestrian outside the camera’s narrow field of view, or a doctor might prescribe medication based on lifestyle details missing from an electronic health record. This creates unobserved confounding: the demonstrator’s action $A_t$ is statistically dependent on the hidden state $S_t$ given the observed history $H_t$ ($A_t \not\perp S_t \mid H_t$).

If an RL agent naively learns a world model from this confounded offline data, it will infer spurious causal relationships (e.g., believing that pressing the brake causes pedestrians to appear). But throwing offline data away entirely wastes valuable information about the environment's underlying physics and transition dynamics.

Methods

The authors formalize model-based RL as a causal inference task, where predicting the consequence of an action requires evaluating interventional queries of the form $p(o_{t+1} \mid h_t, \text{do}(a_t))$. They then propose a two-step framework:

  1. Augmented POMDP Formulation: The environment is modeled with an auxiliary binary regime indicator variable $I \in \{0, 1\}$:
  2. $I = 0$ (observational regime): Trajectories generated by a privileged policy $\pi_{prv}(a_t \mid h_t, s_t)$ that has access to hidden state $s_t$.
  3. $I = 1$ (interventional regime): Trajectories generated by the standard learning agent's policy $\pi_{std}(a_t \mid h_t)$.
  4. Latent Model Joint Training: Instead of learning separate models or relying on explicit causal bounding, the method fits a shared latent-variable model $q$ across both datasets via maximum likelihood: $$q(\tau, i) = q(i) \sum_{z_0 \dots z_T} q(z_0) q(o_0 \mid z_0) \prod_{t=0}^{|\tau|-1} q(a_t \mid h_t, z_t, i) q(z_{t+1} \mid z_t, a_t) q(o_{t+1} \mid z_{t+1})$$ Here, the latent transition $q(z_{t+1} \mid z_t, a_t)$ and emission $q(o_t \mid z_t)$ distributions are strictly shared across regimes. Confounding is captured exclusively by allowing the observational policy ($i=0$) to depend on latent state $z_t$, while the interventional policy ($i=1$) is constrained to depend only on history $h_t$.

  5. Deconfounded Inference: The causal transition model $q(o_{t+1} \mid h_t, a_t, i=1)$ is recovered during planning via a forward filtering algorithm that integrates out the recovered latent states.

The authors prove that when the latent state space is sufficiently expressive ($|Z| \ge |S|$), the estimator is unbiased. In the asymptotic limit of observational data ($|\mathcal{D}_{obs}| \to \infty$), it yields provably tighter generalization bounds than learning solely from interventional data.

Datasets

The authors evaluated their framework on three synthetic POMDP benchmarks:

  • Door Problem: A contextual binary bandit ($H=1$, $|S|=3$, $|O|=0$) where a colorblind agent must determine which button opens a door, while the privileged demonstrator can see a guiding light (red or green).
  • Tiger Problem: A classic POMDP ($H=50$, $|S|=6$, $|O|=6$) where the agent must choose between listening to noisy roars or opening one of two doors (one concealing a treasure, the other a tiger). The privileged agent has full knowledge of the tiger's location.
  • Gridworld: A $5\times 5$ navigation task ($H=20$, $|S|=42$, $|O|=44$) adapted from Alt et al., where the agent must navigate around a central wall to a target. Actions are stochastic (50% slip rate), the agent's position is obscured 80% of the time, and the privileged expert executes the shortest path with full spatial observability.

Key Insights and Ideas

  • Offline Data as an Implicit Structural Regularizer: Observational data cannot identify causal actions on its own, but it severely restricts the family of plausible latent transition dynamics $q(z' \mid z, a)$ and observation models $q(o \mid z)$. Fitting the observational data regularizes the interventional world model without imposing brittle, explicit bounds.
  • Agnostic to Demonstrator Quality: Unlike standard imitation learning, the method does not assume the privileged demonstrator is optimal or benevolent. Across experiments, the framework succeeded regardless of whether the demonstrator was expert, adversarial, or noisy.
  • Failures of Naive Pooling: Naively treating confounded demonstrations as standard data induces persistent bias. As shown in the experiments, naive pooling often underperforms training on small amounts of purely online data because the agent internalizes the demonstrator's confounding.

Key Results

  • Two Orders of Magnitude Sample Reduction: In the Gridworld benchmark, the augmented causal model learned to navigate past the wall and achieve positive rewards with only $2^7 = 128$ interventional samples. Both the baseline trained on purely interventional data (no obs) and the naive pooling baseline required $2^9 = 512$ samples to begin seeing positive rewards.
  • Superior Transition Estimation: In the Door and Tiger environments, the Jensen-Shannon (JS) divergence between the true and recovered causal transition models was significantly lower (Wilcoxon signed-rank test, $p < 0.05$) for the proposed method compared to baselines in the low-sample regime.
  • Robustness to Extreme Confounding: In the Door problem, even when the demonstrator was "perfectly bad" or heavily biased toward suboptimal actions, the augmented model accurately recovered the true underlying transition probabilities, whereas naive merging collapsed.

Limitations and Future Work

  • Scalability of Latent Inference: The empirical evaluation used discrete tabular representations for latent spaces. Scaling to complex, high-dimensional observations (e.g., pixels) will require integrating modern discrete variational world models (such as Dreamer-style architectures).
  • Passive vs. Active Exploration: The framework currently treats interventional data collection as passive random exploration; incorporating causal uncertainty to actively guide online exploration remains unexplored.
  • Single Demonstrator Regime: The theory was evaluated assuming a single observational policy regime ($I=0$). The authors note that extending the framework to multiple observational regimes (e.g., observing multiple distinct human actors) could yield even stronger regularizing constraints.

Summary updated

BibTeX
@inproceedings{gasse2022causal,
  author = {Maxime Gasse and Damien GRASSET and Guillaume Gaudron and Pierre-Yves Oudeyer},
  title = {{Causal Reinforcement Learning using Observational and Interventional Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=RW_GTtTfHJ6},
}
Figure