Show that generalised advantage estimation A^t=∑l≥0(γλ)lδt+l, with δt=rt+1+γV(st+1)−V(st), equals δt when λ=0 and the Monte Carlo advantage Gt−V(st) when λ=1. How do these limits explain the bias–variance role of λ? How do you check your claim on rewards (1,0,2) and values (3,2,1) with γ=0.9?

Reinforcement learning, Actor–critic
Level L3 Intermediate. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can prove the two limits by telescoping and link them to low-bias versus low-variance advantage estimates.

Key idea

At λ=0 only the l=0 term survives, so A^t=δt (one-step TD advantage). At λ=1 the sum of γlδt+l telescopes into ∑lγlrt+l+1−V(st). The parameter λ interpolates between the two.

Steps

  1. λ=0: every weight (γλ)l=0 for l>0, so A^t=δt=rt+1+γV(st+1)−V(st).
  2. λ=1: write A^t=∑lγl(rt+l+1+γV(st+l+1)−V(st+l)) and split it into three sums: ∑lγlrt+l+1+∑lγl+1V(st+l+1)−∑lγlV(st+l).
  3. The second sum is the third sum without its first term, so they cancel except for −V(st) (the far-future term vanishes at an episode end or as γL→0). Hence A^t=Gt−V(st).
  4. Numbers. The TD errors are δ=(−0.2,−1.1,1). With λ=0 the advantages are exactly these. With λ=1 the recursion with factor 0.9 gives A^=(−0.38,−0.2,1). Check against G0−V(s0)=(1+0+0.81×2)−3=−0.38 and G1−V(s1)=1.8−2=−0.2. They match.
  5. Interpret bias. δt uses the learned V(st+1), so it is biased when the critic is wrong. Gt−V(st) uses only observed rewards, so it is unbiased for any critic.
  6. Interpret variance. δt contains one random reward and one random next state, so its variance is low. Gt sums many random rewards and many random transitions, so its variance is high and grows with the horizon.
  7. Conclude: λ is a dial. In practice λ≈0.9 to 0.97 with γ≈0.99 works well. Equivalently, GAE is an exponentially weighted average of the k-step advantage estimators with weights (1−λ)λk−1.

Common mistakes

How long your answer should be

A page; 7–8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: A linear value function is V^(s)=w⊤ϕ(s) with w=(1,0)⊤. The agent moves from s to s′ with r=2, where ϕ(s)=(1,2)⊤ and ϕ(s′)=(0,1)⊤. With γ=0.9 and α=0.1, compute the semi-gradient TD(0) update, and compare with the residual-gradient update. Why is TD(0) called a "semi-gradient" method?
Next in Reinforcement learning: In RLHF, a reward model gives scores rc=2.0 to the human-preferred answer and rr=0.5 to the rejected one. Under the Bradley–Terry model, P(chosen preferred)=σ(rc−rr). Compute this probability, the loss −log⁡σ(rc−rr), and the gradients with respect to rc and rr. What happens when the scores are the other way round, and why does the loss depend only on the difference?