Offline Policy Evaluation and Optimization Under Confounding

Chinmaya Kausik, Yangyi Lu, Kevin Tan, Maggie Makar, Yixin Wang, Ambuj Tewari

Abstract

Evaluating and optimizing policies in the presence of unobserved confounders is a problem of growing interest in offline reinforcement learning. Using conventional methods for offline RL in the presence of confounding can not only lead to poor decisions and poor policies, but also have disastrous effects in critical applications such as healthcare and education. We map out the landscape of offline policy evaluation for confounded MDPs, distinguishing assumptions on confounding based on whether they are memoryless and on their effect on the data-collection policies. We characterize settings where consistent value estimates are provably not achievable, and provide algorithms with guarantees to instead estimate lower bounds on the value. When consistent estimates are achievable, we provide algorithms for value estimation with sample complexity guarantees. We also present new algorithms for offline policy improvement and prove local convergence guarantees. Finally, we experimentally evaluate our algorithms on both a gridworld environment and a simulated healthcare setting of managing sepsis patients. In gridworld, our model-based method provides tighter lower bounds than existing methods, while in the sepsis simulator, we demonstrate the effectiveness of our method and investigate the importance of a clustering sub-routine.

Introduction

In offline reinforcement learning (RL), we aim to learn optimal policies from historical data without active exploration. A significant challenge in this setting is confounding: unobserved variables that influence both the historical behavior policy and the resulting state transitions. For example, in healthcare, a patient's unrecorded genetic factors might influence both the treatment they received and their subsequent health outcomes.

Ignoring these hidden factors leads to biased policy evaluations, which can be catastrophic in high-stakes domains. While much prior work assumes "memoryless" confounders that reset at each time step, this paper addresses the more realistic scenario where confounders have memory, persisting or evolving throughout an episode. We prove that such memory makes the problem significantly harder, as standard evaluation methods can incur errors that grow linearly with the time horizon.

Methods

We propose several novel approaches to handle confounded Markov Decision Processes (MDPs):

  1. Model-Based OPE: Instead of searching for the worst-case behavior policy, this method identifies the worst-case transition dynamics consistent with observed data and a sensitivity constraint ($\Gamma$). This constraint limits the potential influence of hidden variables on the original data collection.
  2. Clustering-Based OPE: For "global confounders"—hidden factors fixed for an entire episode (e.g., a chronic condition)—we employ a clustering algorithm to group similar trajectories. This "un-hides" latent groups, enabling consistent point estimates of policy values.
  3. Confounded Policy Gradients: We extend these evaluation techniques to optimization, developing policy gradient algorithms that improve policies while accounting for latent confounding.

Experiments and Results

We evaluated our methods on two environments: a 4x4 Gridworld with memoryless confounders and a Sepsis Simulator with a global hidden confounder (diabetes status).

Gridworld: Tighter Value Bounds

In the Gridworld benchmark, our model-based method was compared against existing state-of-the-art techniques like CFQE. As shown in Figure 1, searching for the worst-case transition model yields significantly tighter (higher) lower bounds on policy value across various sensitivity levels ($\Gamma$).

Model-based OPE provides tighter lower bounds than existing methods like CFQE in the Gridworld environment.

Sepsis Simulator: Global Confounding

In the Sepsis simulator, we investigated the effectiveness of our clustering-based approach. The results in Figure 6 demonstrate that clustering trajectories effectively recovers underlying structure, leading to lower OPE error and superior policy improvement compared to random initialization. This highlights the importance of the clustering sub-routine in complex, confounded medical scenarios.

Clustering performance, OPE error, and policy improvement in the Sepsis simulator, demonstrating the effectiveness of the proposed clustering-based approach.

Conclusion

This work provides a structured framework for RL under confounding, offering both theoretical insights and practical algorithms. We demonstrate that while general memory in confounders is challenging, "global" confounders represent a solvable middle ground through clustering. Future work includes extending these methods to high-dimensional continuous spaces using deep function approximation and addressing more complex, time-varying memory in confounders.

Summary updated

BibTeX
@inproceedings{kausik2024offline,
  author = {Chinmaya Kausik and Yangyi Lu and Kevin Tan and Maggie Makar and Yixin Wang and Ambuj Tewari},
  title = {{Offline Policy Evaluation and Optimization Under Confounding}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
  url = {https://openreview.net/forum?id=K9CR4lqScH},
}
Figure