TL;DR
This paper introduces Causal DQN, a novel deep reinforcement learning algorithm designed to learn effective policies from biased, off-policy data containing unobserved confounders. By extending the Bellman equation to a "Causal Bellman Optimality Equation," the authors enable agents to find safe, robust policies that account for the worst-case environment compatible with their limited observations. This approach consistently outperforms standard DQN baselines across twelve confounded Atari games.
What Problem Does This Paper Address?
Standard reinforcement learning (RL) algorithms, including the famous Deep Q-Network (DQN), rely on a critical assumption: No Unmeasured Confounders (NUC). This assumes that all variables influencing both the agent's actions and the resulting rewards or states are fully observed.
In the real world, this rarely holds. Imagine a "demonstrator" agent (like a human expert or a more advanced AI) providing data for a learner. If the demonstrator has access to information the learner doesn't—such as an opponent's position hidden behind a mask—that hidden information becomes an unobserved confounder. This creates spurious correlations: the learner might see a specific action lead to a high reward and assume the action caused the reward, when in reality, the reward was caused by a hidden factor the demonstrator was reacting to.
When NUC is violated, the true value of a policy becomes "non-identifiable," meaning the data alone isn't enough to determine the best move. Standard RL agents often fail to converge or learn "delusional" policies in these settings.
Methods
The authors propose Causal DQN, which shifts the learning objective from finding the expected optimal policy to finding a pessimistic lower bound of the optimal value function.
- Confounded MDP (CMDP): They formalize the environment as a CMDP, explicitly modeling unobserved exogenous noise that influences transitions, policies, and rewards.
- Causal Bellman Optimality Equation: The core innovation is a new update rule. When the learner's target action matches the action taken by the demonstrator in the data, it uses the standard Bellman update. However, when they mismatch, the algorithm assumes a "worst-case" scenario for the unobserved parts of the environment.
- Pessimistic Learning: By optimizing for the worst-case environment compatible with the observations, the agent learns a "safe" policy. This ensures that the agent's performance in the real (ground-truth) environment is at least as good as its lower-bound estimate.
Datasets and Experimental Setup
The researchers evaluated their approach on twelve popular Atari games from the Gymnasium benchmark (including Pong, Boxing, Gopher, ChopperCommand, and Seaquest).
To create a confounded setting, they used a "demonstrator" agent (a high-performing actor-critic model) that had access to the full game screen. They then provided the learner with masked versions of these games, where critical information—like scores, opponent positions, or mini-maps—was hidden. This forced the learner to deal with unobserved confounding, as the demonstrator's actions were based on visual data the learner could not see.
Key Results
Causal DQN consistently dominated standard DQN, LSTM-based DQN, and "Interventional" DQN (which learns from its own experience but with masked inputs).
- Performance: Causal DQN achieved a normalized mean return of 1.04 and an Interquartile Mean (IQM) of 1.02 across the 12 games, where 1.0 represents the performance of the full-observation expert.
- Robustness: In games like Pong, while standard DQNs failed to learn anything useful from the masked data, Causal DQN converged to a perfect score by learning a conservative policy that focused solely on tracking the ball.
Key Insights and Ideas
- The Scaling Law Blind Spot: The authors argue that simply "scaling up" models and datasets doesn't solve confounding. In fact, training larger models on confounded data can actually amplify biases, leading to policies that are efficient at exploiting spurious correlations but fail in reality.
- Pessimism as a Feature, Not a Bug: In non-identifiable settings, being "optimistic under uncertainty" (a common RL trope) can be dangerous. Causal DQN's pessimism provides a mathematical guarantee: the learned policy will perform at least as well as the calculated lower bound in the true environment.
- Beating the Expert with Less Info: Surprisingly, in 7 out of 12 games, Causal DQN outperformed the demonstrator that had full observations. This suggests that the demonstrator had overfitted to spurious visual features (like the scoreboard), while Causal DQN's robust abstraction focused only on the essential causal drivers of the game (like the ball and the player's paddle).
Limitations and Future Work
- Single-Step Focus: The current derivation applies to single-step Q-value functions. Extending this to multi-step returns, eligibility traces, or advantage-based methods (like PPO) is a key next step.
- Support Constraints: The algorithm cannot learn effective behaviors if the demonstrator's data has "zero support" in the areas the learner can see. For example, if a demonstrator only ever fights in the right half of a screen, and the learner can only see the left half, the learner has no data to work with.
- Deterministic Limits: The authors noted that deterministic DQN policies might struggle in highly stochastic or multi-modal environments where a "distributional" approach might be more appropriate.
Summary updated