Empirical Study of Off-Policy Policy Evaluation for Reinforcement Learning

Cameron Voloshin, Hoang M. Le, Nan Jiang, Yisong Yue

This paper introduces the Caltech OPE Benchmarking Suite (COBS), a comprehensive framework designed to stress-test Off-Policy Policy Evaluation (OPE) methods. By evaluating 33 different estimators across diverse environments, the authors provide a systematic "recipe" for practitioners to select the most reliable evaluation method based on their specific problem constraints.

TL;DR

The authors present COBS, an open-source benchmark that systematically evaluates OPE methods across factors like horizon length, stochasticity, and policy mismatch. Their findings challenge common wisdom—showing that Direct Methods are often more robust than Hybrid ones—and culminate in a practical decision tree for choosing OPE estimators in real-world applications.

What Problem Does This Paper Address?

In Reinforcement Learning (RL), we often want to know how well a new "target" policy will perform before deploying it. This is Off-Policy Policy Evaluation (OPE): estimating a policy's value using only historical data collected by a different "behavior" policy. This is critical for safety-sensitive fields like healthcare or autonomous driving, where testing a new, unproven policy in the real world could be catastrophic.

While many OPE methods have been proposed recently, the field lacks a standardized way to compare them. Existing benchmarks often focus on learning (Offline RL) rather than evaluation and don't allow researchers to isolate the specific factors—like how much the behavior and target policies differ—that cause OPE methods to fail.

Methods

The authors categorize OPE methods into three families:

  1. Inverse Propensity Scoring (IPS): Reweights rewards based on the probability ratio between the target and behavior policies.
  2. Direct Methods (DM): Uses regression to directly estimate the value function (e.g., Fitted Q Evaluation).
  3. Hybrid Methods (HM): Combines IPS and DM to balance bias and variance (e.g., Doubly Robust estimators).

COBS evaluates 33 different methods by providing "control knobs" for experimental design. Unlike static datasets, COBS can generate data on-the-fly to test specific dimensions of difficulty, such as increasing the "distance" between policies or changing the state representation from simple coordinates to raw pixels.

Datasets

The study utilizes eight distinct domains, ranging from simple toy problems to complex high-dimensional tasks:

  • Standard RL Benchmarks: OpenAI Gym's Mountain Car and Atari (Enduro).
  • Custom Controlled Domains: Graph, Graph-POMDP, and Gridworld.
  • Representation Variants: The authors created pixel-based versions of standard tasks (Pixel-Gridworld, Pixel-Mountain Car) to test how high-dimensional inputs affect OPE performance.
Figure 1: Depicting one of the dimensions which COBS provides control. For the Mountain Car en- vironment, we can select either a tabular, standard coordinate-based, or pixel-based representation of the state while holding other factors fixed.

Key Insights and Ideas

  • No "Silver Bullet": No single OPE method consistently outperforms the others. Performance is highly dependent on the environment's characteristics.
  • The Mismatch Menace: While "the curse of horizon" (exponential error growth in long episodes) is a well-known OPE killer, the authors found that policy mismatch—the divergence between how the data was collected and how the target policy acts—is often a much more significant source of error.
  • Direct Methods are Surprisingly Strong: Common wisdom suggests Hybrid Methods (HM) are superior because they are "doubly robust." However, in high-dimensional settings, stochastic environments, or when the behavior policy is unknown, DMs often outperform HMs because they avoid the high variance associated with importance sampling.
  • A Practical Recipe: The authors distilled their results into a decision tree to help engineers choose an estimator based on their specific scenario (e.g., "Is my environment stochastic?", "Is my representation potentially misspecified?").
Figure 2: General Guideline Decision Tree.

Key Results

The authors used "Near-top Frequency"—how often a method is within 10% of the best performer—to rank the estimators.

  • Top Performers: MAGIC FQE (a hybrid method) was the most frequent winner at 30%, followed closely by Fitted Q Evaluation (FQE), a Direct Method, at 23.7%.
  • Infinite Horizon (IH) Estimators: These were highly competitive in long-horizon tasks with mild policy mismatch, particularly in tabular settings.
  • Model-Based vs. Model-Free: Model-based direct methods (AM) performed poorly in high-dimensional settings compared to model-free counterparts like FQE, as small errors in transition dynamics modeling compound over time.
Figure 3 (Right): Top performing OPE methods

Limitations and Future Work

The authors identify several gaps in current OPE research that COBS highlights:

  • High-Dimensional, Short-Horizon Tasks: There is a lack of natural benchmarks for complex tasks that have short episode lengths (similar to contextual bandits but with state transitions).
  • Stochasticity in High Dimensions: Most high-dimensional benchmarks (like Atari) are deterministic, leaving the "double sampling problem" in stochastic, high-dimensional spaces under-explored.
  • Confounding Variables: Real-world data often contains variables not recorded in the logs (e.g., human intuition), which violates standard OPE assumptions. Integrating causal inference techniques is a suggested future direction.

Summary updated

BibTeX
@inproceedings{voloshin2021empirical,
  author = {Cameron Voloshin and Hoang M. 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