arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.09417cs.CVcs.LG
收藏

Vision Mamba:基于双向状态空间模型的高效视觉表示学习

Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model

School of EIC, Huazhong University of Science & Technology(华中科技大学电子信息与通信学院);Institute of Artificial Intelligence, Huazhong University of Science & Technology(华中科技大学人工智能研究院);Horizon Robotics(地平线机器人);Beijing Academy of Artificial Intelligence(北京智源人工智能研究院)

Lianghui Zhu, Bencheng Liao, Qian Zhang, Xinlong Wang, Wenyu Liu, Xinggang Wang

AI总结:

本文提出了一种基于双向 Mamba 模块的新型视觉骨干网络 Vim,通过位置嵌入和双向状态空间模型压缩视觉表示,在不依赖自注意力的前提下,在多项视觉任务中超越 DeiT 等模型,并大幅提升了计算与内存效率。

摘要:

近期,具有高效硬件感知设计的状态空间模型(SSMs),即 Mamba 深度学习模型,在长序列建模方面展现出了巨大潜力。同时,纯粹基于 SSMs 构建高效且通用的视觉骨干网络是一个极具吸引力的方向。然而,由于视觉数据的敏感位置性以及视觉理解对全局上下文的需求,SSMs 在表示视觉数据时面临挑战。在本文中,我们证明了视觉表示学习对自注意力的依赖并非必要,并提出了一种带有双向 Mamba 模块(Vim)的新型通用视觉骨干网络,该网络通过位置嵌入标记图像序列,并利用双向状态空间模型压缩视觉表示。在 ImageNet 分类、COCO 目标检测和 ADE20k 语义分割任务上,与 DeiT 等成熟的视觉 Transformer 相比,Vim 取得了更高的性能,同时显著提升了计算与内存效率。例如,在以 1248×1248 分辨率的图像进行批处理推理以提取特征时,Vim 比 DeiT 快 2.8 倍,并节省了 86.8% 的 GPU 内存。结果表明,Vim 能够克服在执行高分辨率图像 Transformer 风格理解时的计算与内存限制,并具有成为视觉基础模型下一代骨干网络的巨大潜力。代码可在 https://github.com/hustvl/Vim 获取。

英文摘要:

Recently the state space models (SSMs) with efficient hardware-aware designs, i.e., the Mamba deep learning model, have shown great potential for long sequence modeling. Meanwhile building efficient and generic vision backbones purely upon SSMs is an appealing direction. However, representing visual data is challenging for SSMs due to the position-sensitivity of visual data and the requirement of global context for visual understanding. In this paper, we show that the reliance on self-attention for visual representation learning is not necessary and propose a new generic vision backbone with bidirectional Mamba blocks (Vim), which marks the image sequences with position embeddings and compresses the visual representation with bidirectional state space models. On ImageNet classification, COCO object detection, and ADE20k semantic segmentation tasks, Vim achieves higher performance compared to well-established vision transformers like DeiT, while also demonstrating significantly improved computation & memory efficiency. For example, Vim is 2.8$\times$ faster than DeiT and saves 86.8% GPU memory when performing batch inference to extract features on images with a resolution of 1248$\times$1248. The results demonstrate that Vim is capable of overcoming the computation & memory constraints on performing Transformer-style understanding for high-resolution images and it has great potential to be the next-generation backbone for vision foundation models. Code is available at https://github.com/hustvl/Vim.

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

↑