[Paper Review] Mamba-R: Vision Mamba ALSO Needs Registers
This paper proposes Mamba®, a modified Vision Mamba architecture that integrates register tokens evenly throughout the input sequence and reuses them for final prediction to suppress harmful feature map artifacts. The method significantly improves accuracy and scalability, achieving 82.9% ImageNet top-1 accuracy on Mamba®-B and 83.2% on a 341M-parameter model, outperforming vanilla Vision Mamba and enabling large-scale training.
Similar to Vision Transformers, this paper identifies artifacts also present within the feature maps of Vision Mamba. These artifacts, corresponding to high-norm tokens emerging in low-information background areas of images, appear much more severe in Vision Mamba -- they exist prevalently even with the tiny-sized model and activate extensively across background regions. To mitigate this issue, we follow the prior solution of introducing register tokens into Vision Mamba. To better cope with Mamba blocks' uni-directional inference paradigm, two key modifications are introduced: 1) evenly inserting registers throughout the input token sequence, and 2) recycling registers for final decision predictions. We term this new architecture Mamba-R. Qualitative observations suggest, compared to vanilla Vision Mamba, Mamba-R's feature maps appear cleaner and more focused on semantically meaningful regions. Quantitatively, Mamba-R attains stronger performance and scales better. For example, on the ImageNet benchmark, our base-size Mamba-R attains 83.0% accuracy, significantly outperforming Vim-B's 81.8%; furthermore, we provide the first successful scaling to the large model size (i.e., with 341M parameters), attaining a competitive accuracy of 83.6% (84.5% if finetuned with 384x384 inputs). Additional validation on the downstream semantic segmentation task also supports Mamba-R's efficacy. Code is available at https://github.com/wangf3014/Mamba-Reg.
Motivation & Objective
- To address severe feature map artifacts in Vision Mamba, where high-norm tokens emerge in low-information background regions.
- To investigate whether register tokens—effective in Vision Transformers—can mitigate these artifacts in Mamba's uni-directional, sequential processing paradigm.
- To improve both qualitative feature map quality and quantitative performance in image classification and semantic segmentation.
- To enable scalable training of Vision Mamba beyond 90M parameters, achieving competitive performance at larger sizes.
Proposed method
- Introduce register tokens that are evenly distributed throughout the input token sequence, rather than appended at the beginning or middle.
- Reuse all register tokens at the end of the network by concatenating their representations after dimensionality reduction via a linear projection layer.
- Modify the Mamba block's inference to process registers as part of the sequential flow, ensuring they are updated through the selective scan mechanism.
- Maintain the original Mamba architecture's linear complexity while enhancing representational capacity through register integration.
- Use a learnable register embedding initialized independently of input tokens, allowing them to capture global, object-relevant semantics.
- Apply the same register design to both small and large models, enabling consistent performance gains across scale.
Experimental results
Research questions
- RQ1Do the same artifact issues seen in Vision Transformers—high-norm activations in background regions—also occur in Vision Mamba, and how severe are they?
- RQ2Can register tokens, effective in Vision Transformers, be adapted to reduce artifacts in Mamba’s uni-directional, sequential processing framework?
- RQ3Does the placement and reuse strategy of registers significantly affect performance in Vision Mamba?
- RQ4Can the integration of registers enable scaling of Vision Mamba to larger model sizes (e.g., 341M parameters) with improved accuracy?
- RQ5Does the enhanced architecture maintain or improve performance on downstream vision tasks like semantic segmentation?
Key findings
- Mamba®-B achieves 82.9% top-1 accuracy on ImageNet, significantly outperforming vanilla Vim-B’s 81.8%.
- The largest Mamba® model, with 341M parameters, attains 83.2% ImageNet accuracy, marking the first successful scaling of Vision Mamba beyond 90M parameters.
- When finetuned with $384\times384$ inputs, Mamba® reaches 84.5% accuracy, demonstrating strong scalability and generalization.
- On the ADE20K semantic segmentation benchmark, Mamba® achieves 49.1% mIoU, surpassing Vim’s best result of 44.9%.
- Ablation studies confirm that evenly distributing registers and reusing all for final prediction yields the best performance, with a 1.2% accuracy gain over using only one register.
- The method effectively suppresses artifacts in feature maps, resulting in cleaner, more semantically focused activations compared to vanilla Vision Mamba.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.