HAVER: Instance-Dependent Error Bounds for Maximum Mean Estimation and Applications to Q-Learning

Tuan Ngo Nguyen, Kwang-Sung JunarXiv 2024 · DOI

Introduction

In many machine learning domains, such as reinforcement learning (RL) and search, agents must estimate the maximum expected value among several noisy options. This is known as the Maximum Mean Estimation (MME) problem. For instance, in Q-learning, an agent updates a state's value by estimating the maximum expected reward of all possible actions in the subsequent state. Similarly, Monte Carlo Tree Search (MCTS) evaluates nodes by estimating the maximum value of their children.

The standard approach, the Largest Empirical Mean (LEM), simply selects the maximum observed average. However, LEM is notoriously over-optimistic, exhibiting significant positive bias when sample sizes are small or the number of choices is large. While alternatives like the Double Estimator (DE) aim to mitigate this bias, they often lack precise theoretical guarantees regarding their Mean Squared Error (MSE). This paper introduces HAVER (Head AVERaging), a novel algorithm that provides the first instance-dependent error bounds for MME.

The HAVER Algorithm

HAVER balances pessimism with variance reduction through a three-step process designed to avoid the "optimizer's curse":

  1. The Pessimistic Pivot: The algorithm identifies a "pivot arm" using a Maximum Lower Confidence Bound (MLCB) approach. This ensures the estimator's performance is anchored by a conservative estimate of the best arm.
  2. Candidate Set Formation: It identifies a set of "good" arms—those whose empirical means are sufficiently close to the pivot and have adequate sample sizes.
  3. Weighted Averaging: Instead of relying on a single top arm, HAVER computes a weighted average of the means within the candidate set.

By averaging multiple "nearly-best" arms, HAVER reduces the overall variance of the estimate without introducing the massive bias characteristic of LEM.

Empirical Evaluation of Estimation Accuracy

In bandit experiments simulating internet ad scenarios, HAVER demonstrated superior accuracy compared to LEM, DE, and Weighted Estimators (WE). A key theoretical and empirical finding is that HAVER can achieve a lower MSE than an "oracle" that already knows which distribution is the best. When multiple arms have means close to the maximum, HAVER's averaging mechanism reduces variance more effectively than selecting the single best arm.

MSE decomposition (bias² and variance) for different estimators across varying sample sizes. HAVER consistently achieves the lowest total MSE.

As shown in the figure above, HAVER maintains a lower total MSE by significantly reducing variance while keeping bias in check, especially as the number of samples increases.

Applications in Reinforcement Learning

The benefits of HAVER extend directly to RL frameworks like Q-learning and MCTS. In evaluations using Grid World and FrozenLake benchmarks, HAVER led to higher mean rewards per step. The algorithm's advantage is particularly pronounced in "inflated" environments where actions are duplicated, as it converges to the true mean much faster than its competitors.

Mean reward per step comparison in a reinforcement learning task. HAVER outperforms traditional estimators like LEM and DE, converging toward the optimal reward faster.

Conclusion and Future Work

HAVER represents a significant step forward in MME by moving beyond worst-case analysis to provide instance-dependent bounds. By leveraging the "pessimism principle" and strategic averaging, it avoids over-optimism and accelerates learning when many options are competitive.

Future research will focus on extending HAVER to handle non-stationary distributions, which are common in real-world RL where the sample distribution changes as the agent learns. Additionally, refining the tuning of confidence width constants will help optimize HAVER for specific high-stakes applications.

Summary updated

BibTeX
@misc{nguyen2024haver,
  author = {Tuan Ngo Nguyen and Kwang-Sung Jun},
  title = {{HAVER: Instance-Dependent Error Bounds for Maximum Mean Estimation and Applications to Q-Learning}},
  year = {2024},
  eprint = {2411.00405},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.00405},
}
Figure