Value-based deep RL is Q-learning with a neural network in place of the table. Because one update now moves the values of other states, including the state its own target was read from, DQN made the problem look like supervised regression again (a replay buffer of past transitions and a frozen target network), and every later method repairs one failure that remained.
Every method on this page changes one part of DQN's training loop
The loop is DQN 2015 as published (Mnih et al., Nature); the numbers in steps 4 and 5 are section 3's worked update. Dots show what moves. Drag the figure to turn it.
You need neural-network training by gradient descent (Topic: ml-fundamentals), tabular Q-learning, the TD error and maximisation bias (Model-free prediction and control). Value iteration (Dynamic programming) helps for section 3.
| Method (first paper) | What went wrong before it | What it changes | § |
|---|---|---|---|
| DQN, arXiv version (Dec 2013) | Consecutive transitions are correlated; a table cannot read pixels | A convolutional Q-network; experience replay sampled at random | 3 |
| DQN, Nature version (Feb 2015) | The regression target moves with every update | A target network refreshed every C updates; 49 games, one set of hyperparameters | 3 |
| Double DQN (Sep 2015) | The max over noisy estimates is biased upward | The online network picks the next action, the target network values it | 4 |
| Dueling network (Nov 2015) | Every action's value is learned separately, even where the action does not matter | Q = V + (A − mean A) | 5 |
| Prioritised replay (Nov 2015) | Uniform replay wastes updates on transitions that teach nothing | Replay in proportion to TD error, with importance weights | 6 |
| Multi-step targets (Sutton 1988) | One reward per update propagates slowly | n real rewards before bootstrapping | 7 |
| C51, QR-DQN, IQN (2017 to 2018) | One mean hides the shape of the return | Learn the whole return distribution | 8 |
| NoisyNet (Jun 2017) | ε-greedy explores without regard to the state | Learned noise on the weights | 9 |
| Rainbow (Oct 2017) | The six fixes were tested only separately | All six in one agent, then an ablation removing each | 10 |
| Ape-X, R2D2, NGU, Agent57 (2018 to 2020) | One machine, short memory, hard exploration games | Hundreds of actors, recurrent replay, intrinsic rewards, a policy chooser | 11 |
Dates are first arXiv versions, as in the parent's Method atlas tab (47 RL methods with sourced cells). Click a row to jump. The Atari score tables, each with its protocol, are on the parent's Milestones and benchmarks tab. DDPG, TD3 and SAC reuse this page's replay buffer and target networks for continuous actions (Policy gradients and actor-critic); AlphaGo to MuZero is Model-based RL and planning.
A table needs one entry per state. Go has about 2 × 10170 legal positions (Tromp); an Atari screen is 210 × 160 pixels in a 128-colour palette (Mnih et al. 2015, Methods), and two screens that differ in one pixel share nothing in a table. So the table becomes a function q̂(s, a, w) ≈ Q(s, a): an update at one state also moves similar states, including ones never visited. That generalisation is the point, and the problem. TD learning then differentiates only the prediction, not the bootstrapped target:
With on-policy data and linear features this converges, to the TD fixed point, within a factor 1/(1 − γ) of the best fit the features allow (proof and conditions on Model-free prediction and control); at γ = 0.99 that factor is 100 derived. A network trained on RL data breaks the three assumptions of supervised learning, and each fix in the figure above answers one of them:
Monte Carlo regression onto returns is ordinary supervised learning: the target Gt does not depend on w, so SGD on the squared error is a true gradient method. The bound for linear TD is VE(wTD) ≤ minw VE(w) / (1 − γ) (Sutton and Barto eq. 9.14, from Tsitsiklis and Van Roy 1997).
Function approximation, bootstrapping (targets built from current estimates) and off-policy training together can make value estimates diverge: "if any two elements of the deadly triad are present, but not all three, then instability can be avoided" (Sutton and Barto §11.3); it appears even in prediction, and even in dynamic programming with a known model, and with the on-policy distribution of updates convergence is guaranteed (§11.2). Q-learning with replay has all three. The mechanism, with two states that read one weight as w and 2w (each off-policy update multiplies w by 1 + α(2γ − 1)) and Baird's seven-state counterexample with each leg switchable, is drawn on Model-free prediction and control, Reading section 7. This section is DQN's side of it.
Less than the theory suggests. Van Hasselt et al. 2018 ran 336 configurations of DQN variants on all 57 Atari games, three replications each, about 20M frames per run. With rewards clipped to [−1, 1] and γ = 0.99 no true value exceeds 1/(1 − γ) = 100, so estimates beyond that are soft divergence. Estimates "frequently grew quickly to over a million" and came back down; no run became unbounded.
In the linear case, gradient-TD methods (GTD2, TDC) descend the projected Bellman error, and emphatic TD reweights updates toward the on-policy emphasis (Sutton and Barto §11.7 to 11.8). They are provably stable with linear features but "have mostly not been extended to non-linear function approximation, and have not been widely adopted in practice" (van Hasselt et al. 2018). Deep value methods instead live with the triad and tame it with the engineering below.
Share of runs that soft-diverged, by bootstrap target (labels printed on their Figure 2 transcribed): Q-learning 61%, inverse double Q 33% (corrects overestimation but bootstraps on the online network), DQN's target 14%, Double DQN's 10%. Their text adds: one-step Q-learning soft-diverged in 94% of runs, 10-step returns 21%; larger networks diverged more (67% against 53%, against their hypothesis); stronger prioritisation diverged more. Each returns below: target networks (§3), double estimation (§4), multi-step (§7).
DQN (deep Q-network) is Q-learning with a convolutional network that reads raw pixels and outputs one Q-value per action, trained by regression on the TD target. One update, with numbers: a stored transition has r = 1, γ = 0.99, and the target network gives Q(s′, ·; θ−) = (2.0, 3.5, 3.0) for three actions. The target is 1 + 0.99 × 3.5 = 4.465 derived. If the online network says Q(s, a; θ) = 4.0, the TD error is 0.465 and the gradient step raises Q(s, a) toward 4.465. Over a minibatch of such transitions:
Two versions. The 2013 arXiv paper used replay only; the target network arrived with the 2015 Nature paper, "the second modification to online Q-learning". Retellings merge them; the parent's atlas keeps two rows.
Store every transition (the Nature version kept the most recent 1 million) and train on minibatches of 32 drawn uniformly. In the paper's words: "each step of experience is potentially used in many weight updates"; "randomizing the samples breaks these correlations and therefore reduces the variance of the updates"; and "the behavior distribution is averaged over many of its previous states, smoothing out learning and avoiding oscillations or divergence". Replay is legitimate only because Q-learning is off-policy: its target does not depend on which policy chose the stored action ("when learning by experience replay, it is necessary to learn off-policy ... which motivates the choice of Q-learning"). It also makes the data more off-policy (a mixture of past policies), strengthening one corner of the triad while weakening correlation. The idea is Lin's (1992) (Sutton and Barto §16.5).
Every C updates (10,000 in the Nature paper), copy θ into θ− and use θ− for every target in between. The paper's reason is the triad in one sentence: in online Q-learning "an update that increases Q(st, at) often also increases Q(st+1, a) for all a and hence also increases the target", "possibly leading to oscillations or divergence"; older parameters add "a delay between the time an update to Q is made and the time the update affects the targets". The figure runs exactly that, with expected updates and no sampling noise; the steps below say what each frame shows. Predict: will a frozen target make the estimate converge, or only diverge more slowly?
The problem illustrative, built for this page: features s1 = (1, 0), s2 = (2, 2); s1 → s2 with reward 0, s2 loops with reward 1; γ = 0.9, true values 9 and 10, exactly representable (w = (9, −4)). Replay draws s1's transition two times in three, more often than the policy would (off-policy). Each step is the expected semi-gradient update from w = 0. "C = ∞" solves the regression exactly at every refresh: fitted Q iteration. Nothing published is reproduced; the arithmetic (online growth of about 4% per update, convergence with C = 5) is checked against an independent Python implementation.
Try: raise C to 40: stable but slow, the price DQN pays with C = 10,000. Lower the replay share of s1 toward one half: the online run stops diverging, because the off-policy weighting is part of the cause.
DQN is online fitted Q iteration (FQI; Ernst, Geurts and Wehenkel 2005): FQI labels a fixed dataset with targets from the frozen previous estimate and fits a fresh regressor to them, again and again. In DQN the buffer is the dataset, θ− is the previous estimate, and C minibatch steps are a partial regression.
FQI (after fitted value iteration, Gordon 1999) freezes Q̂N−1, labels every stored transition with q = r + γ maxu Q̂N−1(s′, u), and fits a fresh regressor Q̂N to those labels with any supervised method (Ernst et al. used tree ensembles; Riedmiller's neural fitted Q iteration, 2005, a multilayer perceptron trained on the whole batch). Iteration N approximates the optimal N-step Q-function, and each regression has fixed labels. DQN's derivation says so: "we hold the parameters from the previous iteration θi− fixed when optimizing the ith loss function", "resulting in a sequence of well-defined optimization problems" (Mnih et al. 2015, Methods). With two states the animation's features represent the true values, so its FQI is plain value iteration and converges at rate γ.
The counterexample. Extend the two-state w, 2w pair (Model-free prediction and control, section 7) with a transition from the 2w state to the end with probability ε (reward 0 everywhere); the exact least-squares fit gives wk+1 = γ(6 − 4ε)/5 · wk, which diverges whenever γ > 5/(6 − 4ε) and w0 ≠ 0 (Sutton and Barto Example 11.1); with ε = 0.1 that is γ above 0.893 derived. FQI's convergence "depends on properties of the function approximation algorithm" (§16.7): guaranteed for approximators "that do not extrapolate from the observed targets", called averagers (nearest neighbours, locally weighted regression).
Extended Data Table 3 of the Nature paper trained DQN on five games for 10 million frames with all four combinations (best of three learning rates, best evaluation score during training), transcribed from the image:
Replay mattered most in every game; the target network added on top of replay in all five (Seaquest 822.6 to 2,894.4). Extended Data Table 4 replaced the network with one linear layer, keeping both stabilisers: Breakout 3.00 against DQN's 316.8, Enduro 62.0 against 1,006.3 transcribed. The convolutional network, not only the stabilisers, made the result.
| DQN 2013 (arXiv workshop paper) | DQN 2015 (Nature) | |
|---|---|---|
| Paper | Mnih et al., Playing Atari with Deep Reinforcement Learning | Mnih et al., Human-level control through deep reinforcement learning (doi) |
| Stabilisers | Replay only. The target uses "the parameters from the previous iteration", which with an update every step are the current weights; the phrase "target network" does not occur | Replay and a target network |
| Network | 16 filters 8 × 8 stride 4; 32 filters 4 × 4 stride 2; 256 fully connected units | 32 filters 8 × 8 stride 4; 64 filters 4 × 4 stride 2; 64 filters 3 × 3 stride 1; 512 fully connected units (about 1.5M parameters, per van Hasselt et al.) |
| Games | 7 (Beam Rider, Breakout, Enduro, Pong, Q*bert, Seaquest, Space Invaders) | 49 |
| Training | 10 million frames per game | 50 million frames per game ("around 38 days of game experience") |
| Result | "outperformed all previous RL algorithms on six of the seven games" and "surpassed an expert human player on three of them" | Better than the best earlier RL methods on 43 of 49 games; more than 75% of a professional human tester's score on 29 |
Input and rewards (both versions). The last 4 frames, max-pooled over pairs of frames to remove flicker, converted to luminance and rescaled to 84 × 84 (one frame shows where the ball is, not where it is going); frame skip k = 4 (act on every fourth frame, repeat the action in between; the 2013 paper used k = 3 on Space Invaders, whose lasers blink at a period that made them invisible with 4); reward clipping (positive to 1, negative to −1), which "makes it easier to use the same learning rate across multiple games" at the cost that the agent "cannot differentiate between rewards of different magnitude". In the Nature version a lost life ends the episode during training.
| Hyperparameter (Nature, Extended Data Table 1) | Value | Note |
|---|---|---|
| Minibatch size | 32 | |
| Replay memory size | 1,000,000 | most recent transitions |
| Agent history length | 4 | frames stacked as input |
| Target network update frequency C | 10,000 | parameter updates |
| Discount factor γ | 0.99 | |
| Action repeat (frame skip) | 4 | |
| Update frequency | 4 | actions between gradient steps |
| Optimiser, learning rate | RMSProp, 0.00025 | momentum 0.95, squared-gradient momentum 0.95, min squared gradient 0.01 |
| ε-greedy exploration | 1.0 to 0.1 | annealed linearly over the first 1,000,000 frames, then fixed |
| Replay start size | 50,000 | uniform random play before learning starts |
| No-op max | 30 | random "do nothing" actions at the start of an episode |
The values "were selected by performing an informal search on the games Pong, Breakout, Seaquest, Space Invaders and Beam Rider", then held fixed for all games. On the word "frames": Rainbow restates DQN's schedule as ε annealed "over the first 4M frames" and learning starting after "200K frames", four times the Nature figures, which is consistent with the Nature table counting agent steps (each repeated over 4 emulator frames) while calling them frames (Hessel et al. 2017). The Nature text never says so; it stays unconfirmed here and on the parent's Milestones tab.
The max in the target uses the same noisy estimates to select the best action and to evaluate it, so whichever action happens to be overestimated is picked, and its overestimate enters the target. Every estimate can be unbiased and the max still is not: with three actions truly worth 0 and independent standard normal errors, the expected maximum is about 0.85; with ten, about 1.54 derived. The tabular version (Sutton and Barto's Example 6.7, live) is on Model-free prediction and control (its Reading section 5); what changes with a network is that the bias needs no noise at all.
Van Hasselt, Guez and Silver (2015), Figure 2: 10 actions with the same true value in every state; each action's estimate is a polynomial fitted to exact samples of that value at the integer states from −6 to 6, with two adjacent states left out (a different pair per action). The fits disagree between samples, and their max sits above the truth almost everywhere. The double estimator picks with one fit and values with another, fitted to different samples. Predict: which overestimates more, a degree-6 or a degree-9 fit that passes through every sample exactly?
Defaults reproduce the paper's printed average errors independently: from the stated construction (least-squares fits, the samples of action ai+5 as the second set for ai, errors averaged over a fine grid on [−6, 6]) the three rows give +0.612 and −0.021, +0.473 and +0.016, +3.349 and −0.016, against the printed +0.61 and −0.02, +0.47 and +0.02, +3.35 and −0.02. The degree-9 row overestimates most: it passes through every sample and swings wildly between them.
Double DQN uses the two networks DQN already has. Continuing the example: the online network gives Q(s′, ·; θ) = (2.5, 3.0, 3.8), so it selects the third action; the target network values that action at 3.0; the target is 1 + 0.99 × 3.0 = 3.97 instead of 4.465 derived.
On Atari, DQN's estimates were "consistently and sometimes vastly overoptimistic", and overestimation "was observed for DQN in all 49 tested Atari games, albeit in varying amounts". With DQN's hyperparameters unchanged, the median human-normalised score over 49 games rose from 93.5% to 114.7% and the mean from 241.1% to 330.3% (5 minutes of play, no-op starts, Table 1).
Theorem 1 needs no independence and no particular error distribution: if all true action values in a state are equal, Q*(s, a) = V*(s), and the estimates are unbiased on the whole (errors sum to 0) but not all correct (mean squared error C > 0), then maxa Qt(s, a) ≥ V*(s) + √(C / (m − 1)) for m actions, and the bound is tight; the Double Q-learning estimate's lower bound on absolute error is zero. The bound shrinks with m only because it is a worst case; with errors uniform on [−1, 1] the overestimation is (m − 1)/(m + 1), which grows with m (0.82 for 10 actions derived).
On Asterix and Wizard of Wor the estimates grew by orders of magnitude and the scores fell as they did, so the paper reads the instability as overestimation rather than inherent off-policy instability; overestimation does not always hurt (DQN plays Pong optimally while slightly overestimating). Some games changed sharply (Road Runner 233% to 617%, Double Dunk 17% to 397%). A tuned version (target refresh every 30,000 frames instead of 10,000, ε 0.01 in training and 0.001 in evaluation, one shared bias for all action values) reached 116.7% median under human starts, against 47.5% for DQN and 88.4% for untuned Double DQN (Table 2).
Rainbow and R2D2 use this target; TD3 fights the same bias with twin critics and a minimum (Policy gradients and actor-critic); offline RL meets it on actions the data never tried (Offline RL and imitation).
The dueling architecture (Wang et al. 2015) changes only the head: after the shared convolutions it splits into a state-value stream V(s) and an advantage stream A(s, a), then recombines them. "For many states, it is unnecessary to estimate the value of each action choice" (in Enduro, left or right "only matters when a collision is eminent"), but bootstrapping needs a good state value everywhere; with its own stream, V(s) improves on every update, whichever action was taken. Example: V = 5 and A = (1, −1, 3), whose mean is 1.
Two ways to recombine the same streams: the ranking of actions survives, the meaning of V does not. Every experiment in the paper used the mean.
Subtracting the max, Q = V + (A − maxa′ A), makes V exactly the state value (step 6: (3, 1, 5) in the example). The mean (step 5: (5, 3, 7) derived) "loses the original semantics of V and A" but "increases the stability of the optimization", because the advantages "only need to change as fast as the mean". Evidence: on a corridor task with exact Q-values the two architectures tied with 5 actions, and the dueling network's error fell faster as no-op actions were added (10, then 20). On 57 Atari games, trained with Double DQN, the dueling network ("Duel Clip") beat the same single-stream network with the same gradient clipping on 75.4% of games (43 of 57).
The combined gradient into the last convolutional layer was rescaled by 1/√2 and gradients were clipped to norm 10. Mean and median human-normalised scores, 30 no-op starts (their Table 1): Nature DQN 227.9% and 79.1%; single stream 307.3% and 117.8%; single stream with clipping 341.2% and 132.6%; dueling with clipping 373.1% and 151.5%; dueling with prioritised replay 591.9% and 172.1%. Under human starts the dueling gain over the clipped single stream is smaller (343.8% and 117.1% against 302.8% and 114.1%).
Uniform replay replays every transition as often as it happened, informative or not. Prioritised experience replay (Schaul et al. 2015) replays transitions with a large TD error more often, as prioritised sweeping orders planning updates. Its "Blind Cliffwalk" has n states and a reward that random actions reach with probability 2−n, so the one useful transition is buried among failures; an oracle choosing what to replay learns exponentially faster than uniform replay. Predict: with the largest error 60 times the smallest, how much more often is it sampled at α = 0.6?
Settings and evidence. The proportional version samples in O(log N) with a sum-tree (each node holds the sum of its children's priorities). It beat uniform replay "on 41 out of 49 games". It also makes replay more off-policy: stronger prioritisation soft-diverged more often (van Hasselt et al. 2018, §2 above).
A grid search on 8 games chose α = 0.7, β0 = 0.5 (rank-based) and α = 0.6, β0 = 0.4 (proportional), with the step size cut by 4 because high-error transitions give larger gradients.
Median and mean, human starts (their Table 1): DQN 48% and 122%, rank-based on DQN 106% and 355% (49 games); tuned Double DQN 111% and 418%, rank-based 113% and 454%, proportional 128% and 551% (57 games).
Eight transitions with illustrative TD errors (|δ| from 0.05 to 3.0, ε = 0.01). Bars: probability of being sampled (uniform 1/8 dashed) and the normalised importance weight. N·P(i)·wi is each transition's effective weight in the expected update: equal for all only at β = 1.
A one-step target moves reward information back one state per update; an n-step target uses n real rewards before bootstrapping. On a corridor with the only reward at the end, every synchronous sweep of backups carries it n states further.
The cost: the n − 1 intermediate actions were chosen by the behaviour policy (ε-greedy, and old for replayed data), not the greedy policy whose value the target claims, so the uncorrected target is biased off-policy. Rainbow and R2D2 accept the bias (n = 3 and n = 5); Rainbow found n "a sensitive hyper-parameter", 3 and 5 both good early and 3 best by the end. Retrace (Munos et al. 2016) corrects it by cutting traces with truncated importance weights; Agent57 uses a Retrace loss. Multi-step targets also bootstrap less, and in the 2018 triad study longer n clearly reduced soft divergence (§2). The bias-variance dial, tabular n-step and TD(λ) are on Model-free prediction and control.
A 12-state corridor illustrative: one action, reward 1 on leaving the last state, γ = 0.9, values start at 0; each sweep backs up every state at once with the n-step target, so a state's value turns on once it is within k·n steps of the reward after k sweeps (shade: its value γd−1, d steps from the reward). The start needs ⌈12/n⌉ sweeps derived: 12 at n = 1, 4 at n = 3.
A Q-value is the mean of a random return Z(s, a). Bellemare, Dabney and Munos (2017) learn the whole distribution with the distributional Bellman equation: Z(s, a) has the same distribution as R + γZ(S′, A′).
The next-state distribution is illustrative (two bumps, a losing outcome and a surviving one, on [−10, 10]); the projection is exact. The dashed line is DQN's scalar target r + γ𝔼[Z]: the same mean whenever nothing is clipped.
C51 puts probabilities on N fixed atoms zi = VMIN + iΔz, Δz = (VMAX − VMIN)/(N − 1); the Atari agent uses N = 51 and VMAX = −VMIN = 10, hence the name. The network outputs a softmax over atoms per action and acts greedily on the means. The target is the next state's distribution, discounted and shifted, then put back on the grid. Step through it:
Evidence. Across 57 games (best evaluation score during training), C51 reached 701% mean and 178% median human-normalised, against DQN 228% and 79%. The authors' reading: the learned distributions keep "the low-value, 'losing' event" separate from "the high-value, 'survival' event, rather than average them into one (unrealizable) expectation".
QR-DQN (Dabney et al. 2017) fixes the probabilities and learns the locations: N quantiles at the midpoints τ̂i = (2i − 1)/(2N), trained by quantile regression with an asymmetric Huber loss (κ = 1). That minimises a Wasserstein distance directly, closing C51's gap between theory (Wasserstein contraction) and algorithm (a KL loss after a projection), and drops VMIN and VMAX. IQN (Dabney et al. 2018) samples τ uniformly from [0, 1] and feeds it to the network, so one network represents the whole quantile function; distorting how τ is sampled gives risk-sensitive policies (CVaR acts on the worst η of outcomes).
For a fixed policy the distributional Bellman operator is a contraction in a maximal form of the Wasserstein metric; for control, Proposition 1 shows it "is not a contraction in any metric over distributions", although the means still converge to Q* exponentially fast.
The 51-atom network trains at about 75% of DQN's speed. On five training games more atoms always helped, and the 51-atom agent beat DQN on all five (the two-atom "Bernoulli" variant on 3 of 5). C51's comparison over 57 games (their Figure 6, a table): Double DQN 307% and 118%, dueling 373% and 151%, prioritised 434% and 124%, prioritised dueling 592% and 172%.
QR-DQN with N = 200: 915% mean and 211% median over 57 games (QR-DQN-1, best scores; QR-DQN-0 without the Huber smoothing 881% and 199%). IQN's cosine embedding is φj(τ) = ReLU(Σi=0n−1 cos(πiτ) wij + bj) with n = 64; eight samples of τ per update were enough, and K = 32 samples choose actions. IQN's Table 1 (57 games, 30 no-op starts, averaged over seeds): IQN 1019% mean and 218% median (5 seeds), QR-DQN 864% and 193% (3 seeds), Rainbow 1189% and 230% (2 seeds); under human starts IQN's median is 162% against Rainbow's 153%. Note that IQN's table prints QR-DQN at 193% median and Rainbow at 230%, while their own papers print 211% and 223%: different seeds, averaging and protocol (§12).
ε-greedy explores by occasionally pressing a random button, the same way in every state. NoisyNet (Fortunato et al. 2017) replaces a linear layer y = wx + b with a noisy one whose noise scale is learned along with the weights:
NoisyNet-DQN drops ε-greedy and acts greedily on the noisy network. Because σ is learned, the network can shrink its noise where it is sure and keep it where it is not: state-dependent, temporally consistent exploration. Median human-normalised scores, no-op starts (their Table 1): DQN 83% to NoisyNet-DQN 123%; dueling 132% to 172%; A3C 80% to 94%.
The noise is resampled before every action and held fixed across each replayed minibatch; independent noise samples are used for the online network, the target network and acting, "to avoid bias due to the correlation".
Factorised: μ uniform in [−1/√p, 1/√p], σ = σ0/√p with σ0 = 0.5; independent: μ uniform in [−√(3/p), √(3/p)], σ = 0.017. Mean scores (Table 1): DQN 319% to 379%; dueling 524% to 633%; A3C 293% to 347%. How NoisyNet sits among exploration methods (count bonuses, curiosity, randomised value functions) is on Bandits and exploration.
Rainbow (Hessel et al. 2017) asked whether the six extensions "are complementary and can be fruitfully combined", putting each where step 7 of the figure at the top shows; they had to be adapted to each other (closed block below: prioritised by the distributional loss, dueling per atom, double on the n-step target).
Results. Rainbow matched DQN's final performance after 7M frames (under 10 hours on one GPU) and passed the baselines' best final performance after 44M; a full 200M-frame run took about 10 days. Median human-normalised score of the best agent snapshot (Table 2): 223% with no-op starts and 153% with human starts, against DQN 79% and 68%; the best single extension, distributional DQN, reached 164% and 125%.
The ablation removes one component at a time (57 games, 200M frames each). The text: "Prioritized replay and multi-step learning were the two most crucial components" (removing either dropped the median a lot; multi-step also hurt final performance); distributional Q-learning "ranked immediately below", no different for the first 40 million frames and lagging afterwards, mostly on games at or above human level; removing Noisy Nets made the median worse but helped a few games; and "in aggregate, we did not observe a significant difference when removing the dueling network" or double Q-learning. The authors' hypothesis for double Q-learning: returns often exceeded 10, outside the [−10, 10] support, so "clipping the values to this constrained range counteracts the overestimation bias", though "the importance of double Q-learning may increase if the support of the distributions is expanded".
Figure 4 gives the per-game evidence: the area under each ablated agent's learning curve, normalised so that 0 is as good as Rainbow and 1 as bad as DQN (two games where DQN beats Rainbow are omitted, leaving 55). The PDF draws every bar as a vector rectangle, so all 330 heights (6 components × 55 games) were decoded exactly decoded from the figure. Predict first: the ablation is often quoted as "prioritised replay and multi-step matter, the rest barely do". In how many of the 55 games did removing double Q-learning make Rainbow worse?
Drop: (Rainbow − ablation) / (Rainbow − DQN) of the area under the learning curve; positive means the component helped. "Hurt" counts games with a drop above 0.005, "helped" below −0.005. "Strongest" counts games where the figure highlights this component's bar. Click a column header to sort. The medians rank the components in the order the text gives.
Removing double Q-learning hurt 30 games and helped 25, and was never the strongest drop; removing multi-step hurt 48.
Decoding. Each bar's height was read from its rectangle's coordinates relative to the row's two reference lines (Rainbow at 0, DQN at 1). Two checks: the figure highlights the strongest drop per game with an opaque overlay, and in all 55 games the highlighted bar is the largest decoded value (Montezuma's Revenge has two highlighted bars, both at the clip); and the medians rank the components as the text does. The drawing clips bars at −1 and 1, so a bar at the edge may be larger; means are affected, medians and counts are not. Script: src/checks/decode_rainbow_fig4.py. What the figure cannot say: it averages over the whole run, so a component that only speeds up early learning (as the paper says prioritisation and multi-step both do) and one that only raises the final score look alike. The median curves (Figure 3) separate the two but are curves, which this page does not read.
| Rainbow hyperparameter (Table 1) | Value |
|---|---|
| Min history to start learning | 80K frames (DQN: 200K) |
| Adam learning rate, Adam ε | 0.0000625, 1.5 × 10−4 |
| Exploration ε; Noisy Nets σ0 | 0.0; 0.5 |
| Target network period | 32K frames |
| Prioritisation: type, exponent ω, importance sampling β | proportional, 0.5, 0.4 to 1.0 |
| Multi-step returns n | 3 |
| Distributional atoms, min/max values | 51, [−10, 10] |
The other baselines in Table 2 (no-op and human starts): Double DQN 117% and 110%, prioritised Double DQN 140% and 128%, dueling Double DQN 151% and 117%, A3C 116% (human starts), Noisy DQN 118% and 102%.
Later work re-ran the ablation cheaply: Revisiting Rainbow (Obando-Ceron and Castro 2021) revisits the components on small-scale environments, arguing these "can still yield valuable scientific insights" at a fraction of the compute; its findings are not quoted here because they were not checked for this page.
After Rainbow the value-based line on Atari moved to distributed agents that separate acting from learning: many actors fill one replay buffer, one learner trains on it. Ape-X (Horgan et al. 2018) used 360 actors and reached a 434% median after 22.8 billion frames. R2D2 (Kapturowski et al. 2019) added an LSTM and replays sequences, warming the stale hidden state up with a burn-in before training, and replaced reward clipping with value rescaling: 1920.6% median. Agent57 (Badia et al. 2020b) is "the first deep RL agent that outperforms the standard human benchmark on all 57 Atari games".
Scores for Ape-X, R2D2, MuZero and Agent57, with protocols, frame counts and the per-game recomputation, are on the parent's Milestones and benchmarks tab. That tab found that Agent57's per-game table prints two of MuZero's scores with an extra digit (Asteroids and Beam Rider), which reorders the medians, and notes that R2D2's paper could not be fetched there; it is quoted here from the archived PDF, and its printed 1920.6% matches the figure MuZero and NGU reprint. Agent57 is above the human benchmark on all 57 games, which MuZero is not (51); MuZero has the higher mean and median, so which is "better" depends on the aggregate.
Every score on this page is a human-normalised score: (agent − random) / (human − random) per game (van Hasselt et al., equation 5), aggregated by a median or a mean. The formula hides a dozen choices, and two papers rarely make them alike. The same agent, DQN, has at least four published medians: 93.5%, 79.1%, 68.5% and 47.5%.
The choices that move the number most: no-op starts (up to 30 random "do nothing" actions) against human starts (100 start points from expert play), whose gap Rainbow reads as "the extent to which the agent has over-fit to its own trajectories" (223% against 153%); the episode cap (5 or 30 minutes); a deterministic emulator against sticky actions (Machado et al. 2018); the best snapshot during training against the final agent; and the number of seeds. Agarwal et al. 2021 find "substantial uncertainty in median scores even with 50 runs" and recommend stratified bootstrap confidence intervals and the interquartile mean (IQM).
Each bar is a printed median from the table named, with its protocol. They share an axis only to show the spread; reading any two as a comparison of agents is the mistake this section is about. Compare only within one table, or recompute from per-game scores under one protocol.
| Choice | Variants in the papers on this page | Why it matters |
|---|---|---|
| Start condition | No-op starts: up to 30 random "do nothing" actions (DQN Nature). Human starts: 100 starting points sampled from a human expert's play (Nair et al. 2015), scoring only rewards after the start point | Deterministic games let an agent memorise one action sequence; human starts test whether it generalises |
| Episode cap | 5 minutes (18,000 frames) in DQN and Double DQN's no-op tables; 30 minutes (108,000 frames) in human-start tables and Rainbow | Long games score more with a longer cap; DQN's Extended Data Table 3 notes its uncapped Enduro scores are higher than the capped ones |
| Stochasticity | Deterministic emulator, or sticky actions: with probability ς = 0.25 the previous action repeats (Machado et al., who recommend it as the standard) | Sticky actions break open-loop memorised play while keeping the game the same |
| Which snapshot | The best evaluation during training (C51, QR-DQN, Rainbow's "best agent snapshot"; Agent57 reports "the maximum over training" for baselines), or the final agent (R2D2, averaged over 3 seeds) | A maximum over many evaluations is biased upward; Agarwal et al. find results under protocols "involving maximum are generally incomparable with end-performance reported results" |
| Seeds and aggregate | Often 1 to 5 runs per game; median or mean over games | The mean is "dominated by a few games (e.g., Atlantis)" (Rainbow) |
| Game set | 49 games (DQN, Double DQN) or 57 (dueling onward) | Rainbow takes DQN's 57-game scores from the dueling paper "since DQN's paper did not report scores for all 57 games" |
| Human baseline | DQN's professional tester (about 2 hours of practice, about 20 episodes per game), or the human starts' expert | Agent57 notes the baseline may underestimate what humans can do; a game where human and random scores are close makes the ratio fragile (the parent's Milestones tab shows Agent57's median game, Double Dunk, moving the median by about 42 points with a 0.05-point change of baseline) |
| Training rules | Life loss as episode end (DQN) or not (R2D2, Machado et al.); reward clipping (DQN) or value rescaling (R2D2); minimal or full 18-action set | These change what the agent optimises, not just how it is scored |
| What a "frame" is | Emulator frames, or agent steps of 4 frames | A factor of 4 in every budget (§3's recipe block) |
The Nature evaluation, which defined the human-normalised score for every paper since: each game played 30 times for up to 5 minutes, from up to 30 random no-op starts, with ε = 0.05; the professional human tester played "around 20 episodes of each game lasting a maximum of 5 min each, following around 2 h of practice", with no pausing, saving or reloading; the random baseline pressed a random action at 10 Hz.
Two more traps, found by recomputing printed tables on the parent page: a paper's per-game table can contradict its own summary (Agent57's two MuZero misprints), and two of a paper's own numbers can disagree (EfficientZero's abstract and section 5.2); both are on the Milestones and benchmarks tab of Topic: rl, with the arithmetic. The data-efficient regime: Atari 100k limits an agent to 100K steps (400K frames, about two hours of play; Kaiser et al. 2019); the value-based line continues there with data-efficient Rainbow, DrQ, SPR and BBF, a scaled-up value-based agent, whose IQM, median and mean, each with its seed count, are in the same Milestones tab.
Libraries implement DQN and a few descendants rather than full Rainbow: Stable-Baselines3 lists DQN for discrete actions only, with QR-DQN in its contrib package; CleanRL has single-file DQN and C51; Google's Dopamine implements DQN, C51, Rainbow and IQN (with SAC and PPO). Their defaults have drifted from the Nature paper (CleanRL: Adam at 0.0001 and plain MSE loss).
| Setting | DQN, Nature 2015 | CleanRL dqn_atari.py (master, read 4 October 2026) |
|---|---|---|
| Optimiser, learning rate | RMSProp, 0.00025 | Adam, 0.0001 |
| Loss | squared error with the TD error clipped to [−1, 1] (Huber) | mean squared error |
| Target network refresh | every 10,000 updates | every 1,000 environment steps (250 updates at one update per 4 steps) |
| ε schedule | 1.0 to 0.1 over the first 1M frames | 1.0 to 0.01 over the first 10% of 10M steps |
| Learning starts | 50,000 | 80,000 steps |
| Same in both | replay of 1M transitions, minibatch 32, γ = 0.99, one update per 4 steps, 30 no-op starts, frame skip 4 with max-pooling, life loss as episode end in training, reward clipping | |
From the CleanRL source. Its tau option allows soft (Polyak) target updates, θ− ← τθ + (1 − τ)θ−, the form DDPG introduced; the default τ = 1 is DQN's hard copy.
The Reading tab (33 minutes, plus 16 in closed details) goes from why a network breaks Q-learning through DQN, its six fixes and Rainbow (with its ablation decoded game by game) to the distributed agents and the Atari evaluation protocols. Links open in a new tab, with reading times (estimated for external resources).
The short intuitive overview of RL: one target (the Bellman equation), many estimators. Its Taxonomy tab classifies methods on 18 axes; its Method atlas tab puts 47 methods on one grid with sourced cells and a lineage graph (DQN 2013 and 2015 as separate rows, Double DQN, dueling, prioritised replay, C51, QR-DQN, Rainbow); its Milestones and benchmarks tab has the Atari-57 and Atari 100k numbers with their protocols, the per-game recomputation and the Agent57 misprint. (17 min, plus 2 in closed details)
ε-greedy, UCB, Thompson sampling, and exploration in deep RL (NoisyNet, count bonuses, RND, Go-Explore, Agent57's bandit).
Value iteration with a known model: what fitted Q iteration approximates with samples and a regressor.
Tabular TD, Q-learning, n-step returns and TD(λ), maximisation bias and Double Q-learning (Example 6.7 live), the TD fixed point and the deadly triad (the w, 2w pair and Baird's counterexample live): everything this page puts onto networks. (31 min, plus 9 in closed details)
This page.
REINFORCE to PPO, and DDPG, TD3 and SAC, which carry the replay buffer, target networks and Double Q's idea to continuous actions.
AlphaGo to MuZero; MuZero's Atari agent shares R2D2's value rescaling and replay.
Q-learning without interaction, where overestimation of unseen actions is the central problem (CQL, IQL).
Why language-model post-training uses policy gradients (PPO, GRPO) rather than Q-learning.
On-policy prediction with approximation (features, semi-gradient TD, the TD fixed point), control with approximation, and off-policy divergence: the w and 2w example, Baird's counterexample, the deadly triad, gradient-TD and emphatic TD. Section 16.5 tells the DQN story. (about 6 h)
Incremental and batch methods, convergence tables, DQN; the bridge from tabular to deep value methods. Lecture 7 (policy gradients) belongs to the sibling page. (about 1.5 h)
Lectures on value function methods and deep RL with Q-functions (fitted Q iteration, replay, target networks, Double Q, n-step) at lecture depth; the rest of the course covers the sibling pages. (about 3 h for these lectures; course about 25 h)
Single-file implementations with every implementation detail explained and benchmarked; the quickest way to read a working DQN. (about 40 min)
Google's research framework with DQN, C51, Rainbow and IQN implemented to be compared on equal terms. (about 30 min to read the agents)
Why medians over few seeds mislead, and how to report IQM with confidence intervals (the rliable library). (about 1 h)
The evaluation protocols, sticky actions and the recommended standard for Atari. (about 1 h)