Skip to main content

← Back to AI Papers

Architecture

Mamba: Linear-Time Sequence Modeling with Selective State Spaces

Problem: earlier subquadratic architectures (linear attention, gated convolution, structured state space models) did not match attention on discrete modalities such as language, and the authors identify the key weakness as an inability to select what to remember or forget based on content; can SSM parameters be made input-dependent while still training efficiently.
Where the evidence sits: the selection mechanism is in 3.2, the hardware-aware parallel scan in 3.3, and the simplified architecture without attention or MLP blocks in 3.4; language modelling scaling laws are in 4.2.1 and Figure 6 (roughly 125M to 1.3B parameters, the Pile, under the Chinchilla protocol), zero-shot downstream results in Table 1, and speed and memory in 4.5 and Figure 12; the limits are in Section 5 Discussion, under No Free Lunch, Downstream Affordances and Scaling.
What the authors say about limits: the Scaling paragraph in Section 5 states that the empirical evaluation is limited to small model sizes, below most strong open source LLMs and below RWKV and RetNet which have been evaluated at 7B and beyond, that whether Mamba still compares favorably at larger sizes remains to be assessed, and that scaling SSMs may involve further engineering challenges and model adjustments not discussed in the paper; the No Free Lunch paragraph says selection overcomes weaknesses on discrete modalities but can conversely impede performance on the continuous signals where LTI SSMs excel, a tradeoff examined in the audio waveform ablations; the Downstream Affordances paragraph leaves open whether fine-tuning, adaptation, prompting, in-context learning, instruction tuning, RLHF and quantisation behave the same way.
What it does not claim: the paper does not claim an advantage over Transformers above 7B; the 5× figure is inference throughput, not training speed, and 4.5 explains it comes from having no KV cache and therefore much larger batch sizes, with the example being an untrained Mamba-6.9B against a Transformer-1.3B five times smaller; the million-length extrapolation result comes from the synthetic induction heads task in 4.1.2, where the authors note all attention models were only tested up to 16384 because of memory limits, so it is not a like-for-like length comparison; and Table 1 restricts comparison to open models sharing the tokenizer, dataset and 300B training tokens (Pythia, RWKV), with perplexity compared only within the same tokenizer.

Key specs

证据位置 / evidence
§3.2–§3.4(方法);§4.2.1 与 Figure 6、表 1(语言);§4.5 与 Figure 12(速度);§5 Discussion(局限)
语言模型规模 / scale
摘要口径 Mamba-3B,称同规模优于 Transformer、追平两倍规模
推理吞吐 / throughput
摘要 5×;§4.5 记为 4–5×,相对同规模 Transformer
序列长度 / length
随序列长度线性;真实数据上到百万长度仍改善(摘要口径)
复现状态 / reproduction
未复现

What the source says

Mamba enjoys fast inference (5× higher throughput than Transformers) and linear scaling in sequence length, and its performance improves on real data up to million-length sequences.
1 https://ar5iv.labs.arxiv.org/html/2312.00752
On language modeling, our Mamba-3B model outperforms Transformers of the same size and matches Transformers twice its size, both in pretraining and downstream evaluation.
2 https://ar5iv.labs.arxiv.org/html/2312.00752
Mamba achieves 4-5× higher inference throughput than a Transformer of similar size, since without the KV cache it can use much higher batch sizes.
3 https://ar5iv.labs.arxiv.org/html/2312.00752
It remains to assess whether Mamba still compares favorably at these larger sizes.
4 https://ar5iv.labs.arxiv.org/html/2312.00752

Source and licence

Source checked
2026-11-07
Licence / kind
arxiv-preprint
Licence evidence
https://arxiv.org/abs/2312.00752
Category
Architecture

How to read the numbers

Before citing a score, separate what it measures, how it is scored, what it compares against and whether contamination is controlled. If unsure, go back to the experiment setup in the paper. See benchmark cards · See dataset cards

More in this category

Next step

Open the official page →

← Back to AI Papers