Maxmin Q-learning: Controlling the Estimation Bias of Q-learning

Qingfeng Lan, Yangchen Pan, Alona Fyshe, Martha White

TL;DR

Maxmin Q-learning introduces a tunable parameter $N$ (the number of estimators) to flexibly control the estimation bias in reinforcement learning, allowing agents to shift from overestimation to underestimation. By balancing this bias and significantly reducing estimation variance, the algorithm achieves superior stability and performance across a variety of stochastic environments compared to standard Q-learning and Double DQN.

What Problem Does This Paper Address?

In reinforcement learning, Q-learning is a cornerstone algorithm, but it has a well-known Achilles' heel: overestimation bias. Because the Q-learning update uses a max operator over estimated action values, it tends to overestimate the true value of states. This happens because $E[\max(X_i)] \ge \max(E[X_i])$; essentially, the noise in our estimates gets "trapped" by the maximum, leading the agent to believe certain actions are better than they truly are.

While variants like Double Q-learning were designed to fix this, they do so by introducing underestimation bias. The authors of this paper argue that neither extreme is always ideal. Depending on the environment—specifically whether high-variance regions are high-value or low-value—overestimation can actually help exploration, while underestimation can prevent an agent from getting stuck in "fool's gold" regions. The challenge is that existing algorithms don't allow us to tune this bias or understand its interaction with learning performance.

Methods

The authors propose Maxmin Q-learning, a generalization that maintains $N$ independent estimators of the action-value function ($Q^1, \dots, Q^N$).

The core innovation is the target calculation. Instead of taking a simple maximum, the algorithm first takes the minimum across all $N$ estimators for each action, and then takes the maximum over those minimized values:

$$Y_t^{MQ} = r + \gamma \max_{a'} \min_{i \in \{1, \dots, N\}} Q^i(s', a')$$

Key Features:

  • Tunable Bias: When $N=1$, it reduces to standard Q-learning (overestimation). As $N$ increases, the target becomes more conservative, eventually shifting toward underestimation.
  • Variance Reduction: The paper theoretically proves that using multiple estimators reduces the variance of the target estimate.
  • Generalized Q-learning Framework: The authors provide a new theoretical framework to prove the convergence of not just Maxmin Q-learning, but also several other variants (like Ensemble and Averaged Q-learning) in the tabular case.
  • Maxmin DQN: For deep learning applications, they implement this using $N$ separate neural networks, each with its own target network.

Datasets

The algorithm was evaluated on three types of environments:

  1. Toy MDP: A simple grid-like environment (Figure 1) designed to specifically test how overestimation vs. underestimation affects the speed of reaching an optimal policy.
  2. Mountain Car: A classic control task, modified with varying levels of reward noise to test robustness to stochasticity.
  3. Benchmark Games: Seven games from Gym, PyGame Learning Environment (PLE), and MinAtar (Lunarlander, Catcher, Pixelcopter, Asterix, Seaquest, Breakout, and Space Invaders).

Key Insights and Ideas

  • Bias is Environment-Dependent: The "aha moment" is demonstrating that overestimation isn't always a bug—it can be a feature for exploration. In Figure 2, we see that if a highly stochastic region is actually high-value ($\mu = +0.1$), Q-learning's overestimation helps it find the optimal policy faster than Double Q-learning.
  • The Sweet Spot for $N$: Theorem 1 shows that there exists a specific choice of $N$ that leads to an unbiased estimator. This allows researchers to move beyond the binary choice of "overestimate" vs "underestimate."
  • Stability through Variance Control: A major reason Maxmin Q-learning succeeds in high-noise environments (like the Mountain Car experiments in Figure 3) is its ability to suppress estimation variance, which otherwise causes standard Q-learning to diverge or fail.
Figure 2: Comparison of three algorithms using the simple MDP in Figure 1 with different values of µ, and thus different expected rewards. For µ = +0.1, shown in (a), the optimal ϵ-greedy policy is to take the Left action with 95% probability. For µ = −0.1, shown in in (b), the optimal policy is to take the Left action with 5% probability. The reported distance is the absolute difference between the probability of taking the Left action under the learned policy compared to the optimal ϵ-greedy policy. All results were averaged over 5, 000 runs.

Key Results

  • Robustness to Noise: In Mountain Car experiments with high reward variance ($\sigma^2 = 50$), standard Q-learning and Averaged Q-learning failed to reach the goal within 5,000 steps. Maxmin Q-learning remained stable and efficient (Figure 6).
  • Superior Benchmarking: On the MinAtar and Gym benchmarks, Maxmin DQN (often with $N$ between 2 and 4) consistently outperformed or matched DQN and Double DQN (DDQN).
  • Exploration Trade-offs: In games like Pixelcopter and Asterix, larger values of $N$ led to slower initial learning (due to more conservative estimates) but ultimately achieved a significantly higher final performance (Figure 4).
Figure 4: Learning curves across benchmark environments. Maxmin DQN (red) often achieves higher final returns than DQN or DDQN.

Limitations and Future Work

  • Computational Overhead: The primary limitation is that Maxmin DQN requires maintaining and updating $N$ separate neural networks. While this improves sample efficiency, it increases the computational cost per step linearly with $N$.
  • Hyperparameter Tuning: While $N$ provides a powerful lever for bias control, the optimal $N$ is environment-specific and currently requires empirical tuning.
  • Future Directions: The authors suggest exploring ways to share parameters between the $N$ estimators to reduce computational costs and investigating adaptive methods to choose $N$ dynamically during training.

Summary updated

BibTeX
@inproceedings{lan2020maxmin,
  author = {Qingfeng Lan and Yangchen Pan and Alona Fyshe and Martha White},
  title = {{Maxmin Q-learning: Controlling the Estimation Bias of Q-learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure