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

Goal-conditioned policies and universal value functions

Watch one value function reach goals that it never trained on.


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 · 20.09 · GOAL BAYGOAL E4 · ONE ARROW PER CELL
01
Stage 1 of 6 · Goal as input
The goal-conditioned policy reads the cell and the goal E4. Each arrow starts a shortest path.
Explain it simply

You see a small grid with a wall in the middle. The flag marks the goal, and each arrow shows the best move from its cell. The policy takes the goal as a second input. Pick another goal, and every arrow turns toward it.

A 5 by 5 grid with a wall in column C. The goal is E4. An arrow in each open cell shows the first move toward it.

cells, tablegoal, embeddingsvalues, movesstuck, error
policy π(a | s, E4)ABCDE12345goalπ(right | A1, E4): the first move toward the goalpolicy π(a | s, E4)ABCDE12345goalπ(right | A1, E4): the first move toward the goal
Toy: a 5 × 5 grid with a wall, 22 goals, −1 per move
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
π(a∣s,g)\sy{pi}{out}{\pi}(a \mid \sy{s}{data}{s}, \sy{g}{param}{g})
g=E4, r=−1 per moveg = \text{E4},\ r = -1 \text{ per move}

The policy picks a move from the cell and the goal.

Common mix-ups

MYTHA new goal needs its own value table and training.

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

Predict, then reveal
3 CHECKS · PRO
Q01At 8 training goals and goal E4, if k drops from 4 to 2, do more or fewer starts arrive?

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.