State Space Models
The Workshop · Model ArchitecturesRecurrent-style architectures (Mamba, RWKV) with constant memory per token.
Also called: state space model, SSM, Mamba, RWKV, hybrid architecture, recurrent architecture. In the glossary.
How it works, as a machineThe Counting House with One Ledger Page · streams
Follow one stream from a ten-thousand-token page to an answer read from one state, in a night counting house with one ledger page and a tape feeder.
- Wind the tape in
- Choose what to write
- Fold the writes
- Overwrite the ledger
- Read the answer back
State Space Models in plain words
A state space model reads text one token at a time and keeps a fixed-size running summary instead of looking back at everything. Memory use stays constant however long the input grows. That makes very long sequences cheap, at the risk of forgetting details the summary did not keep.
An analogy
A ship's navigator keeping a position by dead reckoning. Each hour one line in the log is updated from speed and heading, and nobody rereads the whole voyage. The log stays one line long across an ocean, and whatever was not folded into that line is gone.