A duelling DQN has a value stream and an advantage stream. For one state, V=3 and A=(1,−1,3) for three actions. Compute Q using (a) Q=V+A, (b) Q=V+A−1∣A∣∑a′A(a′) and (c) Q=V+A−max⁡a′A(a′). Why is (a) not identifiable, and what do (b) and (c) fix?

Reinforcement learning, Deep Q-networks
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you understand that V and A cannot be recovered from Q alone unless the advantage is constrained.

Key idea

In a duelling network, Q(s,a)=V(s)+A(s,a)−(a baseline of A). Without the baseline, adding any constant c to V and subtracting c from every A gives the same Q, so V and A are not identifiable. Subtracting the mean (or the max) of A fixes this.

Steps

  1. (a) Q=3+(1,−1,3)=(4,2,6).
  2. Show non-identifiability. V′=4 and A′=(0,−2,2) also give Q=(4,2,6), so the network could not tell the two decompositions apart, and the "value" stream need not learn a value.
  3. (b) The mean of A is 1, so Q=3+(0,−2,2)=(3,1,5). The mean of Q over actions equals V=3. So V is exactly the average of Q, which makes it identifiable.
  4. (c) The max of A is 3, so Q=3+(−2,−4,0)=(1,−1,3). Now V=max⁡aQ=3, the value of the best action, like the Bellman optimality relation V∗=max⁡aQ∗.
  5. State the benefit. The shared V(s) is updated by every sample from state s, whatever the action, so it learns faster in states where actions matter little. Only the advantage stream needs to learn action differences.
  6. Say which is used in practice. The mean version is used in the original duelling DQN, since the max version makes A change abruptly when the best action switches, which is less stable.

Common mistakes

How long your answer should be

Half a page; 4–5 minutes.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: A replay buffer holds N=4 transitions with absolute TD errors (4,2,1,1). Prioritised experience replay samples transition i with probability P(i)=piα/∑kpkα with pi=∣δi∣ and α=0.5. Compute the sampling probabilities and the importance-sampling weights wi=(NP(i))−β (normalised by their maximum) for β=1 and β=0.5. Why are the weights needed?
Next in Reinforcement learning: For the policy-gradient estimate g^=(R−b) ∇θlog⁡πθ(a), derive the constant baseline b∗ that minimises variance. Then take a one-state problem with π(a1)=σ(θ)=0.8, π(a2)=0.2, rewards R(a1)=1 and R(a2)=0. Compute b∗ and the variance for b=0, b∗ and b=E[R]. Is the average reward the best baseline?