LESSON 36.06 · 6 STAGES · 3 CONTROLS · 2 CHECKSPRO · PREVIEW
Parallel training of SSMs with scans
Watch a scan find every state of an SSM in a few levels.
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/moEXPLAINER · 36.06 · SCAN BAYLOOP · 8 STEPS IN A ROW · h8 = 0.160
01
Stage 1 of 6 · Loop over tokens
In training, every token is known at once. The loop still finds the state after each token, one after another: 8 steps.
Explain it simply
The teal u cells are the inputs, one per word. Beside each one, the h loop cell holds the state after that word. Each state needs the one before it, so the loop takes 8 steps in a row. A GPU with thousands of cores would wait on one cell at a time.
8 input cells over a row of 8 state cells joined by arrows. The states are 0.039, 0.378, 0.347, 0.289, 0.215, 0.327, 0.198, 0.160.
input u, state h (loop and scan), bĀ, a, costgap to the looppair copied downcombine
Toy: one 36.C2 SSM state, 8 or 16 story tokens, not trained
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each state keeps Ā of the last state and adds B̄ times the input.
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.