High Confidence Off-Policy Evaluation with Models

Josiah P. Hanna, Peter Stone, Scott NiekumarXiv 2016

Abstract

Evaluating a new reinforcement learning policy using historical data (off-policy evaluation) usually requires massive amounts of data to produce reliable confidence intervals. This paper introduces two new methods that combine bootstrapping with learned environment models to produce much tighter, more data-efficient lower bounds on policy performance. By leveraging models as variance reducers, these methods make it safer to deploy RL agents in real-world, safety-critical scenarios.

Introduction

In Reinforcement Learning (RL), Off-Policy Evaluation (OPE) answers the critical question: "How well will this new policy perform if deployed?" For safety-critical applications like medical robotics or autonomous manufacturing, point estimates are insufficient. We require high-confidence lower bounds to ensure that a policy will not fail catastrophically upon deployment.

The standard approach, Importance Sampling (IS), re-weights historical data to match the target policy. While unbiased, IS suffers from extreme variance, often requiring a prohibitively large amount of data to produce a "safe" lower bound using standard concentration inequalities.

Proposed Methods

To address the data-inefficiency of model-free bounds, the authors propose moving away from conservative concentration inequalities toward approximate but data-efficient bounds using bootstrapping. They introduce two primary algorithms:

  1. Model-based Bootstrapping (MB-BOOTSTRAP): This method creates multiple resampled versions of the original dataset. For each resample, it learns a transition model and simulates the evaluation policy to estimate its value. The distribution of these estimates forms the confidence interval.
  2. Weighted Doubly Robust Bootstrapping (WDR-BOOTSTRAP): This combines bootstrapping with the Weighted Doubly Robust estimator. Here, the model acts as a control variate to reduce the variance of importance sampling. Crucially, WDR is statistically consistent; even with an imperfect model, the estimate converges to the true value as data increases.

Additionally, the authors derive a theoretical upper bound on model bias, helping researchers understand how inaccurate models might skew evaluations.

Key Insights: Models as Variance Reducers

A central insight of this work is that models do not need to be perfect to be useful. In WDR-BOOTSTRAP, the model's role is to "smooth out" the noisy weights inherent in importance sampling. This creates a favorable bias-variance trade-off: while pure model-based methods (MB-BOOTSTRAP) can be biased by model errors, WDR-BOOTSTRAP uses the model for efficiency while relying on the data for asymptotic accuracy.

Furthermore, theoretical analysis reveals that to minimize bias, models should be trained to minimize error specifically on the transitions the evaluation policy is likely to visit (Importance-Sampled Training Error), rather than just general transition error.

Experimental Results

The methods were evaluated on the Mountain Car and CliffWorld benchmarks.

Data Efficiency

In the Mountain Car environment, the proposed bootstrapping methods reached accurate lower bounds with orders of magnitude less data than standard importance sampling methods. As shown in the figure below, MB-Bootstrap and WDR-Bootstrap converge toward the true policy value $V(\pi_e)$ much faster than model-free baselines like PDIS or IS.

Normalized policy value vs. number of trajectories for the Mountain Car environment.

Safety and Reliability

For these methods to be practical in safety-critical domains, they must reliably approximate the desired confidence level. The authors measured the "Lower Bound Error Rate"—the frequency with which the true policy value was lower than the estimated bound. For a 95% confidence interval, this rate should ideally stay below $\delta = 0.05$.

Lower bound error rate in CliffWorld. The bootstrapping methods successfully maintain error rates near or below the target $\delta = 0.05$.

In CliffWorld, even when using an "incorrect" model class (e.g., polynomial regression for linear dynamics), WDR-BOOTSTRAP remained robust, eventually outperforming model-free baselines as more data arrived.

Conclusion

By combining bootstrapping with learned models, we can significantly reduce the data requirements for high-confidence off-policy evaluation. While bootstrapping provides asymptotic rather than hard finite-sample guarantees, the empirical results suggest these methods are a powerful tool for safer RL deployment. Future work will focus on automatically detecting model quality to further mitigate bias in extreme scenarios.

Summary updated

BibTeX
@misc{hanna2016high,
  author = {Josiah P. Hanna and Peter Stone and Scott Niekum},
  title = {{High Confidence Off-Policy Evaluation with Models}},
  year = {2016},
  eprint = {1606.06126},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.06126},
}
Figure