What is the "deadly triad" in reinforcement learning? How do you show with a two-state example, with V^(s1)=w and V^(s2)=2w, a single weight w, and reward 0 everywhere, that off-policy semi-gradient TD(0) can diverge when only the transition s1→s2 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 w by 1+α(2γ−1), which exceeds 1 whenever γ>0.5.

Steps

  1. 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.
  2. Set up the example. The features are ϕ(s1)=1 and ϕ(s2)=2, so V^(s1)=w and V^(s2)=2w. The true values are all 0, so w∗=0 is the right answer.
  3. Apply semi-gradient TD(0) to s1→s2 with reward 0: δ=0+γ (2w)−w=(2γ−1) w, and w←w+α δ ϕ(s1)=w[1+α(2γ−1)].
  4. Take γ=0.9 and α=0.1. The factor is 1+0.1×0.8=1.08. Starting from w=1, three updates give 1.083≈1.26. w moves away from the true value 0 and grows without limit.
  5. Explain why. Raising w raises V^(s1), but it also raises the target γV^(s2)=2γw by more, because s2 shares the weight and has a larger feature. The target keeps running away from the estimate.
  6. Explain why the on-policy case is safe. On-policy, the update on s2 (here its self-loop with reward 0) is also made and has factor 1+4α(γ−1)<1. It pulls w back, and the stationary weighting makes this dominate.
  7. 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

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 qπ(s,π′(s))≥vπ(s) for every state s, why does it follow that vπ′(s)≥vπ(s) for every s? How does this justify greedy policy improvement in policy iteration?
Next in Reinforcement learning: Starting from ∇θJ(θ)=Eτ[∑t∇θlog⁡πθ(at∣st)∑krk+1], prove that rewards received before time t can be dropped from the factor multiplying ∇θlog⁡πθ(at∣st). What does this give you, and what is a subtle mistake with the discount factor?