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

Policy lag and stale rollouts

Watch a stale batch reach a learner that has already moved on.


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 · 24.10 · LAG BAYACTOR v0 · 4 ROLLOUTS · LOG μ −1.39
01
Stage 1 of 5 · Record log μ
The actor samples 4 rollouts with policy v0, the behavior policy. It records each one's log probability, log μ.
Explain it simply

The actor is the worker that plays the task. It holds one copy of the policy, version v0, so each rollout here had a 25 percent chance. Beside each rollout it writes that chance as a log, about −1.39. This note is the only record, because the weights that made it change soon.

Four rollout rows. Each row shows its turns, its reward, its advantage and its recorded log mu of −1.39, tagged version v0.

rollouts, recorded log μpolicy versions, π, lagreward, A, ratio, true ratioclipped push, wasted batchold policy μ0.8–1.2 band
actorholds policy v0 and samples the batchv0batch of 4 rolloutsturnsrAlog μrollout 11+1.50−1.39v0rollout 20−0.50−1.39v0rollout 30−0.50−1.39v0rollout 40−0.50−1.39v0the actor records log μlog μ = log 0.25 = −1.39 for every rolloutactorholds policy v0 and samples the batchv0batch of 4 rolloutsturnsrAlog μrollout 11+1.50−1.39v0rollout 20−0.50−1.39v0rollout 30−0.50−1.39v0rollout 40−0.50−1.39v0the actor records log μlog μ = log 0.25 = −1.39 for every rollout
Toy: the leap-year task, 4 rollouts, one logit per rollout
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
log⁡μi=log⁡πv0(i)\sy{mu}{data}{\log \mu_i} = \log \pi_{v_0}(i)
log⁡μ1=log⁡0.25=−1.386\log\mu_1 = \log 0.25 = -1.386

Log μ is the behavior policy's log chance of the rollout.

Common mix-ups

MYTHThe learner can recompute log μ when it trains.

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

Predict, then reveal
3 CHECKS · PRO
Q01With a policy lag of 0, what ratio does each rollout get?

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.