AI & ML Atlas
Reinforcement LearningalgorithmAnimated walkthrough
Double DQN
DQN that picks an action with one network and scores it with another, curbing overestimation.
The idea
Taking the max over noisy Q estimates is biased upward. Double DQN chooses the best next action using the online network but evaluates that action with the target network, which decouples selection from evaluation and gives more accurate values.
y = r + γ Q_target(s′, argmaxₐ Q_online(s′, a))
Watch it run
The pipeline lights up one step at a time. Use the controls to pause or step through it.
- 1Pick a* = argmax Q_online(s′, ·).
- 2Evaluate it with the target network: Q_target(s′, a*).
- 3Form the target r + γ·Q_target(s′, a*).
- 4Train as in DQN.
y = r + γ Q_target(s′, argmaxₐ Q_online(s′, a))
1/4
Step by step
- 1Pick a* = argmax Q_online(s′, ·).
- 2Evaluate it with the target network: Q_target(s′, a*).
- 3Form the target r + γ·Q_target(s′, a*).
- 4Train as in DQN.
Where it is used
A near-free improvement over DQN.
Watch out for
Reduces but does not eliminate overestimation.