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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhu, Lianghui, Liao, Bencheng, Zhang, Qian, Wang, Xinlong, Liu, Wenyu, Wang, Xinggang
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866913577535799296
author Zhu, Lianghui
Liao, Bencheng
Zhang, Qian
Wang, Xinlong
Liu, Wenyu
Wang, Xinggang
author_facet Zhu, Lianghui
Liao, Bencheng
Zhang, Qian
Wang, Xinlong
Liu, Wenyu
Wang, Xinggang
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_09417
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model
Zhu, Lianghui
Liao, Bencheng
Zhang, Qian
Wang, Xinlong
Liu, Wenyu
Wang, Xinggang
Computer Vision and Pattern Recognition
Machine Learning
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.
title Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model
topic Computer Vision and Pattern Recognition
Machine Learning
url https://arxiv.org/abs/2401.09417