Paper
High-Dimensional Continuous Control Using Generalized Advantage Estimation
GAE introduces a single parameter λ that continuously interpolates between high-bias/low-variance TD and low-bias/high-variance Monte Carlo advantage estimates.
John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, Pieter Abbeel — UC Berkeley2015arXiv ↗Views: –
Which action gets the credit
A trajectory ends with a number — the return — but the policy gradient needs to know which of the dozens of actions along the way deserve the praise or the blame. The object that answers this is the advantage,
which measures how much better action is than the policy's average behavior at state , and so points the gradient toward actions that beat the baseline rather than merely toward actions that preceded good outcomes. The trouble is that is defined in terms of and , neither of which we know exactly, so every practical method estimates the advantage and inherits a tradeoff in how it does so.
A spectrum of estimators
The cleanest way to see the tradeoff is to bootstrap off a learned value function after a fixed number of real reward steps. The one-step estimator takes a single observed reward and then trusts for everything after:
It has low variance because only one random action feeds into it, but high bias, because it leans almost entirely on being correct. Pushing the bootstrap further out gives the -step estimator, which uses real rewards before falling back on :
As grows, more of the estimate comes from observed reward and less from the value function, so bias falls while the accumulated randomness of actions drives variance up. Take to infinity and the bootstrap term vanishes entirely, leaving the Monte Carlo estimator:
This is unbiased — it uses the actual return, not a guess — but it pays for that with the highest variance of the family, since it sums every random reward to the end of the episode.
The TD residual is the building block
Define the one-step temporal-difference residual, the gap between the bootstrapped and predicted value at a single step:
The residuals telescope: substitute the definition of each into a partial sum and the intermediate terms cancel, so the -step advantage is exactly a discounted sum of consecutive residuals,
This rewrites the whole spectrum in one currency — every -step estimator is a truncated, discounted stream of 's — which is what makes it possible to average over all of them cheaply.
Averaging over the whole spectrum
Rather than commit to a single horizon , generalized advantage estimation takes an exponentially weighted average of every -step estimator, with a decay deciding how much weight long horizons receive. Written in residuals it collapses to a single geometric sum:
The second form makes the interpretation explicit: GAE blends the low-variance short horizons and the low-bias long horizons in fixed proportions, with as the single dial that sets the mix.
The two ends of the dial
The endpoints recover the estimators we already have. At every term but the first drops out and GAE reduces to the one-step residual,
which is pure TD(0) — minimum variance, maximum reliance on . At the weights stop decaying and the residuals telescope all the way to the episode's end,
which is the Monte Carlo estimate — unbiased, highest variance. Values in between trace a continuous path from one regime to the other.
Computing it in one pass
The geometric structure means GAE never has to materialize the infinite sum. The estimate at each step is the current residual plus a discounted copy of the estimate at the next step:
Sweeping backward through a trajectory from the last step to the first computes every in a single linear pass, which is why GAE costs essentially nothing on top of the value-function evaluations you were already doing.
Why PPO settles near λ ≈ 0.95
PPO runs with a that is learned online and therefore imperfect, which rules out both extremes. Pure TD () inherits the full bias of that imperfect value function, since it trusts after a single step; full Monte Carlo () ignores entirely and drowns the gradient in the variance of long episodes. A setting around leans mostly on observed returns — keeping bias low where is least trustworthy — while letting the small amount of bootstrapping smooth away the worst of the variance, and empirically that is the band where continuous-control and RLHF runs train most stably.