arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.15569cs.LG
收藏

Mamba-3:基于状态空间原理的序列建模改进

Mamba-3: Improved Sequence Modeling using State Space Principles

Aakash Lahoti, Kevin Y. Li, Berlin Chen, Caitlin Wang, Aviv Bick, J. Zico Kolter, Tri Dao, Albert Gu

AI总结:

Mamba-3通过结合更丰富的递归、复值状态更新规则和多输入多输出框架,提升了序列建模的性能和效率,实现了在检索、状态跟踪和下游语言建模任务中的显著改进。

摘要:

缩放推理时间的计算已成为推动大语言模型性能的重要因素,使推理效率成为模型设计中的核心关注点,与模型质量并重。尽管当前基于Transformer的模型在模型质量上表现强劲,但其二次计算和线性内存使得推理成本高昂。这促使了开发具有减少线性计算和常数内存需求的亚二次模型。然而,许多近期的线性模型为了算法效率牺牲了模型质量和能力,在状态跟踪等任务上表现不佳。此外,其理论上线性的推理在实践中仍不够高效。受推理优先视角的启发,我们引入了三种核心方法改进,灵感来自线性模型的状态空间模型(SSM)观点。我们结合:(1)源自SSM离散化的更具表现力的递归,(2)一种复值状态更新规则,能够实现更丰富的状态跟踪,以及(3)一种多输入多输出(MIMO)公式,以提高模型性能而不增加解码延迟。结合架构优化,我们的Mamba-3模型在检索、状态跟踪和下游语言建模任务中均取得了显著提升。在1.5B规模下,Mamba-3相比下一个最佳模型(Gated DeltaNet)平均下游准确率提高了0.6个百分点,Mamba-3的MIMO变体进一步将准确率提高1.2个百分点,总计提升1.8个百分点。在状态大小实验中,Mamba-3在使用一半前代状态大小的情况下,实现了与Mamba-2相当的困惑度。我们的评估展示了Mamba-3在性能-效率帕累托前沿上的进步能力。

英文摘要:

Scaling inference-time compute has emerged as an important driver of LLM performance, making inference efficiency a central focus of model design alongside model quality. While the current Transformer-based models deliver strong model quality, their quadratic compute and linear memory make inference expensive. This has spurred the development of sub-quadratic models with reduced linear compute and constant memory requirements. However, many recent linear models trade off model quality and capability for algorithmic efficiency, failing on tasks such as state tracking. Moreover, their theoretically linear inference remains hardware-inefficient in practice. Guided by an inference-first perspective, we introduce three core methodological improvements inspired by the state space model (SSM) viewpoint of linear models. We combine: (1) a more expressive recurrence derived from SSM discretization, (2) a complex-valued state update rule that enables richer state tracking, and (3) a multi-input, multi-output (MIMO) formulation for better model performance without increasing decode latency. Together with architectural refinements, our Mamba-3 model achieves significant gains across retrieval, state-tracking, and downstream language modeling tasks. At the 1.5B scale, Mamba-3 improves average downstream accuracy by 0.6 percentage points compared to the next best model (Gated DeltaNet), with Mamba-3's MIMO variant further improving accuracy by another 1.2 points for a total 1.8 point gain. Across state-size experiments, Mamba-3 achieves comparable perplexity to Mamba-2 despite using half of its predecessor's state size. Our evaluations demonstrate Mamba-3's ability to advance the performance-efficiency Pareto frontier.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑