language-modeling retrieval inference-efficiency state-space-models sequence-modeling state-tracking perplexity mamba-3
Abstract
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.
한국어 요약
한 줄 요약
Mamba-3는 SSM 기반의 3가지 핵심 개선을 통해 추론 효율성과 모델 성능을 동시에 향상시킨 시퀀스 모델이다.
핵심 기여도
- **exponential-trapezoidal discretization**을 도입하여 SSM의 표현력을 강화.
- **복소수 상태 업데이트 규칙**을 통해 상태 추적 능력을 향상.
- **MIMO**(Multi-Input Multi-Output) 구조로 모델 성능을 1.2% 추가 개선.
- 1.5B 규모에서 Gated DeltaNet 대비 0.6% 평균 정확도 향상, MIMO 변형으로 총 1.8% 개선.
핵심 아이디어
기존의 Transformer 기반 모델은 추론 시 계산 복잡도가 제곱 비례로 증가하며, SSM 기반 모델은 추론 효율성은 높지만 표현력과 상태 추적 능력이 부족한 문제가 있었다. Mamba-3는 SSM 관점에서 추론 효율성을 최우선으로 고려한 3가지 핵심 개선점을 제안한다. 첫째, **exponential-trapezoidal discretization**을 통해 SSM의 재귀 구조를 더 표현력 있게 구현함으로써 모델의 표현 범위를 확장한다. 둘째, **복소수 상태 업데이트 규칙**을 도입하여 상태 추적 능력을 향상시키고, 특히 이진 시퀀스의 짝/홀 판별과 같은 복잡한 상태 추적 작업에서 성능을 개선한다. 셋째, **MIMO**(Multi-Input Multi-Output) 구조를 도입하여 입력-출력 간의 복합 관계를 더 잘 모델링하면서도 디코딩 지연을 증가시키지 않도록 설계한다.
기술적 접근법
- **exponential-trapezoidal discretization**: SSM의 재귀 구조를 더 정밀하게 모델링.
- **복소수 상태 업데이트**: 상태 추적 능력 향상.
- **MIMO**(Multi-Input Multi-Output): 입력-출력 간 복합 관계 모델링.
- **Mamba-3 아키텍처 블록**: 위 3가지 기법을 통합한 새로운 SSM 블록.
- **하드웨어 효율성 개선**: 디코딩 단계에서 FLOPs 대비 메모리 트래픽 비율(산술 강도) 증가.
주요 결과
- **1.5B 규모에서 Gated DeltaNet 대비 0.6% 평균 정확도 향상**.
- **MIMO 변형 모델로 추가 1.2% 개선, 총 1.8% 성능 향상**.
- **Mamba-2 대비 절반의 state size로 유사한 perplexity 달성**.
- **state tracking, retrieval, language modeling 등 다중 작업에서 성능 향상**.
의의 및 한계
Mamba-3는 추론 효율성과 모델 성능의 균형을 맞추는 데 성공한 사례로, SSM 기반 모델의 성능-효율성 파레토 경계를 확장한다. 특히, 복소수 상태 업데이트와 MIMO 구조는 기존 SSM의 한계를 극복하는 데 기여하며, 실용적인 추론 환경에서의 성능 향상도 입증되었다. 그러나 MIMO 구조는 학습 속도가 느려지는 단점을 가지며, 복소수 연산은 일부 하드웨어에서 지원이 제한될 수 있다. 또한, Transformer와의 직접 비교 실험은 제한적으로 수행되었으며, 더 다양한 작업에서의 일반화 능력 검증이 필요하다.
실용적 활용
Mamba-3는 대규모 언어 모델의 추론 효율성을 요구하는 산업 분야(예: 클라우드 인프라, 모바일 디바이스)에서 유용하게 활용될 수 있다. 특히, 실시간 상태 추적과 복잡한 시퀀스 작업이 필요한 응용(예: 대화형 AI, 로봇 제어)에 적합하며, 하이브리드 아키텍처와 결합하여 성능-효율성 균형을 맞추는 데 기여할 수 있다.