DeciMamba: Exploring the Length Extrapolation Potential of Mamba
Assaf Ben-Kish, Itamar Zimerman, Shady Abu-Hussein, Nadav Cohen, Amir Globerson, Lior Wolf, Raja Giryes
摘要
Long-range sequence processing poses a significant challenge for Transformers due to their quadratic complexity in input length. A promising alternative is Mamba, which demonstrates high performance and achieves Transformer-level capabilities while requiring substantially fewer computational resources. In this paper we explore the length-generalization capabilities of Mamba, which we find to be relatively limited. Through a series of visualizations and analyses we identify that the limitations arise from a restricted effective receptive field, dictated by the sequence length used during training. To address this constraint, we introduce DeciMamba, a context-extension method specifically designed for Mamba. This mechanism, built on top of a hidden filtering mechanism embedded within the S6 layer, enables the trained model to extrapolate well even without additional training. Empirical experiments over real-world long-range NLP tasks show that DeciMamba can extrapolate to context lengths that are significantly longer than the ones seen during training, while enjoying faster inference.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Hymba: A Hybrid-head Architecture for Small Language Models 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
- Hymba: A Hybrid-head Architecture for Small Language Models 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VMamba: Visual State Space Model 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- VMamba: Visual State Space Model 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
- VMamba: Visual State Space Model 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- VMamba: Visual State Space Model 引用了 FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- MixerCSeg: An Efficient Mixer Architecture for Crack Segmentation via Decoupled Mamba Attention 引用了 VMamba: Visual State Space Model
- MixerCSeg: An Efficient Mixer Architecture for Crack Segmentation via Decoupled Mamba Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Efficiently Modeling Long Sequences with Structured State Spaces 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioning 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Improving Bilinear RNN with Closed-loop Control 引用了 Hymba: A Hybrid-head Architecture for Small Language Models
- Improving Bilinear RNN with Closed-loop Control 引用了 VMamba: Visual State Space Model
- Improving Bilinear RNN with Closed-loop Control 引用了 FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awareness
- Improving Bilinear RNN with Closed-loop Control 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
- Provable Benefits of Complex Parameterizations for Structured State Space Models 引用了 VMamba: Visual State Space Model
- Provable Benefits of Complex Parameterizations for Structured State Space Models 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
引用它的顶会 Paper9
- Provable Benefits of Complex Parameterizations for Structured State Space ModelsYuval Ran-Milo, Eden Lumbroso, Edo Cohen-Karlik, Raja Giryes 等NeurIPS 2024 · 14 次引用
- MixerCSeg: An Efficient Mixer Architecture for Crack Segmentation via Decoupled Mamba AttentionZilong Zhao, Zhengming Ding, Pei Niu, Wenhao Sun 等CVPR 2026 · 12 次引用
- Improving Bilinear RNN with Closed-loop ControlJiaxi Hu, Yongqi Pan, Jusen Du, Disen Lan 等NeurIPS 2025 · 10 次引用
- Long-Context State-Space Video World ModelsRyan Po, Yotam Nitzan, Richard Zhang, Berlin Chen 等ICCV 2025 · 6 次引用
- Hymba: A Hybrid-head Architecture for Small Language ModelsXin Dong, Yonggan Fu, Shizhe Diao, Wonmin Byeon 等ICLR 2025 · 2 次引用
它引用的 Paper35
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- FlashAttention: Fast and Memory-Efficient Exact Attention with IO-AwarenessTri Dao, Daniel Y. Fu, Stefano Ermon, Atri Rudra 等NeurIPS 2022 · 5,493 次引用
- Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 次引用
- VMamba: Visual State Space ModelYue Liu, Yunjie Tian, Yuzhong Zhao, Hongtian Yu 等NeurIPS 2024 · 3,199 次引用
- FlashAttention-2: Faster Attention with Better Parallelism and Work PartitioningTri DaoICLR 2024 · 2,600 次引用
相关 Paper
- ReMamba: Equip Mamba with Effective Long-Sequence ModelingDanlong Yuan, Jiahao Liu, Bei Li, Huishuai Zhang 等EMNLP Findings 2025 · 7 次引用
- LongMamba: Enhancing Mamba's Long-Context Capabilities via Training-Free Receptive Field EnlargementZhifan Ye, Kejing Xia, Yonggan Fu, Xin Dong 等ICLR 2025
- MambaExtend: A Training-Free Approach to Improve Long Context Extension of MambaSeyedarmin Azizi, Souvik Kundu, Mohammad Erfan Sadeghi, Massoud PedramICLR 2025
- Mamba Modulation: On the Length Generalization of Mamba ModelsPeng Lu, Jerry Huang, Qiuhao Zeng, Xinyu Wang 等NeurIPS 2025 · 2 次引用
- Exploring the Limitations of Mamba in COPY and CoT ReasoningRuifeng Ren, Zhicong Li, Yong LiuEMNLP 2025 · 6 次引用
