Mamba-ND: Selective State Space Modeling for Multi-Dimensional Data

Shufan Li, Harkanwar Singh, Aditya Grover

arXiv:2402.05892 · 2026-07-27 공개 · arXiv · PDF

image-classification state-space-models imagenet-1k action-recognition weather-forecasting lstms mamba-nd multi-dimensional-data

Abstract

In recent years, Transformers have become the de-facto architecture for sequence modeling on text and a variety of multi-dimensional data, such as images and video. However, the use of self-attention layers in a Transformer incurs prohibitive compute and memory complexity that scales quadratically w.r.t. the sequence length. A recent architecture, Mamba, based on state space models has been shown to achieve comparable performance for modeling text sequences, while scaling linearly with the sequence length. In this work, we present Mamba-ND, a generalized design extending the Mamba architecture to arbitrary multi-dimensional data. Our design alternatively unravels the input data across different dimensions following row-major orderings. We provide a systematic comparison of Mamba-ND with several other alternatives, based on prior multi-dimensional extensions such as Bi-directional LSTMs and S4ND. Empirically, we show that Mamba-ND demonstrates performance competitive with the state-of-the-art on a variety of multi-dimensional benchmarks, including ImageNet-1K classification, HMDB-51 action recognition, and ERA5 weather forecasting.

한국어 요약

한 줄 요약

Mamba-ND는 1D Mamba를 2D/3D 데이터로 확장한 선택적 상태공간 모델로, 다양한 다차원 벤치마크에서 Transformer 대비 낮은 파라미터 수로 경쟁력 있는 성능을 보인다.

핵심 기여도

핵심 아이디어

기존 Mamba는 1D 시퀀스에 최적화된 상태공간 모델(SSM) 기반 구조로, Transformer 대비 선형 복잡도를 유지하면서 성능을 보장한다. 그러나 2D/3D 데이터 처리를 위해서는 입력 순서를 결정하는 문제가 발생한다. Mamba-ND는 이 문제를 해결하기 위해 레이어 간 row-major 순서를 번갈아 적용하는 간단한 전략을 제안한다. 이는 Bi-SSM, ND-SSM과 같은 복잡한 다방향 설계를 필요로 하지 않으며, 1D-SSM 레이어를 그대로 사용함으로써 메모리 효율성과 연산 최적화를 유지한다. 이 접근법은 다차원 데이터에서 정보 흐름을 균형 있게 유지하면서도 복잡도를 낮춘다.

기술적 접근법

주요 결과

의의 및 한계

Mamba-ND는 기존 Transformer와 달리 다차원 데이터 처리 시 선형 복잡도를 유지하며, 낮은 파라미터 수로도 경쟁력 있는 성능을 보인다는 점에서 학술적·실용적 가치가 있다. 특히, 복잡한 다방향 설계가 아닌 간단한 순서 교체가 가장 효과적임을 실험적으로 입증한 점이 주목할 만하다. 그러나 3D 세그멘테이션에서 1D-SSM만으로도 강한 성능을 보이는 점은, 다차원 정보 흐름의 필요성에 대한 추가 연구가 필요하다는 한계를 드러낸다.

실용적 활용

Mamba-ND는 이미지 분류, 동작 인식, 기상 예측, 3D 세그멘테이션 등 다양한 다차원 데이터 처리 분야에 적용 가능하다. 특히, 메모리 및 연산 효율성이 중요한 실시간 시스템이나 대규모 데이터셋 처리 환경에서 유리하다.