Lune

ICLR2025顶会

MambaExtend: A Training-Free Approach to Improve Long Context Extension of Mamba

Seyedarmin Azizi, Souvik Kundu, Mohammad Erfan Sadeghi, Massoud Pedram

摘要

The inherent quadratic complexity of the attention mechanism in transformer models has driven the research community to explore alternative architectures with sub-quadratic complexity, such as state-space models. Mamba has established itself as a leading model within this emerging paradigm, achieving stateof-the-art results in various language modeling benchmarks. However, despite its impressive performance, Mamba's effectiveness is limited by its pre-training context length, resulting in a pronounced degradation when the model is tasked with handling longer contexts. Our investigation reveals that Mamba's inability to generalize effectively to long contexts is primarily due to the out-of-distribution (OOD) discretization steps. To address this critical limitation, we introduce Mam-baExtend, a novel framework designed to significantly enhance the context extension capabilities of Mamba. Specifically, MambaExtend leverages a training-free approach to calibrate only the scaling factors of discretization modules for different layers. We demonstrate both gradient-based and gradient-free zeroth-order optimization to learn the optimal scaling factors for each Mamba layer, requiring orders of magnitude fewer updates as opposed to the parameter fine-tuning-based alternatives. Using this approach, we achieve a training-free context extension of up to 32×, expanding the context from 2k to 64k tokens with minimal increases in perplexity. In contrast to existing fine-tuning methods, MambaExtend selectively calibrates the scaling factors, requiring up to ∼5.42 * 10 6 × fewer parameter updates and incurring up to 3.87× lower peak memory usage, while delivering comparable or superior long-context performance across multiple tasks. Codes and checkpoints are available here 1 .

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Graph Signal Processing Meets Mamba2: Adaptive Filter Bank via Delta Modulation 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
  • Graph Signal Processing Meets Mamba2: Adaptive Filter Bank via Delta Modulation 引用了 Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Understanding and Improving Length Generalization in Recurrent Models 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
  • Understanding and Improving Length Generalization in Recurrent Models 引用了 Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Efficiently Modeling Long Sequences with Structured State Spaces 引用了 HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • HiPPO: Recurrent Memory with Optimal Polynomial Projections 引用了 Reformer: The Efficient Transformer
  • HiPPO: Recurrent Memory with Optimal Polynomial Projections 引用了 Compressive Transformers for Long-Range Sequence Modelling
  • From Collapse to Control: Understanding and Extending Context Length in Emerging Hybrid Models via Universal Position Interpolation 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
  • From Collapse to Control: Understanding and Extending Context Length in Emerging Hybrid Models via Universal Position Interpolation 引用了 Reformer: The Efficient Transformer
  • From Collapse to Control: Understanding and Extending Context Length in Emerging Hybrid Models via Universal Position Interpolation 引用了 Compressive Transformers for Long-Range Sequence Modelling
  • From Collapse to Control: Understanding and Extending Context Length in Emerging Hybrid Models via Universal Position Interpolation 引用了 Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Mamba Modulation: On the Length Generalization of Mamba Models 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
  • Mamba Modulation: On the Length Generalization of Mamba Models 引用了 HiPPO: Recurrent Memory with Optimal Polynomial Projections
  • Mamba Modulation: On the Length Generalization of Mamba Models 引用了 Reformer: The Efficient Transformer
  • Mamba Modulation: On the Length Generalization of Mamba Models 引用了 Compressive Transformers for Long-Range Sequence Modelling
  • Mamba Modulation: On the Length Generalization of Mamba Models 引用了 Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality
  • Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality 引用了 Efficiently Modeling Long Sequences with Structured State Spaces
  • Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality 引用了 HiPPO: Recurrent Memory with Optimal Polynomial Projections
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Ouromamba: a Data-Free Quantization Framework for Vision MambaAkshat Ramachandran, Mingyu Lee, Huan Xu, Souvik Kundu 等ICCV 2025 · 3 次引用
  2. Mamba Modulation: On the Length Generalization of Mamba ModelsPeng Lu, Jerry Huang, Qiuhao Zeng, Xinyu Wang 等NeurIPS 2025 · 2 次引用
  3. Graph Signal Processing Meets Mamba2: Adaptive Filter Bank via Delta ModulationYehjin Shin, Seojin Kim, Noseong ParkICLR 2026
  4. Understanding and Improving Length Generalization in Recurrent ModelsRicardo Buitrago Ruiz, Albert GuICML 2025
  5. From Collapse to Control: Understanding and Extending Context Length in Emerging Hybrid Models via Universal Position InterpolationHaochen Shen, Davis Wertheimer, Zheng Wang, Garrett Goon 等ICLR 2026

它引用的 Paper16

  1. Efficiently Modeling Long Sequences with Structured State SpacesAlbert Gu, Karan Goel, Christopher RéICLR 2022 · 3,482 次引用
  2. Reformer: The Efficient TransformerNikita Kitaev, Lukasz Kaiser, Anselm LevskayaICLR 2020 · 2,878 次引用
  3. Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space DualityTri Dao, Albert GuICML 2024 · 1,407 次引用
  4. HiPPO: Recurrent Memory with Optimal Polynomial ProjectionsAlbert Gu, Tri Dao, Stefano Ermon, Atri Rudra 等NeurIPS 2020 · 1,100 次引用
  5. Compressive Transformers for Long-Range Sequence ModellingJack W. Rae, Anna Potapenko, Siddhant M. Jayakumar, Chloe Hillier 等ICLR 2020 · 833 次引用

相关 Paper

  1. LongMamba: Enhancing Mamba's Long-Context Capabilities via Training-Free Receptive Field EnlargementZhifan Ye, Kejing Xia, Yonggan Fu, Xin Dong 等ICLR 2025
  2. DeciMamba: Exploring the Length Extrapolation Potential of MambaAssaf Ben-Kish, Itamar Zimerman, Shady Abu-Hussein, Nadav Cohen 等ICLR 2025
  3. Revealing and Mitigating the Local Pattern Shortcuts of MambaWangjie You, Zecheng Tang, Juntao Li, Lili Yao 等ACL Findings 2025 · 1 次引用
  4. Sparsifying MambaAn Wang, Ruobing Xie, Shuaipeng Li, Xingwu Sun 等EMNLP Findings 2025 · 1 次引用
  5. Samba: Simple Hybrid State Space Models for Efficient Unlimited Context Language ModelingLiliang Ren, Yang Liu, Yadong Lu, Yelong Shen 等ICLR 2025
黄昏的海面,两侧是细线勾勒的悬崖