Adaptive Ensemble Q-learning: Minimizing Estimation Bias via Error Feedback

Hang Wang, Sen Lin, Junshan Zhang

TL;DR

Deep Q-learning often struggles with "estimation bias"—the tendency to over- or under-estimate action values—which can cripple the learning process. Adaptive Ensemble Q-learning (AdaEQ) solves this by dynamically adjusting the number of models in an ensemble based on real-time error feedback. This approach keeps the estimation bias near zero throughout training, outperforming state-of-the-art fixed-ensemble methods.

The Challenge: The "Goldilocks" Problem of Ensemble Size

In Reinforcement Learning (RL), Q-learning uses a "max" operator to select the best future actions. However, because function approximators (like neural networks) are never perfectly accurate, this "max" operator tends to favor noise, leading to a notorious overestimation bias.

To fix this, researchers use "ensembles"—multiple Q-networks—and take the minimum value among a subset of them to provide a more conservative estimate. The challenge is finding the right ensemble size:

  • Too few models: The agent still overestimates, leading to poor policies.
  • Too many models: The agent starts underestimating, which can make training unstable or sluggish.

Existing methods like REDQ or Maxmin use a fixed ensemble size. The authors argue this is fundamentally flawed because the approximation error of the neural networks changes as the agent learns. A fixed size that works perfectly at the start of training might be disastrous later on.

Methods: Adaptive Ensemble Q-learning (AdaEQ)

The authors treat the minimization of estimation bias as an adaptive control problem. Their proposed algorithm, AdaEQ, consists of two main phases that form a continuous feedback loop:

AdaEQ Framework
  1. Error Characterization: Periodically, the agent runs a "testing trajectory" to compare its current Q-value estimates against the actual rewards received (Monte Carlo returns). This provides a measure of the current approximation error ($\tilde{\tau}_t$).
  2. Ensemble Size Adaptation: Inspired by Model Identification Adaptive Control (MIAC), the algorithm adjusts the active ensemble size ($M$) based on this error.
  3. If the error is high (indicating potential overestimation), it increases $M$ to be more conservative.
  4. If the error is low, it decreases $M$ to avoid unnecessary underestimation.

The paper also provides a theoretical foundation, deriving upper and lower bounds for estimation bias that prove how the "ideal" ensemble size is mathematically linked to the magnitude of the approximation error.

Key Insights

  • Bias is a Moving Target: The most significant insight is that estimation bias isn't a static property of an algorithm; it's a dynamic interaction between the ensemble size and the current state of the neural networks' learning.
  • The "Tolerance" Parameter ($c$): The authors introduce a parameter $c$ that acts as a threshold for the adaptation. It allows the user to balance the "tendency" of the model—effectively deciding how much overestimation vs. underestimation the system should tolerate.
  • Generalization: AdaEQ is a generalized framework. By setting the parameters specifically, it can "degenerate" into existing methods like Maxmin or REDQ, proving that those methods are actually just specific, static points in a larger adaptive space.

Experimental Results

The researchers evaluated AdaEQ on the MuJoCo benchmark (Hopper-v2, Ant-v2, Walker2d-v2, Humanoid-v2), a standard suite for continuous control tasks requiring complex, high-dimensional coordination.

  • Near-Zero Bias: Across all MuJoCo tasks, AdaEQ successfully drove the estimation bias closer to zero than competing methods like REDQ and Average-DQN.
Estimation Bias Comparison
  • Superior Performance: AdaEQ achieved higher average returns than the state-of-the-art. For example, in the challenging "Ant" and "Humanoid" tasks, AdaEQ's adaptive nature allowed it to find better policies faster.
  • Robustness: Unlike fixed-ensemble methods, which are very sensitive to their initial settings, AdaEQ is highly robust. Even if initialized with a suboptimal ensemble size, the error feedback mechanism quickly corrects it to the optimal range.

Limitations and Future Work

  • Independent Error Assumption: The theoretical proofs assume that the errors across different Q-functions in the ensemble are independent. In practice, because they are often trained on similar data, these errors might be correlated. The theory for correlated errors remains an open question.
  • Heuristic Threshold: The "tolerance" parameter $c$ is currently a heuristic. While the paper shows the algorithm is robust to a range of $c$ values, a more systematic way to automatically optimize this parameter would be a valuable next step.
  • Computational Overhead: Running Monte Carlo rollouts to estimate error adds a slight computational cost, though the authors argue this is minimal compared to the resulting performance gains.

Summary updated

BibTeX
@inproceedings{wang2021adaptive,
  author = {Hang Wang and Sen Lin and Junshan Zhang},
  title = {{Adaptive Ensemble Q-learning: Minimizing Estimation Bias via Error Feedback}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=dqnkAayH5n},
}
Figure