State space models

Wiki chapters and blog posts about State space models.

Wiki

State Space Models and Hybrids: Trading the KV Cache for a Fixed-Size State

Linear attention, state space models (Mamba) and the gated delta rule compress history into a fixed-size state: memory stays flat as context grows, but capacity is limited by the state size. Hybrids keep a few attention layers for exact recall; Jamba's KV cache is 1/8 of Mixtral's.

Advanced 47 min read

Blog posts

Mamba: linear-time sequence modeling with selective state spaces

Mamba makes a state space model's Δ, B and C depend on the current token (selection) and runs it with a hardware-aware scan: linear cost in length, fixed-size state at inference. We recompute its parameters and Table 3, then compare LTI and selective SSMs on selective copying.

Paper notes arXiv 2023

Topics