Log inStart free
LESSON 17.11 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Generalized Advantage Estimation

Watch GAE turn one episode's TD errors into an advantage for every step.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 17.11 · POLICY GRADIENT BAY65 STEPS · FELL · V(s₀) 51.0
01
Stage 1 of 5 · Critic values
The critic guesses each state's state value V. It is 51.0 at step 0 and 8.1 at the last step.
Explain it simply

Each blue bar is the critic's guess of the return from that step, its state value. The guess is high while the pole stands well and drops near the fall. The teal ticks are the rewards, one point for each step the pole stays up.

65 steps. The value bars go from 51.0 to 8.1. Each step has reward 1.

state, rewardsweights γλTD errors, gradients, biasvalues, advantages
the state at the step−2.4 m2.4 mstep 0one episode, scored by the criticV(s)r60step 0step 50step 100the state at the step−2.4 m2.4 mstep 0one episode, scored by the criticV(s)r60step 0step 50step 100
Toy: the 17.C2 cart-pole, policy and critic after 10 updates
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
V(st)=v⋅ϕ(st)\sy{V}{out}{V(s_t)} = v \cdot \phi(s_t)
V(s0)=51.03V(s_0) = 51.03

The critic's value is a weighted sum of the state's sizes.

Common mix-ups

MYTHλ 1 is best, because it has no bias.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01At λ 0, how many TD errors does one advantage use?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.