Improving PAC Exploration Using the Median Of Means

Jason Pazis, Ronald Parr, Jonathan P. HowNeurIPS 2016

Authors: Jason Pazis, Ronald Parr, and Jonathan P. How (NIPS 2016)

Introduction

In reinforcement learning (RL), balancing exploration and exploitation is a fundamental challenge. Researchers often rely on the PAC (Probably Approximately Correct) framework to guarantee that an algorithm will find a near-optimal policy within a reasonable number of samples. However, standard PAC bounds are notoriously pessimistic, relying heavily on the maximum possible reward range. This paper introduces Median-PAC, an algorithm that leverages the "median of means" estimator to drastically improve exploration efficiency. Notably, it is the first RL algorithm with theoretical guarantees capable of handling unbounded rewards by focusing on the variance of the environment rather than its maximum possible reward.

The Problem: Limitations of Standard PAC Bounds

Traditional PAC bounds depend heavily on $Q_{max}$—the maximum possible value an agent can achieve. If an environment features a massive range of potential rewards, or if the rewards are entirely unbounded, standard algorithms require an astronomical number of samples to guarantee success.

The authors identify a critical disconnect: while the range of rewards in an environment might be huge, the variance of the Bellman operator (the core mathematical update in RL) is often quite small. For instance, in a flight control system, an action rarely results in a 50% chance of a perfect landing and a 50% chance of a catastrophic crash; outcomes are typically much more consistent. Standard algorithms fail to exploit this low variance, leading to inefficient exploration.

Methodology: The Median of Means Estimator

To overcome the limitations of standard averaging, the authors apply the Median of Means (MoM) estimator to the Bellman update.

  1. The Median Trick: Instead of calculating a simple average of $n$ samples, the algorithm splits the samples into $k$ smaller subsets. It calculates the mean of each subset and then returns the median of those means.
  2. Robustness and Concentration: Simple averages are highly sensitive to outliers and require a strictly bounded range to provide strong statistical guarantees (typically via Hoeffding’s inequality). In contrast, the MoM estimator provides "exponential concentration"—meaning it converges to the true value very quickly—while only requiring that the data has a finite variance.
  3. Independent Batching: To ensure the mathematical proofs hold, the samples must remain independent. Median-PAC processes samples in batches that grow by powers of two. When a new, larger batch is completed, the old samples are discarded to maintain the integrity of the statistical estimator.

Experimental Setup: The Gridworld Benchmark

The authors evaluated Median-PAC on a custom 5x5 Gridworld benchmark specifically designed to expose the weaknesses of standard averaging techniques.

In this environment, most actions result in a standard reward of 0 or 1. However, there is a rare (1%) "self-transition" that grants a massive reward of 100. A standard algorithm using simple averages will occasionally experience this rare +100 reward and "overfit" to it, mistakenly concluding that staying in one spot is a better strategy than progressing toward the actual goal.

Key Insights and Results

  • Variance Over Range: The core theoretical breakthrough is proving that sample complexity should scale with the variance ($\sigma^2$) of a state-action pair, rather than the maximum possible value ($Q_{max}^2$). In low-variance environments, this yields a massive reduction in the number of samples required for exploration.
  • Breaking the Bounded Reward Barrier: Median-PAC is the first PAC-MDP algorithm that remains theoretically sound even if rewards are unbounded, provided the variance remains finite. This expands the applicability of RL to domains with "long-tail" distributions, such as financial markets or rare engineering failure modes.
  • Worst-Case Parity: Even in the worst-case scenario where variance is maximized, Median-PAC matches the performance guarantees of the best existing PAC algorithms.
  • Empirical Success: In the Gridworld experiment, standard average-based algorithms were frequently derailed by the rare high-reward transitions, resulting in sub-optimal policies. Median-PAC, naturally robust to outliers, consistently ignored these distractions and successfully navigated to the goal.

Limitations and Future Directions

While Median-PAC represents a significant theoretical step forward, the authors note a few limitations:

  • Sample Inefficiency from Discarding: To satisfy the strict requirement for independent samples in the proofs, the algorithm discards old data when a new batch is ready. Finding a method to utilize all historical data without breaking the theoretical guarantees is a primary area for future work.
  • Discrete Focus: The primary proofs and experiments are centered on discrete state-action spaces, though the authors suggest the underlying logic is extensible to continuous states.
  • Parameter Tuning: The algorithm introduces new hyperparameters, such as $k_m$ (the number of subsets for the median calculation). While the paper provides theoretical optimal values, practical deployments may require heuristic tuning to perfectly balance robustness and learning speed.

Summary updated

BibTeX
@inproceedings{pazis2016improving,
  author = {Jason Pazis and Ronald Parr and Jonathan P. How},
  title = {{Improving PAC Exploration Using the Median Of Means}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=HJbcgt-_Zr},
}
Figure