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

Exactly-once trajectories

Watch a retried trajectory reach the learner two times, and see IDs stop it.


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 · 24.12 · RL SYSTEMS BAY4 ROLLOUTS · 4 IDS
01
Stage 1 of 6 · Trajectory IDs
Each rollout gets a trajectory ID when it starts. It hashes the prompt, policy version and rollout number.
Explain it simply

The four bars are four tries at the same coding task. Each one gets a short name, its ID, the moment it starts. The ID comes from a hash of the task, the policy version and the try number. So any copy of this rollout, sent at any time, carries the same name.

Four rollout bars of 5, 2, 4 and 7 turns. Each bar shows its ID.

trajectoryacktimeoutscore, pushlost, crash, duplicatedropped, actor down
trajectory IDsactorlearner0 s5 s10 s15 sr1 · abb8d01dr2 · a8b8cb64r3 · a9b8ccf7r4 · a6b8c83eid = FNV-1a("leap-fix|v3|r1") = abb8d01dtrajectory IDsactorlearner0 s5 s10 s15 sr1 · abb8d01dr2 · a8b8cb64r3 · a9b8ccf7r4 · a6b8c83eid = FNV-1a("leap-fix|v3|r1") = abb8d01d
Toy: the 4 repo rollouts of 24.C1 (turn limit 8), one actor, one learner
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
idk=H(prompt, v, k)\sy{id}{data}{\mathrm{id}_k} = H(\text{prompt},\ \sy{v}{param}{v},\ k)
id1=H(leap-fix|v3|r1)=abb8d01d\mathrm{id}_1 = H(\text{leap-fix|v3|r1}) = \text{abb8d01d}

The ID is a hash of the prompt, the policy version and k.

Common mix-ups

MYTHDedupe by ID always stops duplicate trajectories.

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

Predict, then reveal
3 CHECKS · PRO
Q01With IDs made at rollout start and dedupe by ID, does the learner keep a re-run after a restart?

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.