For a sampled transition, , , and the next state has online-network values and target-network values . Compute the target used by DQN and by double DQN. Why does the max in DQN cause over-estimation, and how does double DQN reduce it?
Reinforcement learning, Deep Q-networks
Level L2 Elementary. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you know that double DQN selects the action with the online network but evaluates it with the target network.
Key idea
DQN target: . Double DQN target: . Using two different networks to choose and to score the action breaks the positive correlation between "the action looks best" and "its value is over-estimated".
Steps
- DQN: at the third action. So .
- Double DQN, select: the online network's best action is the second one, with value .
- Double DQN, evaluate: the target network's value for the second action is . So .
- Explain over-estimation. The estimates are noisy. Since , taking a max over noisy estimates is biased upwards, and the bias then propagates through bootstrapping.
- Explain the fix. The online network's choice of action carries its own noise, but the target network's error on that action is roughly independent, so the evaluation is not systematically too high. The new target () is lower than the DQN target () here.
- Mention that double DQN reuses the existing two networks, so it costs almost nothing extra.
Common mistakes
- Evaluating the chosen action with the online network. That is the same network that selected it, so it removes no bias.
- Claiming double DQN is always lower. It can equal the DQN target when both networks agree on the best action.
- Thinking the target network is for the over-estimation fix. Its main role is to keep the regression target stable.
How long your answer should be
Half a page; 4 minutes.
Read this
Previous in Reinforcement learning: An episode has rewards , , , and then ends, with . The current estimates are , and . What are the -step returns for , and how does trade off bias and variance?
Next in Reinforcement learning: How do you derive the REINFORCE policy-gradient estimator, and why does subtracting a baseline not introduce bias?