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?
Reinforcement learning, n-step methods
Level L2 Elementary. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can compute -step returns that bootstrap after steps, and see that is TD(0) and is Monte Carlo.
Key idea
The -step return is . Larger uses more real rewards and less of the estimate , so bias falls and variance rises.
Steps
- : .
- : .
- : .
- : the episode ends after , so there is nothing to bootstrap. . This is the Monte Carlo return.
- Interpret. The estimates differ because the current values are not the true values. The more real rewards we use, the less the wrong matters.
- State the trade-off. Small : low variance (few random rewards) but bias from the possibly wrong . Large : low bias but high variance. An intermediate , such as to in many tasks, often learns fastest.
Common mistakes
- Using on the wrong term. The bootstrapped value is discounted by , and the reward by .
- Bootstrapping at the end of an episode. A terminal state has value , so the -step return equals the Monte Carlo return.
- Thinking -step TD is unbiased for . It is still biased through .
How long your answer should be
Half a page; 4 minutes.
Read this
Previous in Reinforcement learning: In state there are three actions with and the policy is -greedy with (random choice uniform over all three actions). The agent took action in with , got , and moved to . With and , compute the Expected SARSA update. How does it compare to SARSA and Q-learning, and why does it have lower variance than SARSA?
Next in Reinforcement learning: 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?