arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.05892cs.CV
收藏

Mamba-ND:面向多维数据的选择性状态空间建模

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

University of California, Los Angeles(加州大学洛杉矶分校)

Shufan Li, Harkanwar Singh, Aditya Grover

AI总结:

针对Transformer自注意力层随序列长度二次增长的复杂度问题,提出可扩展至任意多维数据的Mamba-ND架构,沿不同维度交替展开输入,在多个多维基准任务上性能达到当前最优水平。

摘要:

近年来,Transformer已成为文本及图像、视频等各类多维数据序列建模的事实标准架构。然而,Transformer中自注意力层的使用会带来极高的计算与内存复杂度,其复杂度随序列长度呈二次方增长。近期基于状态空间模型的架构Mamba已被证明在文本序列建模上能达到可比性能,且复杂度随序列长度线性增长。本文提出Mamba-ND,这是将Mamba架构扩展至任意多维数据的通用设计。我们的设计按照行优先顺序,沿不同维度交替展开输入数据。我们基于Bi-directional LSTMs、S4ND等已有的多维扩展方案,将Mamba-ND与多种替代方法进行了系统比较。实验结果表明,Mamba-ND在ImageNet-1K分类、HMDB-51动作识别、ERA5天气预报等多种多维基准任务上,性能与当前最优水平相当。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑