[论文解读] A Survey of Mamba
本综述汇总了以 Mamba 为驱动的模型,详细介绍 Mamba 与 Mamba-2 的基础、数据适应性、架构和应用,并讨论局限性与未来方向。
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.
研究动机与目标
- 通过突出 Transformer 在长序列中的局限性及二次方注意力成本来推动研究。
- 传达 Mamba 作为近线性可扩展的基础模型替代方案的出现与潜力。
- 总结 Mamba 的架构,包括 Mamba-1 选择性 SSM 与 Mamba-2 结构化状态空间对偶性。
- 回顾 Mamba 中用于序列数据和非序列数据的数据适配技术。
- 讨论当前局限性并提出未来 Mamba 研究的方向。
提出的方法
- 将 Mamba 与 Mamba-2 作为基础概念引入并概述它们的理论与架构基础。
- 解释基于 HiPPO 的内存初始化(LegS)与输入相关选择机制。
- 描述面向硬件的计算技术:并行自洽扫描(Parallel Associative Scan)和内存再计算(Memory Recomputation)。
- 解释 Mamba-1 如何使用选择性 SSM 结合面向硬件的计算以提高内存效率。
- 提出 SSD(Structured State-Space Duality)作为将 SSM 与注意力联系起来的桥梁,便于 Mamba-2 的硬件高效计算。
- 比较 Mamba-1 和 Mamba-2 的块设计及其计算含义。
实验结果
研究问题
- RQ1Mamba 与 Mamba-2 架构背后的核心思想与机制是什么?
- RQ2基于 HiPPO 的内存初始化和输入相关选择如何提升 Mamba 的长距离序列建模?
- RQ3哪些面向硬件的技术实现了 Mamba 的高效训练与推理?
- RQ4结构化状态空间对偶性如何将 SSM 与注意力连接起来,以及这带来哪些实际好处?
- RQ5传统的 SSM/Transformer 存在的局限性是什么,Mamba 希望解决哪些未来方向?
主要发现
- Mamba 提供了接近线性长度可扩展性,且在建模能力上与 Transformer 相当。
- Mamba-1 通过选择机制引入按输入依赖的动态性,实现面向内容的建模。
- Mamba-1 采用并行自洽扫描与内存再计算以提高训练时的内存效率。
- Mamba-2 建立了 SSD,将 SSM 与注意力连接起来,使得硬件高效计算并具备与 Transformer 相当的速度。
- 块设计显示 Mamba-1 和 Mamba-2 在投影顺序和对 SSD 的使用方面不同,影响计算速度和稳定性。
- 该综述将 Mamba 定位为在 CV、NLP 和医疗等领域具有前景的基础模型骨干。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。