5.2.4 · D1Deep & Advanced RL

Foundations — Double DQN and Dueling DQN

2,183 words10 min readBack to topic

Before you can read a single formula in Double DQN and Dueling DQN, you need the alphabet. Every letter below is defined in plain words, drawn as a picture, and justified — why does the topic even need this symbol? Read top to bottom; each rung stands on the one before it.


1. The state — "where am I right now?"

Picture a single frame of a video game frozen on the screen. That frozen frame is . Nothing about the future or the past — just "here is the world, right now".

Why the topic needs it: every value the agent learns is conditioned on a state. There is no "how good is this action" without first asking "in which situation?".


2. The action — "what can I do?"

Why the topic needs it: Dueling DQN's whole trick is about how many buttons matter. The symbol appears directly in its mean-centering formula (you divide by it), so you must be comfortable that it is just "count the buttons".

The vertical bars
They mean "size of" — is the number of actions.

3. The reward — "did that go well?"

Picture a scoreboard that ticks up or down by one number each time you press a button. That tick is .

Why the topic needs it: is the only real, non-guessed quantity in every target formula. Everything else is an estimate; is ground truth the environment gives us.


4. The return and the discount — "total future reward, but nearer counts more"

Why the shrinking? Two reasons. (1) The future is uncertain — a reward you might get in 50 steps is less trustworthy than one now. (2) The sum must stay a finite number even over infinitely many steps; multiplying by each time makes it converge.

Why the topic needs it: sits right in front of the estimated future value in every target — . The entire "overestimation" disease lives inside that term.


5. The Q-value — "score of doing in "

Why the topic needs it: Double DQN worries that these numbers come out too big. Dueling DQN worries that we store them wastefully. You cannot understand either fix without knowing is "the score of a (situation, choice) pair."


6. The network and its weights — "the -table is too big, so we approximate it"

Why the topic needs it: every formula tags with a subscript — or — and those subscripts are the entire point of Double DQN. If you don't read as "which set of dials", the fix looks like meaningless decoration.


7. The target network — "a frozen photocopy of the dials"

Why the topic needs it: Double DQN's slogan is literally "select with , evaluate with ". Two symbols, two networks. If is a mystery, the cure is a mystery.


8. , , and the difference between them

This is the single most confused pair in the whole topic, so we separate them slowly.

Why the topic needs it — and why the split matters: plain DQN does : it uses one network to both pick the winner and read its value. Double DQN carefully separates the two: (pick) with , then read the value with . You literally cannot state the fix unless you know that gives an action and gives a value. This is the crux of the whole page — see Overestimation Bias in Q-learning.


9. Expectation and noise — "on average, over the randomness"

Why the topic needs it: the key inequality is what proves DQN is an optimist. It's an average-of-noise statement, pure and simple.

The picture above is the whole disease in one image: each guess is truth-plus-noise, and picking the maximum systematically grabs whichever one got lucky — so the max floats above the true value.


10. Value and Advantage — "state goodness vs. action edge"

Why the topic needs it: Dueling DQN builds two separate streams — one computes , one computes — and glues them back with . Without knowing is "state goodness" and is "edge over average", that formula is gibberish.


Prerequisite map

state s

Q value of s and a

action a and count of A

reward r

return over time

discount gamma

network Q with weights theta

target net theta minus

max and argmax

expectation and noise epsilon

overestimation bias

Double DQN fix

value V and advantage A

Dueling DQN fix

Double and Dueling DQN


Equipment checklist

Cover the right side and answer out loud before revealing.

What is a state in one phrase?
A complete snapshot of the current situation the agent sees.
What does mean?
The number of actions available (size of the action set).
What is the reward , and is it estimated or given?
The single number the environment hands you after an action — it is given, not estimated.
Why do we multiply future rewards by ?
To value near rewards more and to keep the infinite sum finite (convergent).
In plain words, what is ?
The expected total future reward of doing in and then playing optimally.
What do the dials represent?
All the tunable weights of the neural network that computes .
How does differ from , and why keep it?
is a frozen older copy of ; it keeps the learning target still so we don't chase a moving goalpost.
What does output versus ?
outputs the largest value; outputs the action that achieved it.
Why is the seed of overestimation?
Taking a max over noisy estimates preferentially grabs lucky-high noise, so the average of the max sits above the truth.
State the relationship between , , and .
: state goodness plus the action's edge over average.