Log inStart free
LESSON 37.C2 · 6 STAGES · 3 CONTROLS · 2 CHECKSPRO · PREVIEW

From environment to capability

Follow one coding task from its generator to a held-out test result.


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

Go Pro · $8.25/mo
EXPLAINER · 37.C2 · RL LOOP BAY8 TRAIN · 4 HELD-OUT · 2 NEW KIND
01
Stage 1 of 6 · Generate tasks
A task generator turns each seed into a calendar rule. Training uses 8 seeds; 6 tasks stay out.
Explain it simply

Each card is a coding task: fix a leap year function for one calendar. A seed picks the three numbers of the rule. Eight cards train the policy, and six cards wait for the test at the end.

The generator card first. 8 training cards, 4 held-out cards and 2 cards of a new kind.

tasks, tool runsdecoded tokens, passessettings, weightsfails, exploits
new weightsTask generatorEnvironmentInferenceVerifierLearnerHeld-out test19.0516.2124.0929.1424.0318.1212.0918.05G(θ, seed)a: 3, 4, 5 or 6b = a × 10, 20 or 25c = b × 2, 3 or 4new kind: d = c × 5 or 10one seed → one tasktraining: 8 seedsheld-out: 4 new seeds, same familynew kind: 2 tasks with a fourth ruleseed 15 · 50 · 150seed 25 · 50 · 100seed 46 · 60 · 120seed 55 · 125 · 250seed 73 · 30 · 120seed 83 · 60 · 120seed 93 · 75 · 150seed 105 · 125 · 500seed 115 · 100 · 300seed 124 · 40 · 120seed 135 · 100 · 200seed 144 · 80 · 240seed 225 · 50 · 100 · 500seed 284 · 100 · 400 · 4000→the RL loop: one coding environmentnew weightsTask generatorEnvironmentInferenceVerifierLearnerHeld-out test19.0516.2124.0929.1424.0318.1212.0918.05G(θ, seed)a: 3, 4, 5 or 6b = a × 10, 20 or 25c = b × 2, 3 or 4new kind: d = c × 5 or 10one seed → one tasktraining: 8 seedsheld-out: 4 new seeds, same familynew kind: 2 tasks with a fourth ruleseed 15 · 50 · 150seed 25 · 50 · 100seed 46 · 60 · 120seed 55 · 125 · 250seed 73 · 30 · 120seed 83 · 60 · 120seed 93 · 75 · 150seed 105 · 125 · 500seed 115 · 100 · 300seed 124 · 40 · 120seed 135 · 100 · 200seed 144 · 80 · 240seed 225 · 50 · 100 · 500seed 284 · 100 · 400 · 4000→the RL loop: one coding environment
Toy: 14 generated leap-year tasks, 4 plans, 20 rounds
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
task=G(θ,s)\sy{task}{data}{\text{task}} = G(\sy{theta}{param}{\theta}, \sy{seed}{param}{s})
G(θ,1)=(a,b,c)=(5,50,150)G(\theta, 1) = (a, b, c) = (5, 50, 150)

The generator turns parameters and a seed into one task.

Common mix-ups

MYTHA high training reward shows that the policy learned the task.

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

Predict, then reveal
2 CHECKS · PRO
Q01If the group grows from 4 to 8 rollouts, does round 1 take twice as long?

Make your guess, then test it in the diagram. All 2 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 2 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.