Regularized Q-learning through Robust Averaging

Peter Schmitt-Förster, Tobias Sutter

Introduction

In reinforcement learning (RL), Q-learning is a foundational algorithm that frequently suffers from a well-documented flaw: overestimation bias. This bias arises because the algorithm uses a max operator over noisy value estimates, leading it to favor actions with high variance and resulting in overly optimistic value estimates. While variants like Double Q-learning were developed to mitigate this, they often introduce the opposite problem—underestimation bias.

Historically, these biases have been "all-or-nothing" properties of specific algorithms. This paper introduces Regularized Q-learning through Robust Averaging (2RA), a novel framework that treats estimation bias as a tunable hyperparameter, allowing for precise control over the optimism or pessimism of the agent based on the specific needs of the environment.

The 2RA Methodology

The 2RA algorithm maintains $N$ distinct state-action value estimates and updates them using a distributionally robust estimator. Unlike standard methods that rely on a single maximum or a simple average, 2RA solves a "worst-case" optimization problem within an "ambiguity set"—defined as a ball of radius $\rho$ centered at the empirical average of the $N$ estimates.

Closed-Form Efficiency

A key contribution of this work is the derivation of a closed-form solution for this robust optimization. The authors demonstrate that the update rule simplifies to a standard max operator minus a penalty term proportional to $\sqrt{\rho}$. This ensures that 2RA remains computationally efficient, with a per-iteration cost nearly identical to standard Watkins' Q-learning. By adjusting $N$ (the number of estimates) and $\rho$ (the robustness level), practitioners can dial in the exact level of bias required.

Key Theoretical Insights

The 2RA framework offers several conceptual breakthroughs regarding how agents process value uncertainty:

  • Bias as a Choice: The most significant shift is viewing bias not as an unavoidable side effect, but as a controlled hyperparameter. By increasing $\rho$, an agent moves from the overestimation characteristic of Watkins' Q-learning (where $\rho=0, N=1$) toward a more conservative, underestimating regime.
  • The "Negative UCB" Connection: The robust penalty term ($\sqrt{\rho} ||\phi||_2$) functions similarly to a negative Upper Confidence Bound (UCB). While standard UCB encourages exploration by adding a bonus to uncertain actions, 2RA’s penalty discourages over-optimism in target values, leading to more stable and reliable policy updates.
  • The $N$-times Learning Rate Rule: To facilitate practical implementation, the authors provide a theoretical "rule of thumb": to achieve the same asymptotic mean-squared error as standard Q-learning, the learning rate for 2RA should be set $N$ times larger. This simplifies the tuning process for the new algorithm.

Experimental Evaluation

The authors evaluated 2RA across a diverse set of benchmarks, ranging from theoretical counterexamples to practical control tasks.

Synthetic and Tabular Benchmarks

In tests involving 100 randomly generated Markov Decision Processes (MDPs) with Dirichlet transition kernels, 2RA consistently outperformed Watkins', Double, and Maxmin Q-learning during the early stages of learning. It also demonstrated stability in Baird’s Example, a classic environment used to test the convergence of RL algorithms.

Control Tasks

  • OpenAI Gym - CartPole: In a large-scale evaluation of 1,000 experiments, 2RA achieved the lowest "mean hit time" (the number of episodes to solve the task) at 386.19. This significantly outperformed standard Q-learning (457.35) and Double Q-learning (401.89).
  • Neural Network Scaling (LunarLander): While the theoretical proofs focus on tabular and linear settings, empirical tests on the LunarLander environment demonstrated that 2RA scales effectively to non-linear function approximation. In these deep RL contexts, 2RA performed at the top of the field alongside Maxmin Q-learning.

Conclusion and Future Directions

2RA Q-learning provides a robust bridge between over-optimistic and over-conservative value estimation. By providing a "knob" to tune bias, it offers a more flexible tool for RL practitioners. While current theoretical convergence proofs and MSE analyses are limited to tabular and linear cases, the empirical success in deep RL suggests broad applicability.

Future research will likely focus on integrating 2RA into modern deep RL pipelines—such as those utilizing experience replay and target networks—to further explore how the benefits of robust averaging amplify in high-dimensional, complex systems.

Summary updated

BibTeX
@inproceedings{schmittforster2024regularized,
  author = {Peter Schmitt-Förster and Tobias Sutter},
  title = {{Regularized Q-learning through Robust Averaging}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=07f24ya6eX},
}
Figure