Introduction: The Confounding Challenge in Offline RL
Offline reinforcement learning (RL) holds immense promise for high-stakes domains where real-time exploration is impossible, such as personalized medicine or economic policy. In these settings, an agent must learn an optimal policy from a static dataset of historical interactions. However, a fundamental hurdle exists: Unobserved Confounding (UC).
In observational datasets, decisions are often influenced by factors not recorded in the data. For instance, in a clinical setting, a physician might choose a specific Neonatal Intensive Care Unit (NICU) level based on a subtle visual cue from the infant. This unrecorded severity level affects both the treatment choice and the eventual health outcome. Standard RL algorithms, which assume all relevant variables are observed, will incorrectly attribute the outcome to the treatment itself, leading to biased and potentially harmful policies.
The CMDP-IV Framework
To address this, the authors introduce the Confounded Markov Decision Process with Instrumental Variables (CMDP-IV). This framework incorporates Instrumental Variables (IVs)—external factors that influence the action taken but have no direct effect on the outcome except through that action. Examples include randomized recommendations in a digital system or differential travel times to a facility.
As shown in the causal graph above, the transition dynamics are modeled with an additive noise structure where the next state is a function of the current state and action, plus an additive unobserved confounder. The IV ($z_h$) provides a way to "isolate" the variation in the action $a_h$ that is independent of the confounder $e_h$, allowing for the identification of the true transition function.
Instrumental Variable Value Iteration (IVVI)
The proposed solution, Instrumental Variable Value Iteration (IVVI), operates in two distinct phases:
Phase 1: Model Estimation via Minimax Optimization
The core challenge is to estimate the transition function from confounded data. The authors leverage a Conditional Moment Restriction (CMR): since the IV is independent of the confounder, the expected value of the next state given the IV should match the expected value of the transition function given the IV. Instead of using traditional, computationally intensive econometric estimators, IVVI reformulates this CMR as a primal-dual minimax problem. This allows the use of Stochastic Gradient Descent-Ascent (SGDA), making the algorithm scalable to large datasets and high-dimensional state spaces.
Phase 2: Policy Planning
Once a deconfounded transition model is estimated, the algorithm performs standard value iteration. Specifically, it uses the SPEDE planning algorithm on the learned model to derive the optimal policy. This separation of estimation and planning ensures that the policy is built on a "clean" understanding of the environment's dynamics.
Key Results and Insights
The authors provide the first sample complexity bounds for IV-aided offline RL, demonstrating that an $\epsilon$-optimal policy can be found with $O(\epsilon^{-2})$ samples, provided the instrument is sufficiently "strong" (i.e., it has a significant influence on the behavior policy).
Empirically, IVVI was tested on synthetic control tasks and a semi-synthetic recommender system based on MovieLens 1M. In these experiments:
- IVVI successfully recovered near-optimal policies, matching the performance of an "oracle" that had access to the true, unconfounded dynamics.
- Standard baselines failed. Methods like Ordinary Least Squares (OLS) that ignore confounding produced biased models. These errors compounded over the sequential steps of the MDP, leading to policies that performed significantly worse than the original behavior policy.
Conclusion and Future Directions
IVVI represents a significant step toward making offline RL robust for real-world applications. By bridging the gap between econometrics and reinforcement learning, it provides a provably correct way to handle unobserved confounders.
However, limitations remain. The current framework assumes additive noise in the transitions and that confounders are independent across time steps. Future research is needed to address global confounders that persist throughout an episode and to extend these methods to fully general, non-additive causal dynamics.
Summary updated