DeciMamba:探索Mamba的长度外推潜力
DeciMamba: Exploring the Length Extrapolation Potential of Mamba
AI总结:
本文针对Mamba长度泛化能力受限的问题,提出上下文扩展方法DeciMamba,通过利用S6层中的隐藏过滤机制,在不额外训练的情况下显著提升模型对更长序列的外推能力并加快推理。
摘要:
长程序列处理对Transformer构成重大挑战,因为其复杂度随输入长度呈二次增长。一个有前景的替代方案是Mamba,它展现出高性能并达到Transformer级别的能力,同时所需的计算资源大幅减少。在本文中,我们探索了Mamba的长度泛化能力,发现其相对有限。通过一系列可视化和分析,我们确定这些限制源于受限的有效感受野,该感受野由训练期间使用的序列长度决定。为解决这一约束,我们提出DeciMamba,这是一种专为Mamba设计的上下文扩展方法。该机制建立在嵌入于S6层中的隐藏过滤机制之上,使训练后的模型即使不进行额外训练也能良好外推。在真实世界长程自然语言处理任务上的实验表明,DeciMamba可以外推到比训练期间所见上下文长度长得多的上下文长度,同时享有更快的推理速度。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。