TL;DR
Double DQN is a small change to the deep Q-network (DQN) that reduces a known bias in Q-learning. The paper first shows that DQN systematically overestimates the value of its actions on Atari games, and that the overestimation sometimes hurts the policy. It then changes one line of the training target, so that the online network chooses the next action and the target network judges its value, which gave better scores on many games with the same hyperparameters.
Builds on: Deep Q-Network, Double Q-Learning, Overestimation Bias, Target Network · Leads to: Q-Learning, Experience Replay
Why it mattered
Double DQN became one of the standard upgrades to DQN. Many later value-based agents use the same decoupled target, and combined DQN-improvement agents such as Rainbow include it as one of their components. The reason is practical: the change costs almost nothing. It needs no extra network, no extra environment steps and no retuning, because the target network that DQN already has supplies the second estimate.
The paper's evidence covers 49 Atari 2600 games, the same set used for the original DQN. On games such as Asterix and Wizard of Wor, the paper shows value estimates that climb to implausible levels while the score falls. Those games make the stakes concrete: an agent that believes its own inflated values can pick worse actions.
The paper also makes a broader point: the harm comes from the max over inaccurate action values, whatever the source of the inaccuracy. That is why the fix is worth trying for a deep network, not only for the tables that the original Double Q-learning was designed for.
How it came about
Hado van Hasselt proposed Double Q-learning in 2010 for tables, where the two value estimates were kept as separate tables. The 2015 paper asked whether the bias mattered in practice for the deep networks that had just reached human-level play on many Atari games with DQN. It was published at the AAAI 2016 conference, and the arXiv preprint appeared in September 2015.
The problem
DQN learns a value for each state and action with a neural network. Its target for the update is built from the same network's best guess at the next step, so every update depends on an estimate that is noisy.
Q-learning takes the maximum over estimated action values. The maximum of noisy numbers is biased upward, even when each number is correct on average. Taking the best of several guesses tends to pick the guess that happens to be too high. This is Overestimation Bias, and the same network is used both to pick the best action and to score it, so the error is never corrected.
The open question in 2015 was whether this bias was small in practice or large enough to change which actions an agent prefers. The paper measures the bias in deep Q-networks on Atari games, and then checks whether removing it changes the scores.
How it works
The idea in one sentence: pick the best next action with one set of weights, and score that action with a different set. DQN already holds two sets of weights, the online network and the target network, so the second set comes for free.
flowchart LR A["Sample a transition: state, action, reward, next state"] --> B["Online network picks the best next action"] B --> C["Target network scores that action"] C --> D["Target = reward + discount times the score"] D --> E["Update the online network toward the target"]
Take one tiny instance: a single step where the reward is 1, the discount is 0.99, and there are three actions in the next state.
- Read the target network's values. In the next state the target network gives the three action values 2.0, 3.5 and 1.0.
- Read the online network's values. The online network gives 2.8, 2.6 and 0.5 for the same actions. Check: the online network prefers action 1, with value 2.8, while the target network's highest value is action 2, with 3.5.
- Build the DQN target. DQN takes the target network's largest value, 3.5, so the target is 1 + 0.99 × 3.5 = 4.465.
- Build the Double DQN target. Double DQN lets the online network choose: it picks action 1. The target network then scores action 1, which is 2.0. The target is 1 + 0.99 × 2.0 = 2.98. Check: the choice and the score come from different networks, so the score is not the largest value that happened to be noisy.
- Update. The online network moves toward the target. Because the target is 2.98 rather than 4.465, the update no longer pushes the value up on the strength of the single largest noisy estimate.
Two details keep the method close to DQN. The target network is still copied from the online network every fixed number of steps, as in DQN. And the transitions still come from Experience Replay in the same way.
Worked examples
Two actions have the same true value of 1. Each estimate is off by plus or minus 0.5, with equal chance, and the two errors are independent. That gives four equally likely pairs of estimates.
- Both errors plus: estimates 1.5 and 1.5, maximum 1.5.
- First plus, second minus: estimates 1.5 and 0.5, maximum 1.5.
- First minus, second plus: estimates 0.5 and 1.5, maximum 1.5.
- Both minus: estimates 0.5 and 0.5, maximum 0.5.
- Average of the four maxima: (1.5 + 1.5 + 1.5 + 0.5) / 4 = 1.25.
- Interpretation: the true value is 1, but the maximum is 1.25 on average. The bias is 0.25 with no mistake in either estimate. Double Q-learning uses a second, independent estimate to score the action that the first one chose, and the expected score is the true value of 1.
Use the target values 2.0, 3.5 and 1.0 and the online values 2.8, 2.6 and 0.5 from the walkthrough, with reward 1 and discount 0.99.
- DQN target: the largest target-network value is 3.5, so Y = 1 + 0.99 × 3.5.
- Multiply: 0.99 × 3.5 = 3.465.
- Add the reward: 1 + 3.465 = 4.465.
- Double DQN target: the online network's largest value is 2.8, at action 1. The target network's value at action 1 is 2.0.
- Multiply and add: 1 + 0.99 × 2.0 = 2.98.
- Interpretation: the DQN target is 1.485 higher, and that gap comes entirely from the target network's peak at action 2, a value the online network did not prefer. Double DQN does not add that peak to the target.
Table 1 reports normalized scores on 49 games with 5-minute evaluations, on a scale where 100 percent is the human reference. The median rises from 93.5 percent for DQN to 114.7 percent for Double DQN. The mean rises from 241.1 percent to 330.3 percent.
- Median gain in points: 114.7 - 93.5 = 21.2.
- Relative median gain: 21.2 / 93.5 = 0.227, so about 22.7 percent.
- Mean gain in points: 330.3 - 241.1 = 89.2.
- Relative mean gain: 89.2 / 241.1 = 0.370, so about 37.0 percent.
- Interpretation: the median game improves by about 23 percent, and the mean improves by more, because a few games gain a lot and pull the mean up.
Try it: Table 2 reports the human-starts median for DQN as 47.5 percent and for the tuned Double DQN as 116.7 percent. What is the relative gain in the median? Answer: (116.7 - 47.5) / 47.5 = 69.2 / 47.5 = 1.457, so about 146 percent, a gain of nearly 2.5 times the DQN score.
The math
Let θ be the online network's weights, θ⁻ the target network's weights, γ the discount factor and R the reward. The Double DQN target for a transition with next state S′ is the reward plus the discounted value that the target network gives to the action the online network prefers in S′.
The DQN target, written in the same notation, takes the maximum over the target network directly:
Double DQN keeps the same structure but splits the maximum into a choice and a score:
Step 1 in symbols
The choice is the argmax of the online network, so the index of the best action is read from θ. The score is the target network's value at that index, read from θ⁻. The two networks are separate, so the error in the choice does not feed directly into the score. That separation is the whole change; the rest of the update is the same as DQN's.
Step 2 in symbols
Each update still moves the online weights toward the target. The loss for a sampled transition is the squared difference between the current prediction and the target:
The gradient step is taken with Stochastic Gradient Descent on minibatches from the replay memory, and the target is held fixed between periodic copies of the online network. The squared loss is the simplest form; DQN implementations usually clip the error for stability. In the paper's Atari setup the discount γ is 0.99, and the target network is copied every 10,000 steps.
Step 3 in symbols
Writing the choice and the score separately shows why the bias shrinks. If the online network's noise makes it choose an action that is too high, the target network still gives that action its own estimate. If the two networks' errors are roughly independent, the expected score is the true value of the chosen action, so a wrong choice is not automatically paired with an inflated score.
Results
- Overestimation (Figure 3). On six Atari games, the DQN learning curves of estimated value end up much higher than the true discounted value of the learned policy, while the Double DQN curves sit close to the truth. On Asterix and Wizard of Wor, DQN's values become unstable and climb on a log scale while its scores fall.
- Policy quality on 49 games, 5-minute evaluation (Table 1). Median 93.5 percent for DQN and 114.7 percent for Double DQN; mean 241.1 and 330.3 percent. Double DQN used the same hyperparameters as DQN, so the comparison isolates the target change.
- Robustness to human starts, 30-minute evaluation (Table 2). Median 47.5 percent for DQN and 116.7 percent for a tuned Double DQN. Starting each episode from a human trajectory tests whether the agent learned a general policy or only a memorised action sequence.
Common mistakes and tradeoffs
It is tempting to think Double DQN removes overestimation completely. In fact the paper shows it reduces the overestimation a lot in these games but does not guarantee that the values are exact. The method decouples the choice from the score, and the target network is still an estimate.
It is tempting to think any overestimation is harmful. In fact a uniform overestimation of every action's value can leave the chosen action unchanged. Overestimation matters when it is uneven across actions or states, because then it changes which action is preferred.
It is tempting to think the gain must come from extra computation. In fact the change costs almost nothing. It needs no third network, and the only added work is one extra forward pass of the online network on the next state, to find the action it prefers.
Use Double DQN when you already have a DQN-style agent with a target network and you suspect the value estimates are inflated. Be cautious about treating its numbers as a general guarantee: the paper's gains are reported on Atari with the original hyperparameters, and tuning changes the size of the gain.
Alternatives include plain DQN when the noise is low enough that the bias does not matter, and other fixes for overestimation that change the value model rather than the target. The choice depends on whether the cost of an extra target evaluation is acceptable, which it almost always is.
Reading guide
Read the paper in its order. The background on values and policies uses Value Function, the Bellman Equation and the Markov Decision Process setting. The DQN part assumes Deep Q-Network, Target Network and Experience Replay. The tabular Double Q-learning part builds on Double Q-Learning. The overestimation analysis uses Overestimation Bias and the idea of Function Approximation from the deep network. The Double DQN change is a one-line edit to the target, and the results compare it with the original DQN results on the same 49 games.
The chain of ideas, in the order the lesson built them: Q-learning takes a maximum over noisy estimates, that maximum is biased upward, DQN inherits the bias, decoupling the choice from the score removes most of it, and the change works at Atari scale with no extra cost.
Check yourself
QuestionWhat does the online network choose in the Double DQN target, and what does the target network do?Show answer
The online network picks the action with the largest value in the next state, using the argmax over its own weights. The target network then gives the value of that chosen action, and that value enters the target.
QuestionIn the walkthrough, the target-network values are 2.0, 3.5 and 1.0, and the online values are 2.8, 2.6 and 0.5. With reward 1 and discount 0.99, what are the DQN and Double DQN targets?Show answer
DQN: 1 + 0.99 × 3.5 = 4.465. Double DQN: the online network picks action 1 (value 2.8), and the target network gives action 1 the value 2.0, so 1 + 0.99 × 2.0 = 2.98.
QuestionWhy does the maximum of several noisy estimates tend to be too high even when each estimate is right on average?Show answer
The maximum picks whichever estimate happens to be highest, and the highest of several noisy numbers is more likely to be one that was pushed up by noise. The average of the maxima is therefore above the true value, which the two-action example shows as 1.25 against a true value of 1.
QuestionYou are training an agent on a game where the learning curve of estimated values keeps rising while the score falls. What does the paper suggest, and what is the cost?Show answer
Rising values with a falling score are a warning sign of overestimation. The paper suggests switching the target to the Double DQN form, which reduces that overestimation. The cost is one extra forward pass of the online network on the next state, which is small next to the training itself.