Seven Mental · 心智七篇
← Knowledge Atlas · Source

Mamba-3: An Inference-First State Space Model

Mamba-3:推理优先 SSM,复数值系统、MIMO、经典控制论启发
SOURCE · MAMBA-3 · Cartesia · inference-first SSM · classical control theory inspired · 2026

Mamba-3: An Inference-First State Space Model

Mamba-2 was designed for training efficiency · Mamba-3 is explicitly inference-first — a response to the surge of agentic workloads

All three improvements are inspired by classical control theory and the state-space model literature — cutting against the current linear-attention / test-time-training fashion. Core insight: linear models do too little compute per decode step; GPUs spend most of their time shuffling memory — so adding FLOPs per step has almost no impact on inference latency.

Richer recurrence
Exponential trapezoid discretization
Boosts SSM expressivity · implicit convolution replaces external short convs
Complex-valued SSM
Complex transition matrices via RoPE
Enhances state tracking
MIMO SSM
Multi-input multi-output parallel SSM
No increase in state size · better retrieval
1.5B scale · fastest prefill + decode
Mamba-3 SISO
Mamba-2
Gated DeltaNet
Transformer vLLM
Hybrid prediction”Linear layers will primarily be used in combination with global self-attention layers” — SSM memory plus attention’s precise storage beats either pure architecture empirically
→ state-space-models · long-running-agents · inference-optimization · hybrid-architectureblog.cartesia.ai

Mamba-3: An Inference-First State Space Model

摘要

Mamba-3 是状态空间模型(SSM)系列的最新迭代。如果说 Mamba-2 围绕训练效率设计,Mamba-3 则明确为推理优先而构建——响应后训练、部署和 agentic 工作流对推理吞吐的爆发需求。

三大核心改进

改进技术效果
更丰富的递归指数梯形离散化提升 SSM 表达力,隐式卷积取代外部短卷积
复数值 SSM通过 RoPE 实现复数转移矩阵增强状态追踪能力
MIMO SSM多输入多输出并行 SSM不增加状态大小,提升性能和检索能力

三项改进均受启发于经典控制论和状态空间模型文献,逆当前线性注意力/测试时训练的潮流。

推理效率

在 1.5B 规模下,Mamba-3 SISO 在所有序列长度上实现最快的 prefill + decode 延迟,超越 Mamba-2、Gated DeltaNet,甚至 Transformer (vLLM)。关键洞察:当前线性模型的解码步骤计算量太少,GPU 大部分时间在搬运内存——增加每步 FLOPs 对推理延迟几乎无影响,因为可以利用闲置计算核心。

混合架构预测

“我们预测线性层将来主要与全局自注意力层结合使用。”

固定大小状态导致 SSM 在检索任务上天然弱于 Transformer。混合架构(线性层的记忆性 + 注意力的精确存储)在经验上优于纯模型。

与 Agent 工程的关联

Mamba-3 的动机直接源于 agentic 工作流的推理需求——文中明确提到 Codex、Claude Code、OpenClaw 推动推理需求的爆发。对 long-running agents 而言,推理效率直接影响运行成本和响应延迟。

References

  • sources/cartesia-mamba-3.md