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

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

8 Feb 2024arXiv:2402.05892archive 2025-07-28

Shufan Li, Harkanwar Singh, Aditya Grover

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.05892")

Code

Syntology Ran 7 of 11 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 7 ran with no contract checked.

By repository: official repository: 11 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

jacklishufan/mamba-nd officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 7 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran
4unverified

Licence: 11 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from jacklishufan/Mamba-ND. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

crop_clip jacklishufan/Mamba-ND/video_pretraining/functional.py official repository ran no licence file found · pointer only · bc39b8ed5fefa7eb · report
dice jacklishufan/Mamba-ND/btcv/trainer.py official repository ran no licence file found · pointer only · 7b0ecad70df7f175 · report
get_loss_scale_for_deepspeed jacklishufan/Mamba-ND/video_pretraining/engines/engine_for_finetuning.py official repository ran no licence file found · pointer only · 6aef977b44c0feaf · report
get_resize_sizes jacklishufan/Mamba-ND/video_pretraining/functional.py official repository ran no licence file found · pointer only · 2b53e457d5632b4e · report
resize_clip jacklishufan/Mamba-ND/video_pretraining/functional.py official repository ran no licence file found · pointer only · 981936c73d3cdd12 · report
spatial_sampling jacklishufan/Mamba-ND/video_pretraining/datasets/kinetics.py official repository ran no licence file found · pointer only · f188ca6f84532f7f · report
train_class_batch jacklishufan/Mamba-ND/video_pretraining/engines/engine_for_finetuning_regression.py official repository ran no licence file found · pointer only · fb98703650f02bf6 · report
causal_conv1d_fn_ref jacklishufan/Mamba-ND/image_classification/src/mamba.py official repository unverified no licence file found · pointer only · 43593092d4dd72a6 · report
resize_pos_embed jacklishufan/Mamba-ND/btcv/networks/mamba.py official repository unverified no licence file found · pointer only · 66146c617de276d3 · report
tensor_normalize jacklishufan/Mamba-ND/video_pretraining/datasets/kinetics.py official repository unverified no licence file found · pointer only · 14b3b13b2e7ee844 · report
train_class_batch jacklishufan/Mamba-ND/video_pretraining/engines/engine_for_finetuning.py official repository unverified no licence file found · pointer only · c7976ea27edc377a · report

Tasks

Action RecognitionMambaState Space ModelsWeather Forecasting

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections