GroupMamba: Efficient Group-Based Visual State Space Model

Abdelrahman M. Shaker, Syed Talal Wasim, Salman H. Khan, Juergen Gall, Fahad Shahbaz Khan · DOI

TL;DR

This paper introduces GroupMamba, a novel architecture for visual state-space models (SSMs) that addresses the instability and inefficiency issues of existing SSMs when scaled to larger sizes. By grouping input channels and applying specialized scanning directions, GroupMamba achieves state-of-the-art performance on various vision tasks with improved parameter efficiency.

What Problem Does This Paper Address?

State-space models (SSMs) have emerged as a promising alternative to transformers for tasks requiring long-range dependency modeling, offering subquadratic computational complexity. However, when applied to computer vision, purely SSM-based models often struggle with training stability, especially at larger scales, and achieving top-tier performance. Existing SSM variants for vision, like Mamba, can also be computationally inefficient due to their parameterization, particularly with a high number of input channels. This paper aims to bridge this gap by developing a more stable, efficient, and performant SSM architecture for visual tasks.

Methods

The core innovation is the Modulated Group Mamba layer. This layer addresses efficiency by dividing the input channels into four groups. Each group is processed by a Visual Single Selective Scanning (VSSS) block, which is an SSM-based module. Crucially, each VSSS block is designed to scan in one of four distinct spatial directions (left-to-right, right-to-left, top-to-bottom, bottom-to-top). This multi-directional scanning within grouped channels allows for comprehensive spatial coverage while significantly reducing computational load compared to processing all channels together.

To further enhance cross-channel communication, which can be limited in grouped operations, the paper introduces a Channel Affinity Modulation (CAM) operator. This operator recalibrates channel-wise feature responses, improving feature aggregation.

Finally, to combat the observed instability in training larger SSM models, a distillation-based training objective is employed. This objective combines the standard cross-entropy loss with a distillation loss, guiding the student model (GroupMamba) to mimic the behavior of a teacher model, leading to more stable training and consistent performance gains.

Datasets

The paper evaluates GroupMamba on the following standard datasets:

  • ImageNet-1K: Used for image classification.
  • MS-COCO 2017: Used for object detection and instance segmentation.
  • ADE20K: Used for semantic segmentation.

Key Insights and Ideas

  • Grouped Scanning for Efficiency: The idea of dividing channels into groups and applying specialized directional scans is a clever way to achieve both comprehensive spatial coverage and computational efficiency. It leverages the strengths of SSMs for long-range dependencies while mitigating their parameter bloat.
  • CAM for Cross-Channel Synergy: Recognizing that grouping might limit inter-channel communication, the CAM operator acts as an intelligent recalibration mechanism, ensuring that information flows effectively across different feature groups, similar in spirit to attention mechanisms but tailored for this grouped SSM context.
  • Distillation for Stability: The instability of large SSMs is a significant hurdle. Using knowledge distillation to stabilize training is a practical and effective strategy that allows for scaling up models without sacrificing performance or convergence.
  • SSMs are Viable for Vision: The results demonstrate that SSMs, when properly adapted, can indeed achieve state-of-the-art performance on complex vision tasks, challenging the dominance of transformers in some areas.

Key Results

GroupMamba models show strong performance across multiple vision tasks:

  • Image Classification (ImageNet-1K):
    • The "tiny" variant (GroupMamba-T) achieves 83.3% top-1 accuracy with 23M parameters, outperforming existing Mamba designs of similar size by 26% in parameter efficiency.
  • The "base" variant (GroupMamba-B) achieves 84.5% top-1 accuracy with 57M parameters, outperforming VMamba-B by 0.6% while using 36% fewer parameters.
  • Object Detection & Instance Segmentation (MS-COCO): GroupMamba-T achieves competitive results, surpassing established models like ResNet-50, Swin-T, and ConvNeXt-T, and showing comparable performance to VMamba-T and LocalVMamba-T with fewer parameters.
  • Semantic Segmentation (ADE20K): GroupMamba-T demonstrates favorable performance, outperforming recent SSM methods like ViM-S, VMamba-T, and LocalVMamba-T.

Qualitative results show GroupMamba accurately detecting, segmenting, and parsing scenes.

Limitations and Future Work

  • Limitations: The paper acknowledges the instability of Mamba-based models when scaled to large sizes as a primary motivation for their work. While their proposed methods mitigate this, the inherent challenges of SSM stability might still be a concern for extremely large models or specific architectures.
  • Future Work: The authors suggest exploring GroupMamba for additional downstream tasks, such as video recognition and time-series data applications. They aim to further validate and extend the generalization ability of their method, uncovering potential benefits and limitations in these new contexts.

Summary updated

BibTeX
@inproceedings{shaker2025groupmamba,
  author = {Abdelrahman M. Shaker and Syed Talal Wasim and Salman H. Khan and Juergen Gall and Fahad Shahbaz Khan},
  title = {{GroupMamba: Efficient Group-Based Visual State Space Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01389},
}
Figure