Ensemble Bootstrapping for Q-Learning

Oren Peer, Chen Tessler, Nadav Merlis, Ron Meir

Overview

Q-learning is notorious for overestimating action values, while Double Q-learning often swings too far the other way into underestimation. This paper introduces Ensemble Bootstrapped Q-Learning (EBQL), a method that uses an ensemble of $K$ estimators to find a "sweet spot" that minimizes mean squared error and reduces bias magnitude. The result is a more robust algorithm that significantly outperforms standard Deep Q-Networks (DQN) and Double-DQN on Atari benchmarks.

The Problem: The Optimizer's Curse

In Reinforcement Learning (RL), agents learn by "bootstrapping"—updating their current value estimates based on future value estimates. A core component of Q-learning is the maximization term: the agent assumes it will take the best possible action in the next state.

However, because these value estimates are noisy, the max operator introduces a positive estimation bias. If you have several noisy estimates of the same value, the maximum of those estimates will likely be higher than the true mean. This "optimizer's curse" can lead to sub-optimal policies.

While Double Q-learning (DQL) was designed to fix this by using two independent estimators (one to pick the best action, one to evaluate it), it often results in underestimation bias. The authors argue that both over- and under-estimation can degrade performance, and the real goal should be minimizing the total Mean Squared Error (MSE) of these estimates.

The Solution: Ensemble Bootstrapped Q-Learning

The authors propose the Ensemble Estimator (EE) and its RL counterpart, EBQL.

Instead of two sets of estimators, EBQL uses an ensemble of $K$ Q-functions. To update one Q-function in the ensemble, the agent uses that specific function to find the "best" action ($a^*$). It then calculates the target value by averaging the estimates of the other $K-1$ functions for that same action $a^*$.

By increasing the ensemble size $K$, the agent allocates more "votes" (and thus more data/averaging power) to the value estimation phase. This reduces the magnitude of the underestimation bias compared to DQL, leading to a more accurate value function.

Key Insights: The Proxy Identity and Optimal Splitting

The authors prove that an ensemble of size $K$ is mathematically equivalent to a "Weighted Double Estimator" that splits data unevenly. This allows them to use ensemble size as a tunable knob to balance the error from picking the wrong action versus the error from incorrectly valuing that action.

Optimal data split for action selection vs. value estimation

Theoretically and empirically, they show that the optimal split is almost always less than 50% for index selection. In other words, you need less data to figure out which action is best than you do to figure out how good it actually is. Standard Double Q-learning forces a 50/50 split, which is rarely optimal.

Experimental Results

The paper evaluates the algorithm on a custom tabular environment (Meta Chain MDP) and the Atari 2600 suite.

Correct action rate over episodes for varying ensemble sizes
  • Bias Reduction: In tabular experiments, as the ensemble size $K$ increases, the absolute bias of the value function decreases, leading to faster convergence to the "correct" action compared to standard Q-Learning and DQL.
  • Atari Performance: EBQL ($K=5$) outperformed both DQN and DDQN in 10 out of 11 tested Atari games.
  • Beating the Giants: Remarkably, in the "small-sample" regime (less than 20 million training steps), EBQL outperformed Rainbow, a much more complex algorithm that combines multiple RL improvements (like prioritized replay and distributional RL).

Limitations and Future Work

  • Fixed Ensemble Size: The paper uses a fixed $K$ throughout training. However, their theory suggests the "optimal" $K$ depends on the signal-to-noise ratio of the rewards, which changes as the agent learns. A dynamic ensemble size could be a powerful extension.
  • Computational Cost: Maintaining an ensemble of $K$ neural networks is more computationally expensive than a single network. While the authors used $K=5$, scaling to much larger ensembles might hit diminishing returns relative to the hardware requirements.
  • Exploration: For a fair comparison, the authors used standard $\epsilon$-greedy exploration. They note that ensembles are naturally suited for more advanced exploration (like Thompson Sampling), which they left for future research.

Summary updated

BibTeX
@inproceedings{peer2021ensemble,
  author = {Oren Peer and Chen Tessler and Nadav Merlis and Ron Meir},
  title = {{Ensemble Bootstrapping for Q-Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2021},
  url = {https://openreview.net/forum?id=ZPdi7Au1QZK},
}
Figure