Log inStart free
LESSON 20.17 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Offline RL: coverage and extrapolation error

Watch a policy trained on a fixed log walk off its data.


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

Go Pro · $8.25/mo
EXPLAINER · 20.17 · OFFLINE RL BAYOFFLINE · 20 EPISODES · NO NEW PLAY
01
Stage 1 of 6 · Three setups
Offline RL learns from a fixed log. It never plays the game to test a move.
Explain it simply

Three ways to learn sit on the right. In supervised learning, every example comes with the right answer. In online RL, the agent tries a move and the game shows what happens. In offline RL, the agent only reads a log that another policy wrote.

Three rows compare supervised learning, online RL and offline RL. Offline RL reads a log, and its link to the game is dashed.

log, logged movesunsupported action, start guessQ too high, pit, lost moves, negative QQ-values, greedy path
the grid gamethree ways to learn01245789101112131415SG+1P−1supervised learninginput xmodellabel y, givenonline RLagentthe gamemove ar, s′offline RLlog D: 160agentthe game×the grid gamethree ways to learn01245789101112131415SG+1P−1supervised learninginput xmodellabel y, givenonline RLagentthe gamemove ar, s′offline RLlog D: 160agentthe game×
Toy: the 17.C1 grid game, 20 logged episodes, Q-table
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
D={(s,a,r,s′,d)}\sy{d}{data}{\mathcal{D}} = \{(s, a, r, s', d)\}
∣D∣=160 moves|\mathcal{D}| = 160\ \text{moves}

The log is a fixed set of moves.

Common mix-ups

MYTHExpert data alone is the safest log for offline RL.

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

Predict, then reveal
3 CHECKS · PRO
Q01With the full logger, a mixed log adds random episodes. Does the greedy policy reach G?

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 2 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.