Skip to content
StackDecode
AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough

Dueling DQN

Splits the network into a state-value stream and an advantage stream.

The idea

In many states the choice of action barely matters, so it helps to learn how good the state is (V) separately from how much better each action is than average (the advantage A). The two streams are recombined into Q, which learns state values faster, especially when many actions are similar.

Q(s,a) = V(s) + A(s,a) − mean_a′ A(s,a′)

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Share convolutional features.
  2. 2One stream estimates V(s); the other estimates A(s, a).
  3. 3Combine: Q = V + (A − mean A).
  4. 4Train with the usual DQN loss.

Q(s,a) = V(s) + A(s,a) − mean_a′ A(s,a′)

1/4

Step by step

  1. 1Share convolutional features.
  2. 2One stream estimates V(s); the other estimates A(s, a).
  3. 3Combine: Q = V + (A − mean A).
  4. 4Train with the usual DQN loss.

Where it is used

Games and tasks with many redundant actions.

Watch out for

The mean subtraction is needed to make V and A identifiable.

Related