Empirical Study of Off-Policy Policy Evaluation for Reinforcement Learning

Cameron Voloshin, Hoang Minh Le, Nan Jiang, Yisong Yue

TL;DR

This paper introduces COBS, a comprehensive benchmarking suite for Off-Policy Policy Evaluation (OPE) in Reinforcement Learning, designed to stress-test OPE methods across diverse experimental conditions. They reveal that no single OPE method consistently outperforms others, and provide practical guidelines for selecting the right method based on factors like representation mismatch, horizon length, and environment stochasticity.

What Problem Does This Paper Address?

Reinforcement Learning (RL) holds immense promise for safety-critical applications, but reliably deploying it requires accurately evaluating policies using historical data collected by different "behavior" policies. This is the core challenge of Off-Policy Policy Evaluation (OPE). The field has seen a surge of new OPE methods, but a lack of standardized, diverse benchmarks makes it difficult to compare them and understand their real-world performance. This paper addresses this gap by providing a flexible benchmarking framework and a systematic empirical study to guide practitioners and researchers.

Methods

The authors introduce the Caltech OPE Benchmarking Suite (COBS), a software package that allows for fine-grained control over experimental design. Unlike existing benchmarks that often rely on pre-collected datasets, COBS can generate data "on-the-fly" based on specific experimental criteria, such as the divergence between behavior and target policies. This allows for systematic stress-testing of OPE methods by manipulating key factors that influence performance.

They categorize OPE methods into three main families:

  • Inverse Propensity Scoring (IPS): Methods that reweight historical data based on importance sampling ratios.
  • Direct Methods (DM): Methods that directly estimate value functions or models.
  • Hybrid Methods (HM): Methods that combine aspects of IPS and DM, often aiming for unbiasedness with reduced variance (e.g., Doubly Robust estimators).

COBS includes a diverse set of 8 environments, some standard (like Mountain Car) and some newly designed, to cover a wide range of complexities in terms of dimensionality, stochasticity, reward sparsity, and policy mismatch.

Datasets

The paper introduces the Caltech OPE Benchmarking Suite (COBS), which includes 8 environments. These environments are designed to be flexible and allow for controlled generation of experimental data. Some of the environments are based on existing RL benchmarks (e.g., OpenAI Gym's Mountain Car, Atari's Enduro), while others are custom-designed to isolate specific factors like representation complexity (e.g., Graph, Gridworld, POMDP variants). The key innovation is the ability to generate data dynamically based on experimental criteria, rather than relying solely on static, pre-collected datasets.

Key Insights and Ideas

  • No Silver Bullet: There isn't a single OPE method that consistently outperforms all others across all scenarios. Performance is highly dependent on the experimental conditions.
  • Representation Matters: The choice of function class for approximating models or value functions can significantly impact performance, especially in high-dimensional or complex settings. Model misspecification can be a major hurdle.
  • Policy Mismatch is Crucial: The difference between the behavior policy (which generated the data) and the target policy (whose value is being estimated) is a critical factor. Methods that rely heavily on importance weights can struggle with significant policy mismatch.
  • Stochasticity is Challenging: Environments with stochastic transitions or rewards are generally harder for OPE methods, particularly for Hybrid Methods, which can amplify variance.
  • Beyond Horizon Length: While long horizons are known to be challenging for IPS methods, the degree of policy divergence can be an equally, if not more, important factor influencing performance.

Key Results

The empirical evaluation involved testing 33 different OPE methods across the 8 environments. Key findings include:

  • IPS Methods: Per-Decision Weighted Importance Sampling (PDWIS) tends to perform best among the IPS variants, especially in settings with mild policy mismatch.
  • Direct Methods: Fitted Q Evaluation (FQE) is often the best choice when data is limited. Q(λ) and IH (Minimax value interval) are competitive, especially in longer horizons and with high policy mismatch. However, IH can struggle in pixel-based domains due to challenges in choosing appropriate kernel functions.
  • Hybrid Methods: While often competitive, Hybrid Methods (like Doubly Robust) can underperform Direct Methods in scenarios with high dimensionality, long horizons, estimated behavior policies, or stochastic environments. WDR versions of HM often outperform DR, and MAGIC can further improve performance by adaptively switching between DR and DM.
  • Model-based methods (AM): These can be among the worst performing, especially in high-dimensional settings, as fitting the transition model is prone to errors that compound with long horizons.

Limitations and Future Work

  • Lack of High-Dimensional, Short-Horizon Benchmarks: The authors note a gap in existing benchmarks for short-horizon, high-dimensional RL tasks, suggesting a need for new environments in this space.
  • Missing Data Coverage: The assumption of full support (where the target policy's actions are always covered by the behavior policy) is often violated in practice. Future work could explore how to handle this and optimize the bias-variance trade-off.
  • Confounding Variables: Real-world data may be influenced by factors not recorded in the state, leading to confounding effects. Incorporating causal inference techniques is suggested.
  • Strategic Environments: Most OPE methods are designed for single-agent MDPs. Future research could explore OPE in more complex settings with non-stationary dynamics or strategic behavior from multiple agents.
  • Algorithmic Method Selection: While COBS provides guidelines, developing systematic techniques for selecting the best OPE method given specific problem characteristics (like quantifying model misspecification or data size) remains an open challenge.

Summary updated

BibTeX
@inproceedings{voloshin2021empirical,
  author = {Cameron Voloshin and Hoang Minh Le and Nan Jiang and Yisong Yue},
  title = {{Empirical Study of Off-Policy Policy Evaluation for Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=IsK8iKbL-I},
}
Figure