Log inStart free
LESSON 17.01 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Function approximation and the deadly triad

See three safe ideas together make value estimates grow without limit.


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

Go Pro · $8.25/mo
EXPLAINER · 17.01 · BAIRD'S STAR7 STATES · REWARD 0 · γ 0.99
01
Stage 1 of 6 · The star
Seven states, and every reward is 0. So the true value of every state is 0.
Explain it simply

You see seven circles, one per state. Every solid arrow leads to state 7, and every move pays a reward of 0. So the right value for every state is 0. Each circle shows the current guess: 3 in the outer states, 12 in state 7.

Seven states in a star. Six outer states have solid arrows to state 7 in the middle, which loops to itself. Every reward is 0. Start values are 3 outside and 12 in state 7.

states, update shareweightsvalues, targetserror δ, growth
baird's star3.0013.0023.0033.0043.0053.00612.007solid: to state 7 (target policy)dashed: to a random state 1–6reward 0 on every move · γ = 0.99true value v(s) = 0 in every statebaird's star3.0013.0023.0033.0043.0053.00612.007solid: to state 7 (target policy)dashed: to a random state 1–6reward 0 on every move · γ = 0.99true value v(s) = 0 in every state
Toy: Baird's 7-state star, expected updates, α 0.01, γ 0.99
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
vπ(s)=Eπ[∑tγtRt+1]=0\sy{v}{out}{v_\pi(s)} = \mathbb{E}_\pi\big[\textstyle\sum_t \gamma^t R_{t+1}\big] = 0
R=0, γ=0.99, v^=(3,3,3,3,3,3,12)R = 0,\ \gamma = 0.99,\ \hat v = (3, 3, 3, 3, 3, 3, 12)

Every reward is 0, so every true value is 0.

Common mix-ups

MYTHFunction approximation alone makes value learning diverge.

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

Predict, then reveal
3 CHECKS · PRO
Q01With a table, one weight per state, does the largest error still grow?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 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.