IT lexicon › AI & ML › Mamba

Mamba

AI & ML På svenska → Updated: 2026-07-30

Sequence model built on selective state space models instead of attention, with cost linear in sequence length. Published in December 2023 by Albert Gu and Tri Dao.

State space models had been around for years but underperformed transformers on language, because their dynamics are the same regardless of the input and they therefore cannot choose what to remember. Mamba makes the parameters a function of the input — the model can decide to forget a padding token and keep a name. The price is that the convenient convolutional form disappears, which is solved with a hardware-aware parallel scan that keeps the state in SRAM. The payoff is inference in constant memory per token rather than a KV cache that grows without bound. Mamba-2 tied the framework back to attention a year later, and hybrids like Jamba interleave the two kinds of layer.

← Back to the lexicon