Highlight

Mamba: Linear-Time Sequence Modeling with Selective State Spaces

Introduces Mamba, an attention-free selective state space model for linear-time sequence modeling across language, audio, and genomics.

Based on

Mamba: Linear-Time Sequence Modeling with Selective State Spaces

By Albert Gu, Tri DaoarXiv.org
Read original article →

Foundation models are almost universally built on the Transformer and its attention module, and subquadratic alternatives such as linear attention, gated convolution, recurrent models, and structured state space models (SSMs) had not matched attention on modalities like language. The authors identify content-based reasoning as the key weakness and make the SSM parameters functions of the input, letting the model selectively propagate or forget information along the sequence depending on the current token. Because this breaks efficient convolutions, they design a hardware-aware parallel algorithm in recurrent mode and fold the selective SSM into a simplified architecture with no attention or MLP blocks, called Mamba.

Mamba delivers fast inference with 5x higher throughput than Transformers, scales linearly in sequence length, and keeps improving on real data up to million-length sequences. As a general sequence backbone it reaches state-of-the-art results across language, audio, and genomics, and the Mamba-3B model outperforms Transformers of its own size while matching Transformers twice as large in both pretraining and downstream evaluation.

Abstract

Most foundation models rely on the Transformer's attention module, while subquadratic alternatives like structured state space models (SSMs) have lagged on language. The authors trace this to weak content-based reasoning and let SSM parameters depend on the input, so the model selectively propagates or forgets information per token. A hardware-aware parallel algorithm and a simplified attention- and MLP-free design yield Mamba, which offers fast inference, linear scaling, and state-of-the-art results across modalities; Mamba-3B matches Transformers twice its size.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

state space modelssequence modelingselective SSMefficient architectureslanguage modeling
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.