Mamba-3:利用状态空间原理改进序列建模

Mamba-3: Improved Sequence Modeling using State Space Principles

特里·道 Tri Dao · Together AI / Princeton · 2026-03-16 · arXiv:2603.15569 ↗ · 被引 58

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

扩展推理时计算已成为提升大语言模型性能的重要驱动力,使得推理效率与模型质量共同成为模型设计的核心关注点。尽管当前基于 Transformer 的模型提供了强大的模型质量,但其二次计算复杂度和线性内存需求导致推理成本高昂。这推动了亚二次复杂度模型的发展,这些模型具有降低的线性计算和恒定的内存需求。然而,许多近期线性模型为了算法效率而牺牲了模型质量和能力,在状态追踪等任务上表现不佳。此外,它们理论上的线性推理在实际中仍存在硬件效率低下的问题。基于推理优先的视角,我们从线性模型的状态空间模型(SSM)观点出发,引入了三项核心方法改进。我们结合了:(1)源自 SSM 离散化的更具表达力的循环机制,(2)实现更丰富状态追踪的复数值状态更新规则,以及(3)多输入多输出(MIMO)公式,以在不增加解码延迟的情况下提升模型性能。结合架构优化,我们的 Mamba-3 模型在检索、状态追踪和下游语言建模任务上均取得了显著提升。在 1.5B 规模下,Mamba-3 相比次优模型(Gated DeltaNet)将平均下游准确率提升了 0.6 个百分点,其 MIMO 变体进一步将准确率提升 1.2 个百分点,总计提升 1.8 个百分点。在状态大小实验中,Mamba-3 在仅使用其前身 Mamba-2 一半状态大小的情况下,实现了与 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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 20)

阅读逐段中英对照全文 →