Maximization bias

Also known as: overestimation bias · Q-value overestimation

On this page 8

Maximization bias is the systematic overestimation of action values that occurs when an algorithm uses the maximum of noisy estimates as an estimate of the maximum true value. In reinforcement learning, it affects every method whose update target contains a max operator, most notably Q-learning and the deep Q-network (DQN).

The effect is also called overestimation bias or Q-value overestimation. It does not require any mistake in the code: it follows from a basic statistical fact, namely that the expected maximum of random estimates is at least as large as the maximum of their expectations. Corrections such as double Q-learning and the clipped double-Q trick in TD3 exist specifically to reduce it.

Why taking the maximum creates bias

Maximization bias arises because the max operator selects positive noise. If an agent estimates the values of several actions and every estimate is unbiased but noisy, the action that looks best is disproportionately often one whose estimate happened to be too high by chance.

Formally, for estimates Q(s, a) with errors of zero mean, the expected value of max over a of Q(s, a) is greater than or equal to max over a of the true values. The gap grows with the number of actions and with the variance of the estimates, and it vanishes only when the estimates are exact.

The table below shows how the main factors influence the size of the bias.

FactorEffect on biasReason
Number of actionsMore actions, larger biasMore chances for a lucky high estimate
Estimate varianceHigher variance, larger biasNoise spreads estimates further
Stochastic rewardsIncreases biasSingle samples vary widely
Function approximation errorIncreases biasGeneralization errors act like noise
More samples per actionReduces biasEstimates converge toward true values
Factors that increase or reduce the overestimation

How maximization bias appears in Q-learning

In tabular Q-learning, the target r + gamma max over a’ of Q(s’, a’) uses the same table both to select the best next action and to evaluate its value. Any upward error in one entry is therefore copied into the target and then propagated backward through bootstrapping to earlier states.

A classic textbook illustration uses a small Markov decision process: from a start state, one action leads to a terminal state with reward zero, while the other leads to a state with many actions whose rewards are drawn from a normal distribution with mean -0.1. Q-learning initially prefers the second branch, although its true expected return is negative, because the maximum over many noisy rewards looks positive.

With deep function approximation, the problem becomes more severe. Neural network errors are correlated across states, the target network only partly stabilizes them, and the overestimates can accumulate into divergent value estimates in some Atari games.

Methods that reduce maximization bias

The common principle behind corrections is to decouple action selection from action evaluation, so that the noise that made an action look best is not reused to estimate its value. The table compares the main approaches.

MethodCore ideaRemaining issue
Double Q-learningTwo tables; one selects, the other evaluatesCan slightly underestimate
Double DQNOnline network selects, target network evaluatesNetworks are still correlated
Clipped double-Q (TD3)Minimum of two critics as targetDeliberate underestimation
Soft actor-criticTwin critics with entropy termExtra critic cost
Expected SARSAExpectation under policy instead of maxDepends on policy quality
Averaged or ensemble targetsAverage several value estimatesHigher compute and memory
Main corrections and their trade-offs

Double Q-learning keeps two independent estimates, QA and QB. On each step, one of them is chosen at random for update; it selects the argmax action, and the other estimate supplies the value. Because the two estimates have independent errors, the expected target is no longer biased upward, although it may be slightly biased downward.

Maximization bias in actor-critic methods

Maximization bias is not limited to value-based methods. In deterministic actor-critic algorithms such as deep deterministic policy gradient (DDPG), the actor is trained to maximize the critic, which acts as an implicit max operator and steers the policy toward actions whose values the critic overestimates.

TD3 addresses this with clipped double-Q learning, taking the smaller of two critic estimates, together with delayed policy updates and target policy smoothing. Soft actor-critic adopted the same twin-critic minimum, and in offline reinforcement learning the problem becomes acute, which motivated pessimistic methods such as conservative Q-learning.

Diagnosing overestimation in a training run

The most direct diagnostic is to compare predicted values with measured returns. Practitioners periodically roll out the current policy, compute the actual discounted return from visited states and compare it with the critic’s prediction for the same states.

SymptomLikely interpretationTypical response
Predicted Q far above returnsStrong overestimationSwitch to double or clipped targets
Q-values grow without boundDivergence amplified by biasLower learning rate, check target updates
Policy prefers risky actionsNoisy actions look bestIncrease samples or use ensembles
Predicted Q below returnsOvercorrectionRelax pessimism or average critics
Typical symptoms and responses
  • Track the mean predicted Q-value of sampled states alongside episode returns.
  • Use several random seeds, because the bias varies between runs.
  • Remember that reward scale changes the absolute size of errors.

Common misconceptions

A frequent misunderstanding is that maximization bias is merely a bug in a particular implementation. It is a structural property of max-based targets and appears even with perfectly correct code. Another misconception is that overestimation is always harmful; a uniform overestimate of all actions does not change the greedy policy, and problems arise when the bias is uneven across actions.

It is also wrong to assume that corrections remove bias entirely. Double estimators trade overestimation for possible underestimation, and the right balance depends on the environment, the noise level and whether exploration benefits from optimism.

Understanding it simply

Picture ten friends guessing the weight of the same cake. Each guess is a little wrong. Some are too high and some are too low. If you always trust the highest guess, you will usually think the cake is heavier than it really is.

A learning agent faces the same problem. It guesses how good each choice is and then picks the best-looking one. The best-looking choice is often just lucky noise. Asking a second, independent opinion before trusting the number keeps the agent honest.

Applied in practice

An engineering team trains a deep Q-network to control a warehouse robot that chooses among 18 discrete movement actions. Sensor noise makes rewards vary from step to step. After two million steps, the network predicts an average value of about 45 per state, but rollouts of the greedy policy achieve discounted returns of roughly 20.

The robot also favors a shortcut near a loading dock that occasionally yields a large reward but usually causes delays. The team identifies maximization bias as the cause: with many actions and noisy rewards, the target repeatedly picks up optimistic errors.

They switch the target to the Double DQN form, where the online network selects the next action and the target network evaluates it. After retraining, predicted values track measured returns within about 10 percent, the robot stops preferring the risky shortcut, and the average task completion time drops noticeably.