Off-Policy Evaluation in Partially Observable Environments

Guy Tennenholtz, Shie Mannor, Uri Shalit

Abstract

This work studies the problem of batch off-policy evaluation for Reinforcement Learning in partially observable environments. Off-policy evaluation under partial observability is inherently prone to bias, with risk of arbitrarily large errors. We define the problem of off-policy evaluation for Partially Observable Markov Decision Processes (POMDPs) and establish what we believe is the first off-policy evaluation result for POMDPs. In addition, we formulate a model in which observed and unobserved variables are decoupled into two dynamic processes, called a Decoupled POMDP. We show how off-policy evaluation can be performed under this new model, mitigating estimation errors inherent to general POMDPs. We demonstrate the pitfalls of off-policy evaluation in POMDPs using a well-known off-policy method, Importance Sampling, and compare it with our result on synthetic medical data.

Introduction

Off-Policy Evaluation (OPE) is a critical component for deploying Reinforcement Learning (RL) in safety-critical domains such as healthcare and autonomous driving. The goal is to estimate the performance of a new "evaluation" policy using historical data generated by a different "behavior" policy. Most existing OPE methods assume full observability, where the agent has access to all variables that influenced the behavior policy's decisions.

However, real-world environments are often partially observable. In medical settings, for instance, a clinician's decision might be influenced by factors not recorded in electronic health records, such as a patient's physical appearance or subjective symptoms. These unobserved variables act as confounders, introducing significant bias into standard OPE estimators. This paper addresses the challenge of OPE in Partially Observable Markov Decision Processes (POMDPs), where hidden states can lead traditional methods like Importance Sampling (IS) to fail catastrophically.

Theoretical Framework

General POMDP Evaluation

The authors establish a formal method for OPE in general POMDPs. The key insight is that while the hidden state $u_t$ is unobservable, its influence is reflected in the temporal dynamics of the system. Under specific invertibility conditions on the transition and observation matrices, the sequence of past and current observations can serve as a proxy for the hidden state. By applying matrix inversion to conditional distributions, the authors derive a weighting scheme that enables unbiased policy value estimation.

Decoupled POMDPs

To improve scalability and robustness, the paper introduces the Decoupled POMDP model. In this framework, the state space is factored into two distinct but interacting Markov processes: one observed and one unobserved. This structure allows for more efficient estimation because the complexity of the required matrix operations scales with the size of the hidden state space rather than the full observation space.

Graphical models for (a) POMDP, (b) Decoupled POMDP, and (c) the evaluation policy structure.

The Failure of Importance Sampling

The paper formally analyzes why standard Importance Sampling (IS) is unsuitable for POMDPs. IS relies on the ratio of the evaluation policy to the behavior policy probabilities. In a POMDP, the behavior policy depends on hidden states, making the true probability ratio impossible to compute from observed data alone. Ignoring these hidden variables leads to an "omitted variable bias" that can grow arbitrarily large.

Empirical Evaluation

Synthetic Medical Environment

The proposed methods were tested in a synthetic medical environment designed to simulate confounding. The environment includes an observed medical state and unobserved factors such as a doctor's subjective ranking and mood. A confounding parameter $\alpha \in [0, 1]$ was used to control the degree to which these hidden variables influenced rewards and actions. The evaluation used 10 million trajectories over a 4-step horizon.

Key Results

The experimental results demonstrate a stark contrast between the proposed estimator and traditional IS.

Comparison of cumulative reward estimates across three environments as a function of the confounding parameter $\alpha$.

As shown in the results, the estimator based on Theorem 2 (Decoupled POMDP) remains accurate and stable across all levels of confounding. In contrast, Importance Sampling exhibits severe bias as $\alpha$ increases. In some scenarios, IS incorrectly suggests that the evaluation policy is improving when its true performance is actually declining. The Decoupled POMDP approach also proved more robust to finite-sample noise compared to the general POMDP method due to its reduced matrix requirements.

Conclusion and Future Work

This research provides a foundational theoretical framework for OPE under partial observability. By leveraging temporal dynamics as a proxy for hidden states, it is possible to achieve unbiased evaluation even in the presence of unobserved confounders.

While a major theoretical leap, the current proofs focus on discrete (tabular) state spaces. Future work will focus on scaling these results to continuous or high-dimensional spaces. Integrating these theoretical insights with deep learning and latent space embeddings could enable the application of robust OPE to complex, real-world reinforcement learning benchmarks.

Summary updated

BibTeX
@inproceedings{tennenholtz2020off,
  author = {Guy Tennenholtz and Shie Mannor and Uri Shalit},
  title = {{Off-Policy Evaluation in Partially Observable Environments}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i06.6590},
}
Figure