WHY the target network? If we bootstrapped off Qθ itself, the target moves every gradient step → we chase a moving goalpost → divergence. Freezing a copy θ− makes the target approximately stationary for a few thousand steps.
HOW does this hurt learning? The inflated target propagates through the Bellman backup, is treated as ground truth, gets re-maxed next step... the error compounds and can make the agent prefer bad actions.
Imagine picking the "best" ice-cream flavour by tasting one tiny spoon of each. Sometimes a bad flavour tastes great on that one lucky spoon, so you overrate it. Double DQN = one friend picks the flavour, a different friend tastes it to score it — so a lucky spoon doesn't fool you.
Dueling DQN = instead of scoring each flavour from scratch, first ask "is this ice-cream shop even good?" (that's V), then only ask "is chocolate a bit better or worse than average here?" (that's A). You learn the shop's quality from any flavour you try, so you learn faster.
Why does the max operator in DQN cause overestimation?
Estimates are noisy; taking the max preferentially selects actions with upward noise, so E[maxaQ]≥maxaE[Q] — a positive bias that grows with the number of actions.
Write the Double DQN target.
y=r+γQθ−(s′,argmaxa′Qθ(s′,a′)) — select the action with the online net θ, evaluate it with the target net θ−.
What does plain DQN use to both select and evaluate the next action?
The target network θ− for both, which is exactly why the noise is double-counted.
How many new parameters does Double DQN add?
Zero — it only changes which network selects vs evaluates.
Define the advantage function.
Aπ(s,a)=Qπ(s,a)−Vπ(s): how much better action a is than the state's average.
What are the two streams in a Dueling network?
A scalar state-value stream V(s) and a per-action advantage stream A(s,a), sharing a feature trunk.
Why can't we just set Q=V+A directly?
Non-identifiability: adding c to V and subtracting c from all A gives identical Q, so the split is unstable/undefined.
Give the mean-centered dueling aggregation.
Q(s,a)=V(s)+(A(s,a)−∣A∣1∑a′A(s,a′)).
Under mean-centering, what does V(s) equal?
The mean of Q over actions: V(s)=∣A∣1∑aQ(s,a).
Why is mean-centering preferred over max-centering in dueling?
The mean is a smoother, lower-variance anchor; the max shifts with a possibly-changing argmax, hurting stability.
Why does the dueling value stream learn faster?
V(s) is updated by every transition regardless of action taken, so states get good values even for rarely-tried actions.
Can Double and Dueling be combined?
Yes — dueling is an architecture, double is a target rule; combined they give "Double Dueling DQN" (used in Rainbow).
Dekho, plain DQN mein ek chhoti si beemari hai: jab hum target banate waqt maxa′Q(s′,a′) lete hain, toh humara Q estimate thoda noisy hota hai. Max lene se hum us action ko chun lete hain jiske paas is baar lucky noise zyada tha. Isse target humesha thoda over-estimate ho jaata hai — agent zyada optimistic ban jaata hai. Double DQN ka jugaad simple hai: action choose karo online network θ se, lekin us action ki value evaluate karo target network θ− se. Dono ka noise alag-alag hota hai, toh lucky-noise ka double counting ruk jaata hai. Sirf ek line ka change, koi naya parameter nahi.
Dueling DQN doosri problem solve karta hai. Bahut saare states mein action barely matter karta hai (jaise seedhi road pe steering se koi farak nahi). Toh har action ke liye alag-alag full Q seekhna waste hai. Isliye network ko do streams mein tod dete hain: ek batata hai "yeh state kitni achhi hai" = V(s), doosra batata hai "yeh action average se kitna behtar/kharab hai" = advantage A(s,a). Fayda: V(s) har transition se update hota hai, chahe koi bhi action liya ho — isse learning fast ho jaati hai.
Ek catch hai: agar seedha Q=V+A likh doge toh split unique nahi rehta (V mein +c aur A mein −c karo, Q same rahega). Isliye hum advantage ka mean subtract karte hain: Q=V+(A−A). Isse V ban jaata hai average Q, aur split fix ho jaata hai. Mean use karte hain (max nahi) kyunki mean stable aur smooth hai.
Yaad rakhna: Double = selection online, evaluation target; Dueling = V plus A minus mean. Dono orthogonal hain, saath mein use kar sakte ho — Rainbow DQN mein yahi combo hota hai. Interview aur real projects dono mein ye standard tricks hain.