A Survey of Mamba
Haohao Qu, Liangbo Ning, Rui An, Wenqi Fan, Tyler Derr, Hui Liu, Xin Xu, Qing Li
TL;DR
The paper surveys Mamba, a selective State Space Model-based backbone designed to achieve near-linear scaling with sequence length while matching Transformer-level modeling power. It introduces Mamba-1 and Mamba-2, including HiPPO-based memory initialization, input-dependent selection, and State Space Duality (SSD) to connect SSMs with attention, plus hardware-aware computation strategies. The review covers advancements in block design, scanning modes, memory management, and extensive data adaptation across sequential, non-sequential, and multimodal domains, with numerous example models and applications spanning NLP, vision, speech, drug discovery, and robotics. It also discusses challenges such as memory, generalization, and trust, and proposes directions like foundation-model development, cross-pollination of Transformer techniques, PEFT, continual learning, and retrieval-augmented generation to enhance Mamba's practical impact.
Abstract
As one of the most representative DL techniques, Transformer architecture has empowered numerous advanced models, especially the large language models (LLMs) 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 (SSMs), has emerged as a promising alternative for building foundation models, delivering comparable modeling abilities to Transformers while preserving near-linear scalability concerning sequence length. This has sparked an increasing number of studies actively exploring Mamba's potential to achieve impressive performance across diverse domains. Given such rapid evolution, there is a critical need for a systematic review that consolidates existing Mamba-empowered models, offering a comprehensive understanding of this emerging model architecture. In this survey, we therefore conduct an in-depth investigation of recent Mamba-associated studies, covering three main aspects: the advancements of Mamba-based models, the techniques of adapting Mamba to diverse data, and the applications where Mamba can excel. Specifically, we first review the foundational knowledge of various representative deep learning models and the details of Mamba-1&2 as preliminaries. Then, to showcase the significance of Mamba for AI, we comprehensively review the related studies focusing on Mamba models' architecture design, data adaptability, and applications. Finally, we present a discussion of current limitations and explore various promising research directions to provide deeper insights for future investigations.
