High-confidence error estimates for learned value functions

Touqir Sajed, Wesley Chung, Martha White

Introduction

In reinforcement learning (RL), the value function—the agent's estimate of cumulative future rewards—serves as the cornerstone for decision-making. However, benchmarking these functions remains a significant challenge. In complex or continuous environments, the "true" value function ($v^*$) is unknown, forcing researchers to rely on empirical rollouts. This paper addresses the lack of statistical rigor in current evaluation practices by introducing a framework for high-confidence error estimation.

The Problem: Evaluating Without Ground Truth

Standard evaluation often involves a fixed number of rollouts, which provides an estimate but lacks a guarantee of accuracy. In high-variance environments, a small number of samples can lead to misleadingly optimistic or pessimistic results. To move beyond "rules of thumb," a formal method is required to bound the error between a learned value function ($\hat{v}$) and the true values ($v^*$).

Methodology: A Rigorous Framework

The authors propose a three-part approach to provide high-confidence bounds on value function error.

1. Clipped Error Metric

Instead of Mean Squared Error, which is sensitive to outliers, the authors utilize Clipped Mean Absolute Percentage Value Error (Clipped MAPVE). This metric measures relative error and applies a "clip" to prevent extreme values from distorting the overall performance signal.

2. Error Decomposition

The total estimation error is decomposed into three components:

  • State Sampling Error: Arising from evaluating only a subset of states ($m$).
  • Truncation Error: Resulting from finite-length rollouts ($l$) instead of infinite horizons.
  • Estimation Error: Stemming from the variance of rewards observed during simulations.
Notation and definitions for value function error estimation.

3. The EBGStop Algorithm

To operationalize these bounds, the authors adapt the Empirical Bernstein Stopping (EBGStop) rule. Rather than using a fixed number of rollouts, EBGStop continues sampling until the statistical confidence interval around the error estimate meets a pre-defined threshold. This ensures that the resulting estimate is accurate with a probability of at least $1 - \delta$.

Empirical Validation

The framework was tested on two classic benchmarks: Mountain Car (continuous state) and Puddle World (high-variance rewards). These environments allowed the authors to verify theoretical bounds against known approximations of $v^*$.

Key findings include:

  • Precision Costs: Increasing accuracy requirements leads to an exponential increase in the required number of samples. Moving from a 5% to a 1% error tolerance can require 10x to 100x more rollouts.
  • Variance Impact: In Puddle World, the high variance of negative rewards necessitated up to $10^6$ samples to achieve confidence, highlighting the inadequacy of the 10–500 rollouts typically seen in literature.
  • Efficiency Gap: While EBGStop provides safety, it is currently 10 to 100 times less efficient than an "ideal" bootstrap method, suggesting a significant opportunity for more sample-efficient stopping rules.

Conclusion and Future Work

This research provides a mathematically sound foundation for RL benchmarking. While the computational cost of high-confidence estimates is currently high, the framework exposes the "intuition gap" in current practices. Future work will focus on optimizing state distribution sampling and developing more efficient stopping rules to make high-confidence evaluation practical for slow, high-fidelity simulators.

Summary updated

BibTeX
@inproceedings{sajed2018high,
  author = {Touqir Sajed and Wesley Chung and Martha White},
  title = {{High-confidence error estimates for learned value functions}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2018},
}
Figure