Mamba-3: Improved Sequence Modeling using State Space Principles
- Publication
- ICLR 2026Conference
- First submitted to arXiv
- arXiv:2603.15569
Cite this paper · BibTeX
The citation identifies the linked source version. It cites the original paper and its authors.
@misc{mambamamba32026,
title = {{Mamba-3: Improved Sequence Modeling using State Space Principles}},
author = {Aakash Lahoti and Kevin Y. Li and Berlin Chen and Caitlin Wang and Aviv Bick and J. Zico Kolter and Tri Dao and Albert Gu},
year = {2026},
eprint = {2603.15569},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2603.15569}
}
More than two years after the first Mamba, the third version has arrived.
The author list brings in a new set of faces, still advised by Albert Gu and Tri Dao. The listed affiliations are Carnegie Mellon, Princeton, Together AI, and Cartesia AI, with Tri Dao affiliated with Princeton and Together AI, and Albert Gu with Carnegie Mellon and Cartesia AI.
Read this paper's introduction and you'll notice a very different tone from 2023. Back then, Mamba was about whether it “could become the backbone of general sequence models”; this paper's first paragraph is about inference cost, now that chain-of-thought reasoning and agent workflows have made inference-time computation key to model performance. The authors then point out directly that layers like Mamba-2 and Gated DeltaNet have already been built into large-scale hybrid models from Kimi, NVIDIA, Tencent Hunyuan, and Qwen.
So this paper sets out to provide a better linear layer for those hybrid models.
Defining the Problem
The authors list three problems:
- Mamba-2 sacrificed expressiveness for training speed. At the same inference cost, Mamba-2 models are worse. Tri Dao had already mentioned this on his blog in 2024.
- State tracking is out of reach. Take a string of 0s and 1s and ask whether the number of 1s is odd or even: a single-layer LSTM can do this, but Mamba-2 can't. Earlier research has already proven why: the eigenvalues of the state transition are restricted to nonnegative real numbers.
- The hardware sits idle during decoding. These algorithms were all designed with training in mind. Decoding processes one token at a time, with very little computation, yet the entire state has to be read from memory and written back; the GPU spends most of its time waiting for data, and the arithmetic intensity (computation divided by memory traffic) is very low.
Taking an “inference-first” view, the authors go back to the principles of state space models and offer a solution to each.
Solving the Problem
1. More Expressive Discretization
State space models are originally continuous-time systems; to process tokens one by one, they first have to be discretized. The authors begin by pointing out that the Mamba-1 and Mamba-2 papers write down one formula, while the actual code uses a different approximation. They supply a derivation for that approximation and call it exponential-Euler:
It uses only the input at the right endpoint of the interval, which makes it a first-order approximation. Mamba-3 switches to a generalization of the trapezoidal rule that looks at both ends of the interval:
Here , , and , with determined by the data. When , it reduces to Mamba-2; when , it approximates the integral of the (exponentially decayed) input by averaging its two endpoints, much like the trapezoidal rule. Reaching a higher order of error also requires conditions such as being close to ; the actual model lets be learned freely, mainly to make the recurrence more expressive.
This formula adds a term for the previous token's input, which amounts to applying a width-2 convolution to the SSM's input first. The authors found that, once learnable bias terms are also added to and , the short convolution that almost every linear model includes can be removed:
| Variant (440M) | Perplexity |
|---|---|
| Mamba-3 without bias and trapezoid | 16.68 |
| Mamba-3 without bias | 16.49 |
| Mamba-3 | 15.72 |
| Mamba-3 with short conv added back | 15.85 |
2. Complex States: Taking a Spin
Start with parity. If the state can “rotate,” turning half a circle on a 1 and staying put on a 0, all that's left is to see which side it ends up on; after a thousand bits, the rotating state lands exactly on the answer. By contrast, a non-negative scalar decay like Mamba-2's can only multiply by a number between 0 and 1 at each step, so the state only shrinks and can never flip to the other side. Earlier theorems cover the more general case: as long as all eigenvalues of the transition matrix are non-negative reals, such a linear RNN cannot solve parity of arbitrary length with finite precision.
In complex numbers, rotation means multiplying by . The authors turn Mamba-3's SSM into a complex form and prove two things:
- A complex SSM can be rewritten as a real SSM of twice the dimension, whose transition matrix is the decay coefficient times a block diagonal made of 2×2 rotation matrices.
- Absorbing the rotation accumulated so far into and is equivalent to applying a data-dependent rotary positional embedding (RoPE).
The second point is very practical. RoPE already has highly mature, cheap implementations in Transformers, and Mamba-3 can reuse them directly at very little extra cost. The difference is that ordinary RoPE rotates each position by a fixed angle, while in Mamba-3 the angle is determined by the input.
Results on formal-language tasks (scaled accuracy, %):
| Model | Parity | Modular arithmetic (no brackets) | Modular arithmetic (with brackets) |
|---|---|---|---|
| Mamba-3 | 100.00 | 98.51 | 87.75 |
| Mamba-3 (with standard RoPE) | 1.56 | 20.70 | 2.62 |
| Mamba-3 (no RoPE) | 2.27 | 1.49 | 0.72 |
| Mamba-2 | 0.90 | 47.81 | 0.88 |
| GDN (eigenvalue range [−1, 1]) | 100.00 | 99.25 | 93.50 |
This test trains on short sequences and evaluates on longer ones. Among the Mamba-3 variants, only the version with data-dependent angles does well on all three; the fixed-angle RoPE and no-RoPE versions are mostly near zero, with only the fixed-angle version reaching 20.70 on modular arithmetic without brackets. (The table reports scaled accuracy, where 0 roughly corresponds to random guessing.) Mamba-2 partly succeeds on modular arithmetic without brackets (47.81), while its parity and bracketed modular arithmetic scores are near zero.
The last row of the table is Gated DeltaNet, which allows negative eigenvalues; it can solve these tasks too, and does even better on modular arithmetic with brackets. Complex numbers aren't the only road to state tracking; negative eigenvalues are another way to flip over.
3. MIMO: Keeping the GPU Busier During Decoding
The original SSM performs a single-input, single-output (SISO) update at each step, in which the input takes one outer product with , adding a rank-1 matrix to the state. During decoding, each step has to read and write the entire state, yet the computation is tiny.
Mamba-3 replaces this with multi-input, multi-output (MIMO), in which the input and each get branches, so every step writes an update of rank at most , and the readout also uses sets of , while the state size stays the same. When is much smaller than the state dimension and the head dimension, the computation in the SSM's main operations grows roughly in proportion to , while memory traffic is still dominated by that fixed-size state, so the arithmetic intensity rises along with it. Decoding is memory-bound to begin with, so the extra computation essentially puts the GPU's idle time to use.
The paper uses . To keep the parameter count equal to the SISO version, the MLP's intermediate size in the 1.5B model shrinks from 4096 to 3824. MIMO is slower in training; the authors say it can take up to times as long as SISO.
Architecture

Comparing the two blocks:
- The short convolution is gone, replaced by the trapezoidal rule and the bias terms.
- and are normalized first, which works much like QK normalization in Transformers.
- RoPE is added, with the angle produced from the input; this is how the complex state is implemented.
- The yellow MIMO projection is optional.
- Pure Mamba-3 drops the normalization layer that Mamba-2 had before the output; when Mamba-3 is placed in a hybrid model, the authors found that adding it back helps length generalization.
The overall skeleton follows Llama, with Mamba-3 blocks alternating with SwiGLU.
Discussion
Language Modeling
All models are trained on 100B tokens of FineWeb-Edu with a 2K context, at four scales from 180M to 1.5B. The 1.5B results:
| Model | FineWeb-Edu perplexity | Seven-task average accuracy |
|---|---|---|
| Transformer | 10.51 | 55.4 |
| GDN | 10.45 | 55.8 |
| Mamba-2 | 10.47 | 55.7 |
| Mamba-3 SISO | 10.35 | 56.4 |
| Mamba-3 MIMO () | 10.24 | 57.6 |
SISO is 0.6 points above the runner-up, GDN, and MIMO adds another 1.2 points. At all four scales, Mamba-3 SISO beats Mamba-2.

Decoding speed is determined mainly by state size, so the authors use state size as a proxy for inference speed. In the figure, at every state size, Mamba-3 has lower perplexity than Mamba-2; the MIMO version with a state size of 64 already matches the perplexity of Mamba-2 with a state size of 128. That's where the abstract's “half of its predecessor's state size” comes from.
Retrieval: Pure Models Still Fall Short
Retrieval remains the weak spot of a fixed state. Here are real-world retrieval tasks for the 1.5B models, truncated to 2K tokens:
| Model (1.5B) | SWDE | SQuAD | FDA | TriviaQA |
|---|---|---|---|---|
| Transformer | 48.9 | 46.6 | 58.4 | 67.5 |
| Mamba-2 | 30.7 | 39.1 | 23.7 | 64.3 |
| Mamba-3 SISO | 28.5 | 40.1 | 23.4 | 64.5 |
| Mamba-3 MIMO | 36.3 | 41.7 | 29.3 | 64.5 |
| Hybrid Mamba-3 SISO | 58.5 | 47.0 | 65.9 | 64.8 |
These real-world datasets are all rewritten as cloze versions truncated to 2K tokens. On question answering like TriviaQA, the models are about even, but on tasks like SWDE and FDA, which require extracting information from semi-structured web pages or documents, pure Mamba-3 SISO trails the Transformer by 20.4 and 35.0 points respectively, and the MIMO version narrows the gaps to 12.6 and 29.1. The hybrid version, with attention layers added, catches up with or surpasses the Transformer on these items.
Here the authors write, “Because of the natural retrieval-based weaknesses of fixed state-size, we predict that linear layers will be predominantly used in hybrid architectures that mitigate this downside with quadratic self-attention layers.”
That sentence comes from a paper by Mamba's own original authors. Compared with 2023, Mamba's role has now been spelled out clearly.
The authors also admit that hybrid models behave somewhat unintuitively. Whether the normalization goes before or after the gate, and which kind is used, pulls length generalization and real-world retrieval in opposite directions, and there's no settled answer yet.
Speed: Mind the Conditions of the Comparison
Decoding-kernel latency (Table 6) is measured on one H100 at batch size 128 with 1.5B models. In bf16 with a state size of 128, Mamba-3 SISO takes 0.156 ms per step, Mamba-2 0.203 ms, and GDN 0.257 ms; MIMO takes 0.179 ms, slightly slower than SISO but still faster than Mamba-2.
The end-to-end comparison (Table 7) covers prefill plus decoding of the same length. At 16K tokens, Mamba-3 SISO takes about 141 seconds and Llama-3.2-1B on vLLM about 977 seconds, a difference of roughly 7 times. The “7 times faster” figure in news coverage most likely comes from these two cells.
Read this number with its conditions in view:
- The comparison is against a different model (Llama-3.2-1B) running on vLLM, not the same codebase.
- The batch size is 128. The appendix explains that at 16K, vLLM runs out of memory at batch size 128, so it was measured at batch size 16 and multiplied by 8 as an estimate.
- The shorter the sequence, the smaller the gap, and at 512 tokens the two differ by only 0.06 seconds.
On Hacker News, one reader wasn't sold on the conclusion that “doing more computation at inference time is a good thing,” arguing that decoding at batch size 1 is indeed memory-bound, but providers group requests into large batches and compute them together, so compute isn't necessarily sitting idle. Another reader responded that the paper's latency comparison between Mamba-2 and Mamba-3 used exactly that batch size of 128, and that at this batch size Mamba-2 didn't seem to be using all its compute yet; the skeptic replied that DeepSeek's batch sizes are around 8192, so 128 is hardly large. Someone else added that local inference usually runs at batch size 1, so the idle compute is there for the taking. Hacker News, 2026-03-21 This back-and-forth roughly maps out where MIMO applies, with its payoff growing as the batch gets smaller and the workload more memory-bound.
Conclusion
Mamba-3 draws three changes out of the old principles of state space models:
- Exponential-trapezoidal discretization: a more expressive recurrence that, together with bias terms on and , makes the short convolution optional.
- Complex states: equivalent to data-dependent RoPE, solving the parity and modular arithmetic tasks that Mamba-2 can't.
- MIMO: doing more computation during memory-bound decoding, for better quality at almost the same latency.
In the comparison at 1.5B parameters and 100B tokens, it beats the Transformer, Mamba-2, and GDN at language modeling; in another experiment at 440M parameters with twice the Chinchilla-optimal number of tokens, the MIMO version reaches Mamba-2's perplexity with only half the state.
The authors also state plainly that the retrieval weakness of a fixed state leads them to predict that linear layers will be used mainly in hybrid architectures. The paper still keeps its comparisons of pure models, and it also tests how well the layer complements attention. Set against the 2023 Mamba paper's hope that it would become the backbone of general sequence models, the focus has clearly shifted toward “how to build a good linear layer for hybrid models.”
The main experiments are all at 1.5B parameters or below with 100B tokens, and the state-size and component ablations use an even smaller 440M model; the hybrid was also tried at only one ratio, 5:1. How it performs once placed in hybrid models with tens of billions of parameters is a question the paper has yet to answer.