State Space Models for Language › Summary
Michael BrenndoerferNovember 17, 20262 min read
Language AI HandbookAll chapters - A recurrent state space layer stores the state from its last update. In a fixed-width, purely recurrent layer, storage and per-step recurrent work stay constant as the processed prefix grows.
- Exact zero-order hold gives the transition and write map . The integral handles singular . For a negative scalar rate, shorter steps preserve more of the previous state.
- A zero-initial-state LTI recurrence can evaluate the same outputs by causal convolution with taps , plus the direct path at lag zero. Constructing the taps and applying them are distinct operations. S4's structured state matrix makes construction more efficient.
- Mamba-1 conditions the step size, write vector, and read vector on the input. Once those quantities are computed, the state updates can be composed as affine maps and evaluated by an ordered parallel scan.
- Mamba-2's scalar transition within each head yields a mixing matrix built from unnormalized dot products and a causal decay mask. SSD exploits low rank in blocks across chunk boundaries. It uses matrix multiplication inside chunks and propagates the recurrent state between them.
The next chapter looks at using attention and state space layers in one architecture and at what changes when you move either type of layer.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!