State Space Models for Language › Summary

Michael BrenndoerferNovember 17, 20262 min read
Language AI HandbookAll chapters
Part 19 of 67Alternative Sequence and Generative Architectures
Chapter 133State Space Models for Language › Summary
Reading section 12 of 13 · Summary · 2 minSection 12 of 13 · 2 min

Section 12 of 13 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments
  • 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 eΔAe^{\Delta A} and write map Bˉ=(∫0ΔeτA dτ)B\bar B=(\int_0^\Delta e^{\tau A}\,d\tau)B. The integral handles singular AA. 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 CAˉjBˉC\bar A^j\bar B, 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!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy