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

State-space models and recurrent state

Watch 8 state numbers carry 64 tokens forward in a fixed amount of memory.


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 · 36.05 · STATE BAY8 STATES · Λ 1/64 TO 2
01
Stage 1 of 6 · Leaky state
A state-space model keeps 8 state numbers per channel. Without input, each one fades at its own rate λ.
Explain it simply

Each row is one state number. Think of a cup with a small hole: what you pour in slowly leaks out. The top row, h1, leaks slowest, at a rate of 1 over 64. The bottom row, h8, leaks fastest, at a rate of 2.

Eight rows, one per state number. Each row shows a curve that falls from 1 toward 0. The top curve falls slowest and the bottom curve falls fastest.

The weights are set by hand, not trained.
input u, state hA, Δ, Ā, B̄, Coutput ydashed cell: dropped state
8 states, no input116324864tokenh1λ 1/64h2λ 1/32h3λ 1/16h4λ 1/8h5λ 1/4h6λ 1/2h7λ 1h8λ 28 states, no input116324864tokenh1λ 1/64h2λ 1/32h3λ 1/16h4λ 1/8h5λ 1/4h6λ 1/2h7λ 1h8λ 2
Toy: one channel of the 36.C2 model, 8 states, 64 tokens · weights set by hand
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
h′(s)=A h(s)+B u(s),A=−λ, B=λ\sy{hd}{data}{h'(s)} = \sy{A}{param}{A}\,\sy{h}{data}{h(s)} + \sy{B}{param}{B}\,\sy{u}{data}{u(s)}, \quad \sy{A}{param}{A} = -\lambda,\ \sy{B}{param}{B} = \lambda
λ1=1/64, λ2=1/32, …, λ8=2\lambda_1 = 1/64,\ \lambda_2 = 1/32,\ \dots,\ \lambda_8 = 2

The state moves toward the input at the speed λ.

Common mix-ups

MYTHThe state remembers every past token exactly.

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

Predict, then reveal
3 CHECKS · PRO
Q01If Δ goes from 1 to 2, does h1 keep more or less of a push by the last token?

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.