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

MambaOut:我们真的需要 Mamba 用于视觉吗?

MambaOut: Do We Really Need Mamba for Vision?

National University of Singapore(新加坡国立大学)

Weihao Yu, Xinchao Wang

AI总结:

本文提出 MambaOut,通过移除 Mamba 块中的 SSM 来检验 Mamba 对视觉任务的必要性,证明其对图像分类无益,但在检测和分割等长序列任务中仍具潜力。

摘要:

Mamba 是一种采用状态空间模型(SSM)这种类 RNN token mixer 的架构,最近被提出以解决注意力机制的二次复杂度问题,随后被应用于视觉任务。然而,与卷积模型和基于注意力的模型相比,Mamba 在视觉任务上的性能往往不尽如人意。本文深入探究 Mamba 的本质,并从概念上得出结论:Mamba 理想地适用于具有长序列和自回归特征的任务。对于视觉任务,由于图像分类不符合其中任一特征,我们假设 Mamba 对该任务并非必要;检测和分割任务同样不是自回归的,但它们符合长序列特征,因此我们认为探索 Mamba 在这些任务上的潜力仍有价值。为从实证上验证假设,我们通过堆叠 Mamba 块并移除其核心 token mixer(即 SSM),构建了一系列名为 MambaOut 的模型。实验结果有力支持了我们的假设。具体而言,我们的 MambaOut 模型在 ImageNet 图像分类上超过所有视觉 Mamba 模型,表明 Mamba 对该任务确实没有必要。在检测和分割方面,MambaOut 无法匹敌最先进视觉 Mamba 模型的性能,证明了 Mamba 在长序列视觉任务中的潜力。代码可在 https://github.com/yuweihao/MambaOut 获取。

英文摘要:

Mamba, an architecture with RNN-like token mixer of state space model (SSM), was recently introduced to address the quadratic complexity of the attention mechanism and subsequently applied to vision tasks. Nevertheless, the performance of Mamba for vision is often underwhelming when compared with convolutional and attention-based models. In this paper, we delve into the essence of Mamba, and conceptually conclude that Mamba is ideally suited for tasks with long-sequence and autoregressive characteristics. For vision tasks, as image classification does not align with either characteristic, we hypothesize that Mamba is not necessary for this task; Detection and segmentation tasks are also not autoregressive, yet they adhere to the long-sequence characteristic, so we believe it is still worthwhile to explore Mamba's potential for these tasks. To empirically verify our hypotheses, we construct a series of models named MambaOut through stacking Mamba blocks while removing their core token mixer, SSM. Experimental results strongly support our hypotheses. Specifically, our MambaOut model surpasses all visual Mamba models on ImageNet image classification, indicating that Mamba is indeed unnecessary for this task. As for detection and segmentation, MambaOut cannot match the performance of state-of-the-art visual Mamba models, demonstrating the potential of Mamba for long-sequence visual tasks. The code is available at https://github.com/yuweihao/MambaOut

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

↑