Deep Reinforcement Learning with Weighted Q-Learning

Andrea Cini, Carlo D'Eramo, Jan Peters, Cesare AlippiarXiv 2020

Abstract

Reinforcement learning agents often struggle with overestimation bias in action-value estimates, a phenomenon primarily driven by the maximization operator in Q-learning. While Double DQN (DDQN) addresses this by decoupling action selection and evaluation, it frequently introduces a significant negative bias. This paper introduces Weighted Deep Q-Network (WDQN), a novel approach that utilizes Concrete Dropout to quantify uncertainty in neural network predictions. By weighting action values by their probability of being the maximum, WDQN provides a more balanced estimator that improves stability and performance on challenging Atari benchmarks.

Introduction

In the field of Reinforcement Learning (RL), the goal of an agent is to learn an optimal policy by estimating the expected future rewards, known as Q-values, for various state-action pairs. The standard Q-learning algorithm relies on the Bellman equation and uses a max operator to select the best future action for target calculation. However, this operator is sensitive to noise; when Q-value estimates are imprecise, taking the maximum of multiple noisy variables leads to a systematic positive overestimation bias.

This overoptimism can lead to poor policy convergence or even divergence in complex environments. Double DQN (DDQN) was proposed to mitigate this by using two separate networks for action selection and evaluation. While effective at reducing overestimation, DDQN often overcorrects, leading to a negative underestimation bias that can result in overly cautious agent behavior. This paper proposes Weighted Deep Q-Network (WDQN) to bridge this gap, offering a weighted estimator that balances between these two extremes.

Methodology: Weighted Deep Q-Network

The core contribution of this work is the adaptation of Weighted Q-Learning (WQL) to the deep learning framework. WQL calculates the target value as a weighted average of action values, where the weights represent the probability of each action being the optimal one.

Uncertainty Estimation with Concrete Dropout

To implement WQL in a deep learning context, the agent must estimate the uncertainty of its Q-value predictions. The authors employ Dropout as a Bayesian approximation. By maintaining dropout during the inference phase, the neural network can be viewed as an approximation of a Deep Gaussian Process.

To avoid the manual tuning of dropout rates—which is particularly difficult in RL due to non-stationary data distributions—the authors utilize Concrete Dropout. This technique allows the model to learn the optimal dropout probabilities automatically through backpropagation, ensuring that uncertainty estimates remain reliable as the agent explores the environment.

The WDQN Algorithm

The learning process involves performing multiple stochastic forward passes ($K$ samples) for each state in a mini-batch. The frequency with which an action emerges as the maximum across these samples determines its weight. The final target value, $y^{WDQN}$, is the weighted sum of these sampled estimates.

Algorithm 1: The Weighted DQN training loop, highlighting the use of stochastic forward passes and weighted target calculation.

Experimental Evaluation

The performance of WDQN was evaluated using the Arcade Learning Environment (ALE), focusing on two specific Atari 2600 games: Asterix and Wizard of Wor. These environments were selected because they are known to induce severe overestimation in standard DQN, leading to unstable learning trajectories.

Performance and Stability

WDQN demonstrates a significant improvement in learning stability. In both test environments, standard DQN often experiences "crashes" where performance drops sharply after an initial peak due to diverging value estimates. In contrast, WDQN maintains a steady upward trajectory in cumulative rewards.

Comparative performance and bias analysis for Asterix and Wizard of Wor. The figure displays average cumulative rewards and maximum Q-value estimates for both environments, demonstrating WDQN's superior stability and bias control.

As shown in the results, WDQN outperforms both DQN and DDQN in Wizard of Wor. In Asterix, WDQN achieves performance levels comparable to or exceeding DDQN. Crucially, the Q-value plots reveal that WDQN’s estimates track the true discounted returns much more accurately than DQN, which exhibits massive overestimation (reaching values far beyond the actual rewards).

Discussion and Key Insights

The success of WDQN stems from its ability to treat bias as a spectrum. Unlike DQN (consistently positive bias) or DDQN (often negative bias), WDQN’s bias is dynamic. It adapts based on the agent's current uncertainty: in states where the agent is confident, it behaves more like standard Q-learning; in states with high uncertainty, the weighting mechanism naturally softens the maximization, preventing runaway overestimation.

Furthermore, while the requirement for multiple forward passes increases the computational load per step, the authors note that these operations are highly parallelizable on modern hardware. The resulting gains in sample efficiency and learning stability often outweigh the increased FLOP requirements.

Conclusion

Weighted Deep Q-Network provides a robust solution to the overestimation problem in deep reinforcement learning. By integrating Bayesian uncertainty estimation via Concrete Dropout, WDQN offers a principled way to weight action values, leading to more accurate value functions and improved performance on challenging benchmarks. Future work may involve integrating WDQN with other architectural improvements, such as Dueling networks or Prioritized Experience Replay, to further enhance its capabilities.

Summary updated

BibTeX
@misc{cini2020deep,
  author = {Andrea Cini and Carlo D'Eramo and Jan Peters and Cesare Alippi},
  title = {{Deep Reinforcement Learning with Weighted Q-Learning}},
  year = {2020},
  eprint = {2003.09280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.09280},
}
Figure