What is the "deadly triad" in reinforcement learning? How do you show with a two-state example, with and , a single weight , and reward everywhere, that off-policy semi-gradient TD(0) can diverge when only the transition is updated?
Reinforcement learning, Function approximation
Level L4 Advanced. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can name the three ingredients and show concretely how bootstrapping, function approximation and off-policy updates together can make the weights grow without bound.
Key idea
Divergence can occur when three things are combined: function approximation, bootstrapping, and off-policy training. For the example, each update multiplies by , which exceeds whenever .
Steps
- State the triad. (1) Function approximation: states share parameters. (2) Bootstrapping: the target uses the current estimate (TD, not Monte Carlo). (3) Off-policy training: updates are not weighted by the target policy's own state distribution.
- Set up the example. The features are and , so and . The true values are all , so is the right answer.
- Apply semi-gradient TD(0) to with reward : , and .
- Take and . The factor is . Starting from , three updates give . moves away from the true value and grows without limit.
- Explain why. Raising raises , but it also raises the target by more, because shares the weight and has a larger feature. The target keeps running away from the estimate.
- Explain why the on-policy case is safe. On-policy, the update on (here its self-loop with reward ) is also made and has factor . It pulls back, and the stationary weighting makes this dominate.
- Remove any one ingredient and the problem disappears. Tabular methods, Monte Carlo and on-policy linear TD converge. Practical fixes include target networks, replay with small learning rates, gradient-TD methods and emphatic TD.
Common mistakes
- Saying the triad always makes learning diverge. It only makes divergence possible, and deep Q-learning often works with tricks.
- Thinking the problem is the learning rate. In the example any positive gives a factor above when .
- Putting Monte Carlo in the triad. It has no bootstrapping, so it is safe from this failure.
How long your answer should be
Half a page; 5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Reinforcement learning: State and prove the policy improvement theorem. If for every state , why does it follow that for every ? How does this justify greedy policy improvement in policy iteration?
Next in Reinforcement learning: Starting from , prove that rewards received before time can be dropped from the factor multiplying . What does this give you, and what is a subtle mistake with the discount factor?