AI summary · arXiv: 2312.00752v1 · cs.LG
Mamba: Linear-Time Sequence Modeling with Selective State Spaces
The essentials
- Mamba is a novel model that improves upon existing Transformer-based models by incorporating selective SSMs for content-based reasoning.
- Mamba achieves state-of-the-art performance across multiple modalities including language, audio, and genomics.
- The Mamba model allows for content-based reasoning and improved performance on various modalities such as language, audio, and genomics.
- The authors compare Mamba to the SaShiMi architecture and training protocols in the context of audio modelling and generation.
- They consider replacing the S4+MLP blocks in SaShiMi with Mamba blocks and provide experiment details in Appendix E.4.
- The evaluation of pretraining quality for audio waveform modality is conducted using the YouTubeMix dataset which consists of 4 hours of solo piano music sampled at a rate of 16000 Hz.
- Standard language modelling setup is followed for pretraining other modalities, evaluating the constant factor log(2) of the standard negative log-likelihood (NLL) loss for these modalities.
- For digit recognition, a dataset comprising 1-second clips sampled at 16000 Hz of digits "zero" through "nine" with highly variable characteristics is used.
- The authors' affiliations are provided as Albert Gu from Carnegie Mellon University's Machine Learning Department and Tri Dao from Princeton University's Department of Computer Science.
Key points written by AI: they may contain errors, check them against the paper.
Ask questions about this paper to our AI assistant
How to chat with this paper? Illustrated guide
You can also chat with multiple papers at once here.
Keep this conversation — a free account saves your questions and answers, your collections of papers and your alerts.
Continue with Google Create a free accountTools for this paper
Advanced tools Premium
For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium
Papers around this one
See them on a mapRanked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
An Empirical Study of Mamba-based Language ModelsR. Waleffe, Wonmin Byeon, Duncan Riach et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 234 times · Not summarized yet
An Empirical Study compares large Mamba and Transformer language models under controlled conditions, examining their relative strengths and weaknesses.
Abstract
Selective state-space models (SSMs) like Mamba overcome some of the shortcomings of Transformers, such as quadratic computational complexity with sequence length and large inference-time memory requirements from the key-value cache. Moreover, recent studies have shown that SSMs can match or exceed the language modeling capabilities of Transformers, making them an attractive alternative. In a controlled setting (e.g., same data), however, studies so far have only presented small scale experiments comparing SSMs to Transformers. To understand the strengths and weaknesses of these architectures at larger scales, we present a direct comparison between 8B-parameter Mamba, Mamba-2, and Transformer…
-
Mamba-ND: Selective State Space Modeling for Multi-Dimensional DataShu-Fan Li, Harkanwar Singh, Aditya Grover · 2024 · European Conference on Computer Vision · cited 144 times · Not summarized yet
Mamba-ND extends selective state-space modeling to arbitrary multidimensional data rather than the sequence modalities studied here.
Abstract
In recent years, Transformers have become the de-facto architecture for sequence modeling on text and a variety of multi-dimensional data, such as images and video. However, the use of self-attention layers in a Transformer incurs prohibitive compute and memory complexity that scales quadratically w.r.t. the sequence length. A recent architecture, Mamba, based on state space models has been shown to achieve comparable performance for modeling text sequences, while scaling linearly with the sequence length. In this work, we present Mamba-ND, a generalized design extending the Mamba architecture to arbitrary multi-dimensional data. Our design alternatively unravels the input data across differ…
-
InfoMamba: An Attention-Free Hybrid Mamba-Transformer ModelYou-Jin Wang, Jia-Qi Zhao, Rong Fu et al. · 2026 · arXiv.org · preprint, not peer reviewed · Not summarized yet
InfoMamba combines Mamba-style state-space modeling with an alternative attention-free design to address global interactions and local modeling.
Abstract
Balancing fine-grained local modeling with long-range dependency capture under computational constraints remains a central challenge in sequence modeling. While Transformers provide strong token mixing, they suffer from quadratic complexity, whereas Mamba-style selective state-space models (SSMs) scale linearly but often struggle to capture high-rank and synchronous global interactions. We present a consistency boundary analysis that characterizes when diagonal short-memory SSMs can approximate causal attention and identifies structural gaps that remain. Motivated by this analysis, we propose InfoMamba, an attention-free hybrid architecture. InfoMamba replaces token-level self-attention with…
-
A Survey of MambaHaohao Qu, Liangbo Ning, Rui An et al. · 2024 · Machine Learning · cited 114 times · Not summarized yet
A Survey of Mamba reviews the architecture and its role as an alternative to Transformers.
Abstract
Deep learning, as a vital technique, has sparked a notable revolution in artificial intelligence. As the most representative architecture, Transformers have empowered numerous advanced models, especially the large language models that comprise billions of parameters, becoming a cornerstone in deep learning. Despite the impressive achievements, Transformers still face inherent limitations, particularly the time-consuming inference resulting from the quadratic computation complexity of attention calculation. Recently, a novel architecture named Mamba, drawing inspiration from classical state space models, has emerged as a promising alternative for building foundation models, delivering compara…
-
MambaByte: Token-free Selective State Space ModelJunxiong Wang, Tushaar Gangavarapu, Jing Nathan Yan et al. · 2024 · Computation and Language · preprint, not peer reviewed · cited 77 times · AI summary available
MambaByte applies the selective state-space model to raw-byte language modeling, where linear scaling helps handle longer sequences.
Abstract
Token-free language models learn directly from raw bytes and remove the bias of subword tokenization. Operating on bytes, however, results in significantly longer sequences, and standard autoregressive Transformers scale poorly in such settings. We experiment with MambaByte, a token-free adaptation of the Mamba state space model, trained autoregressively on byte sequences. Our experiments indicate the computational efficiency of MambaByte compared to other byte-level models. We also find MambaByte to be competitive with and even outperform state-of-the-art subword Transformers. Furthermore, owing to linear scaling in length, MambaByte benefits from fast inference compared to Transformers. Ou…
-
Hungry Hungry Hippos: Towards Language Modeling with State Space ModelsDaniel Y. Fu, Tri Dao, Khaled K. Saab et al. · 2022 · Machine Learning · cited 741 times · AI summary available
Hungry Hungry Hippos studies SSM limitations in language modeling and hardware efficiency, issues that Mamba addresses with selective state spaces and a hardware-aware algorithm.
Abstract
State space models (SSMs) have demonstrated state-of-the-art sequence modeling performance in some modalities, but underperform attention in language modeling. Moreover, despite scaling nearly linearly in sequence length instead of quadratically, SSMs are still slower than Transformers due to poor hardware utilization. In this paper, we make progress on understanding the expressivity gap between SSMs and attention in language modeling, and on reducing the hardware barrier between SSMs and attention. First, we use synthetic language modeling tasks to understand the gap between SSMs and attention. We find that existing SSMs struggle with two capabilities: recalling earlier tokens in the sequen…
-
Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning TasksJongho Park, Jaeseung Park, Zheyang Xiong et al. · 2024 · Machine Learning · cited 141 times · Not summarized yet
Can Mamba Learn How to Learn? compares Mamba and Transformers on in-context learning tasks.
Abstract
State-space models (SSMs), such as Mamba Gu & Dao (2034), have been proposed as alternatives to Transformer networks in language modeling, by incorporating gating, convolutions, and input-dependent token selection to mitigate the quadratic cost of multi-head attention. Although SSMs exhibit competitive performance, their in-context learning (ICL) capabilities, a remarkable emergent property of modern language models that enables task execution without parameter optimization, remain underexplored compared to Transformers. In this study, we evaluate the ICL performance of SSMs, focusing on Mamba, against Transformer models across various tasks. Our results show that SSMs perform comparably to …
-
DART: Decoded Attention over Recurrent States for Efficient Long-Context Sequence ModelingYi-Xiao Qian, Song Chen, Peng-Kai Wang et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 3 times · Not summarized yet
DART uses the state-space duality view of Mamba-2 to combine recurrent-state compression with attention-style retrieval for long-context modeling.
Abstract
Modern language models are built primarily from Transformers, recurrent models, and their hybrid architectures. Transformers rely on token-level attention memories, while recurrent models such as state space models (SSMs) and linear attention maintain compact recurrent states. These architectures are typically instantiated separately or interleaved at the layer level, leaving open whether a shared memory representation can support both recurrent compression and attention-style retrieval. We study this question through the state space duality (SSD) view of Mamba-2, where the SSM state can be interpreted as a compressed associative key--value (KV) cache. We observe that Mamba-2 decodes token-c…
Papers that cite it
-
MiM-ISTD: Mamba-in-Mamba for Efficient Infrared Small-Target DetectionTianxiang Chen, Zi Ye, Zhentao Tan et al. · 2024 · IEEE Transactions on Geoscience and Remote Sensing · cited 224 times · Not summarized yet
MiM-ISTD adapts Mamba to infrared small-target detection, a vision task rather than the language, audio, and genomics settings emphasized here.
Abstract
Recently, infrared small-target detection (ISTD) has made significant progress, thanks to the development of basic models. Specifically, the models combining CNNs with Transformers can successfully extract both local and global features. However, the disadvantage of the Transformer is also inherited, that is, the quadratic computational complexity to sequence length. Inspired by the recent basic model with linear complexity for long-distance modeling, Mamba, we explore the potential of this state-space model (SSM) for ISTD tasks in terms of effectiveness and efficiency in the article. However, directly applying Mamba achieves suboptimal performances due to the insufficient harnessing of loca…
-
Attention, Dynamic Wave and Hybrid Sequence Mixers in Language ModelsDmytro Babarytskyi, O. Babarytskyi · 2026 · Not summarized yet
Attention, Dynamic Wave and Hybrid Sequence Mixers evaluates recurrent and hybrid alternatives to attention for efficient language modeling.
Abstract
Large Language Models (LLMs) rely on Multi-Head Attention (MHA) for sequence modeling, but scaling to long contexts is constrained by the quadratic cost of attention, motivating sub-quadratic recurrent alternatives. This paper formalizes a Dynamic Wave recurrent layer, based on input-dependent exponential damping and cosine phase modulation, and evaluates three 10.94M-parameter configurations (Pure Transformer, Pure Wave, and Hybrid Wave-Attention) on TinyStories under perplexity, latency, throughput and peak VRAM profiling up to 4096 tokens. The Hybrid configuration reaches the best perplexity, 5.95 on the full held-out split against 6.93 for the Transformer and 7.26 for Pure Wave. The effi…
-
ChangeMamba: Remote Sensing Change Detection With Spatiotemporal State Space ModelHongruixuan Chen, Jian Hui Song, Chengxi Han et al. · 2024 · IEEE Transactions on Geoscience and Remote Sensing · cited 481 times · Not summarized yet
ChangeMamba applies the Mamba architecture to remote-sensing change detection using spatiotemporal state-space modeling.
Abstract
Convolutional neural networks (CNNs) and Transformers have made impressive progress in the field of remote sensing change detection (CD). However, both architectures have inherent shortcomings: CNN is constrained by a limited receptive field that may hinder their ability to capture broader spatial contexts, while Transformers are computationally intensive, making them costly to train and deploy on large datasets. Recently, the Mamba architecture, based on state space models (SSMs), has shown remarkable performance in a series of natural language processing tasks, which can effectively compensate for the shortcomings of the above two architectures. In this article, we explore for the first ti…
-
Frequency-Assisted Mamba for Remote Sensing Image Super-ResolutionYi Xiao, Qiangqiang Yuan, Kui Jiang et al. · 2024 · IEEE Transactions on Multimedia · cited 237 times · Not summarized yet
Frequency-Assisted Mamba adapts Mamba for remote-sensing image super-resolution and long-range image representation.
Abstract
Recent progress in remote sensing image (RSI) super-resolution (SR) has exhibited remarkable performance using deep neural networks, e.g., Convolutional Neural Networks and Transformers. However, existing SR methods often suffer from either a limited receptive field or quadratic computational overhead, resulting in sub-optimal global representation and unacceptable computational costs in large-scale RSI. To alleviate these issues, we develop the first attempt to integrate the Vision State Space Model (Mamba) for RSI-SR, which specializes in processing large-scale RSI by capturing long-range dependency with linear complexity. To achieve better SR reconstruction, building upon Mamba, we devise…
-
HAN-Mamba: Hierarchical Selective State Space Networks for Multi-Scale Financial Volatility ForecastingM. Deaconu, Ioan-Daniel Pop · 2026 · Not summarized yet
HAN-Mamba uses selective state-space encoders for multi-scale financial volatility forecasting, with attention retained in its fuser.
Abstract
Short-horizon realized volatility forecasting requires the integration of market information that evolves at incompatible temporal resolutions, from second-level order book dynamics to weekly regime drift. Our conference work introduced HAN-T, a hierarchical architecture in which scale-specific Transformer encoders process short, mid, and long-horizon streams and a learned attention fuser weighs their contributions. This article replaces the quadratic attention encoders with selective state space (Mamba) encoders while retaining attention only in the fuser, where the input is a three-token set rather than a long sequence. The resulting hybrid, HAN-Mamba, summarizes each stream through a recu…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 4 November 2026.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.