Saved in:
Bibliographic Details
Main Authors: Li, Shufan, Singh, Harkanwar, Grover, Aditya
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2402.05892
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909252861296640
author Li, Shufan
Singh, Harkanwar
Grover, Aditya
author_facet Li, Shufan
Singh, Harkanwar
Grover, Aditya
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_05892
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Mamba-ND: Selective State Space Modeling for Multi-Dimensional Data
Li, Shufan
Singh, Harkanwar
Grover, Aditya
Computer Vision and Pattern Recognition
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.
title Mamba-ND: Selective State Space Modeling for Multi-Dimensional Data
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2402.05892