Sequence / Architecture
verifiedSelective State Space
A linear state space model treats every input the same way, which is efficient and also why it cannot decide that one token matters more than another. Making the update depend on the input restores that ability — the model can choose what to keep and what to let pass — and that single change is most of the gap between state space models and attention on language.
Input-dependent parameters break the convolutional trick, because the kernel is no longer fixed. The replacement is a hardware-aware parallel scan that keeps the state in fast memory and never materialises it in HBM, which is what makes the method practical rather than merely correct. This is the same lesson as flash-attention: the algorithm changed to fit the memory hierarchy, not the mathematics.
Making B, C and the step size Δ functions of u sub t makes the recurrence time-varying, so y = K * u no longer holds for any fixed K. An associative scan computes the same recurrence in O(L) work and O(log L) depth — work-efficient, so the parallelism costs nothing in total arithmetic — and the win on top of that is memory traffic: the state never leaves SRAM.
retained holds 50% of the budget; rest holds the remaining 50%.
Tokens the selection keeps in state against tokens it lets pass, in tokens. Drag the retention up to watch the state fill with everything — which is the behaviour selectivity exists to avoid.
Reviewed by opendroid · 2026-08-18
- arXiv:2312.00752 — Mamba: Linear-Time Sequence Modeling with Selective State Spaces