Why Online Reinforcement Learning is Causal
Oliver Schulte, Pascal Poupart
TL;DR
The paper investigates when causal modeling adds value to reinforcement learning by distinguishing online and offline settings. It argues that online RL yields inherently causal probabilities because agents learn from their own actions and observations, aligning conditional probabilities with interventional effects; offline RL, especially under partial observability, can exhibit confounding that requires causal models and counterfactual reasoning. Using causal Bayesian networks, SCMs, and dynamic decision networks, the authors formalize how interventions, what-if counterfactuals, and hindsight counterfactuals can be computed and related to traditional RL quantities, establishing conditions (notably action sufficiency and observation-equivalence in online learning) under which conditional and interventional probabilities coincide. The work provides a structured framework to analyze online/offline RL through a four-level causal hierarchy, demonstrates how to perform model-based evaluation with DDNs, and discusses future directions such as causal OPE, hindsight augmentation, and learning causal models from data. Overall, the results clarify when causal reasoning improves RL and outline practical steps for integrating causal models into online and offline RL pipelines to address distribution shift and counterfactual reasoning in decision making.
Abstract
Reinforcement learning (RL) and causal modelling naturally complement each other. The goal of causal modelling is to predict the effects of interventions in an environment, while the goal of reinforcement learning is to select interventions that maximize the rewards the agent receives from the environment. Reinforcement learning includes the two most powerful sources of information for estimating causal relationships: temporal ordering and the ability to act on an environment. This paper examines which reinforcement learning settings we can expect to benefit from causal modelling, and how. In online learning, the agent has the ability to interact directly with their environment, and learn from exploring it. Our main argument is that in online learning, conditional probabilities are causal, and therefore offline RL is the setting where causal learning has the most potential to make a difference. Essentially, the reason is that when an agent learns from their {\em own} experience, there are no unobserved confounders that influence both the agent's own exploratory actions and the rewards they receive. Our paper formalizes this argument. For offline RL, where an agent may and typically does learn from the experience of {\em others}, we describe previous and new methods for leveraging a causal model, including support for counterfactual queries.
