A2Mamba: Attention-augmented State Space Models for Visual Recognition

a2mamba:-attention-augmented-state-space-models-for-visual-recognition

A2Mamba: Attention-augmented State Space Models for Visual Recognition

[Submitted on 22 Jul 2025 (v1), last revised 24 Nov 2026 (this version, v2)]

View PDF

Abstract:Transformers and Mamba, initially invented for natural language processing, have inspired backbone architectures for visual recognition. Recent studies integrated Local Attention Transformers with Mamba to capture both local details and global contexts. Despite competitive performance, these methods are limited to simple stacking of Transformer and Mamba layers without any interaction mechanism between them. Thus, deep integration between Transformer and Mamba layers remains an open problem. We address this problem by proposing A2Mamba, a powerful Transformer-Mamba hybrid network architecture, featuring a new token mixer termed Multi-scale Attention-augmented State Space Model (MASS), where multi-scale attention maps are integrated into an attention-augmented SSM (A2SSM). A key step of A2SSM performs a variant of cross-attention by spatially aggregating the SSM’s hidden states using the multi-scale attention maps, which enhances spatial dependencies pertaining to a two-dimensional space while improving the dynamic modeling capabilities of SSMs. Our A2Mamba outperforms all previous ConvNet-, Transformer-, and Mamba-based architectures in visual recognition tasks. For instance, A2Mamba-L achieves an impressive 86.1% top-1 accuracy on ImageNet-1K. In semantic segmentation, A2Mamba-B exceeds CAFormer-S36 by 2.5% in mIoU, while exhibiting higher efficiency. In object detection and instance segmentation with Cascade Mask R-CNN, A2Mamba-S surpasses MambaVision-B by 1.2%/0.9% in AP^b/AP^m, while having 40% fewer parameters. Code is publicly available at this https URL.

Submission history

From: Meng Lou [view email]
[v1] Tue, 22 Jul 2025 14:17:08 UTC (2,476 KB)
[v2] Tue, 24 Nov 2026 02:50:48 UTC (2,474 KB)