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

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

17 Jan 2024arXiv:2401.09417archive 2025-07-28

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

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× faster than DeiT and saves 86.8% GPU memory when performing batch inference to extract features on images with a resolution of 1248×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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2401.09417")

Code

Syntology Ran 2 of 13 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: community (archive-listed): 12 samples from 1 repository, 1 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

15 repositories listed; official and paper-mentioned ones first.

hustvl/vim officialmentioned in papermentioned on GitHubpytorch report
Jiaxin-Ye/DepMamba mentioned on GitHubpytorch report
aiot-mlsys-lab/famba-v mentioned on GitHubpytorch report
areffarhadi/mamba-asr mentioned on GitHubpytorchGPL-3.0 report
catalpaaa/demansia mentioned on GitHubpytorch report
flj19951219/mamba_dose mentioned on GitHubpytorch report
irmvlab/point-mamba mentioned on GitHubpytorch report
khfs/DuplexMamba mentioned on GitHubjaxGPL-3.0 report
linjiefu-u/mamba_dose mentioned on GitHubpytorch report
shendb2022/htd-mamba mentioned on GitHubpytorch report
siavashshams/ssamba mentioned on GitHubpytorchBSD-3-Clause report
xi-j/mamba-asr mentioned on GitHubpytorchGPL-3.0 report
younghyun197/ptq4vm mentioned on GitHubpytorchApache-2.0 report
yws-wxs/vim-f mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 2 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran
11unverified

Licence: 1 of the 13 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from younghyun197/ptq4vm. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ampscaler_get_grad_norm younghyun197/ptq4vm/ptq4vm/utils.py community (archive-listed) ran Apache-2.0 (permissive) · c07dba9529e937b7 · report
create_logger younghyun197/ptq4vm/ptq4vm/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 971871ec92e49a7c · report
get_acc_convnext younghyun197/ptq4vm/VMamba/analyze/loss.py community (archive-listed) unverified Apache-2.0 (permissive) · 557ec75e2d4f69a3 · report
get_acc_swin younghyun197/ptq4vm/VMamba/analyze/loss.py community (archive-listed) unverified Apache-2.0 (permissive) · 56be5106b964214d · report
get_act_scales younghyun197/ptq4vm/generate_act_scale.py community (archive-listed) unverified Apache-2.0 (permissive) · bce8067973682f24 · report
get_loss_convnext younghyun197/ptq4vm/VMamba/analyze/loss.py community (archive-listed) unverified Apache-2.0 (permissive) · 0ab36f06185946ed · report
get_parameters_all younghyun197/ptq4vm/ptq4vm/jlss.py community (archive-listed) unverified Apache-2.0 (permissive) · d1ee14347d11a9d6 · report
get_quant_parameters younghyun197/ptq4vm/ptq4vm/jlss.py community (archive-listed) unverified Apache-2.0 (permissive) · b1e4ada8a9c5fac0 · report
get_quant_parameters younghyun197/ptq4vm/VMamba/classification/ptq4vm/jlss.py community (archive-listed) unverified Apache-2.0 (permissive) · b7abefcac9f98958 · report
get_smooth_parameters younghyun197/ptq4vm/ptq4vm/jlss.py community (archive-listed) unverified Apache-2.0 (permissive) · 3d2f55555ee9cf38 · report
get_smooth_parameters younghyun197/ptq4vm/VMamba/classification/ptq4vm/jlss.py community (archive-listed) unverified Apache-2.0 (permissive) · 2843c9584217797b · report
int_quantizer_BWD younghyun197/ptq4vm/cuda_measure/cuda_sandbox.py community (archive-listed) unverified Apache-2.0 (permissive) · ce2c1c8e2c3f9e18 · report
rand_bbox identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 0756a99508caf42c · report

Tasks

Image ClassificationMambaObject DetectionRepresentation LearningSemantic SegmentationState Space Modelsobject-detection

2 archive task tags without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionAttention DropoutDeiTDense ConnectionsDropoutFeedforward NetworkLinear LayerMulti-Head AttentionSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections