Skip to main content
QUICK REVIEW

[论文解读] GroupMamba: Efficient Group-Based Visual State Space Model

Abdelrahman Shaker, Syed Talal Wasim|arXiv (Cornell University)|Jul 18, 2024
Video Surveillance and Tracking MethodsComputer Science被引用 3
一句话总结

GroupMamba 提出了一种调制分组 Mamba 层,将输入通道划分为四组,沿四个空间方向(上、下、左、右)独立应用选择性扫描 SSM 模块,并通过通道亲和调制(CAM)操作实现跨通道通信。该设计在仅使用 23M 参数的情况下,实现了 ImageNet-1K 上 83.3% 的 top-1 准确率,参数效率比先前的 SSM 模型高出 26%,同时通过蒸馏方法稳定了大模型的训练。

ABSTRACT

State-space models (SSMs) have recently shown promise in capturing long-range dependencies with subquadratic computational complexity, making them attractive for various applications. However, purely SSM-based models face critical challenges related to stability and achieving state-of-the-art performance in computer vision tasks. Our paper addresses the challenges of scaling SSM-based models for computer vision, particularly the instability and inefficiency of large model sizes. We introduce a parameter-efficient modulated group mamba layer that divides the input channels into four groups and applies our proposed SSM-based efficient Visual Single Selective Scanning (VSSS) block independently to each group, with each VSSS block scanning in one of the four spatial directions. The Modulated Group Mamba layer also wraps the four VSSS blocks into a channel modulation operator to improve cross-channel communication. Furthermore, we introduce a distillation-based training objective to stabilize the training of large models, leading to consistent performance gains. Our comprehensive experiments demonstrate the merits of the proposed contributions, leading to superior performance over existing methods for image classification on ImageNet-1K, object detection, instance segmentation on MS-COCO, and semantic segmentation on ADE20K. Our tiny variant with 23M parameters achieves state-of-the-art performance with a classification top-1 accuracy of 83.3% on ImageNet-1K, while being 26% efficient in terms of parameters, compared to the best existing Mamba design of same model size. Code and models are available at: https://github.com/Amshaker/GroupMamba.

研究动机与目标

  • 为解决大规模视觉状态空间模型(SSM)在计算机视觉中存在训练不稳定与效率低下的问题。
  • 通过分组处理与多方向扫描,提升基于 SSM 的视觉模型在参数与计算效率方面的表现。
  • 通过一种新型通道亲和调制(CAM)机制,增强分组 SSM 中的跨通道特征交互。
  • 利用基于蒸馏的训练目标,稳定大 SSM 模型的训练过程,实现一致的性能提升。

提出的方法

  • 提出一种调制分组 Mamba 层,将输入通道划分为四组,并在四个空间方向(上、下、左、右)独立应用选择性扫描 SSM 模块。
  • 引入基于 SSM 的视觉单选选择性扫描(VSSS)模块,实现每组输入依赖的状态转移,复杂度为线性。
  • 采用通道亲和调制(CAM)操作符,动态调制组间特征图,增强组间通信与特征聚合。
  • 使用基于蒸馏的训练目标,稳定大模型的训练过程,提升收敛性与性能。
  • 设计了一系列参数高效的模型,命名为 GroupMamba,包括微型版(23M 参数)与基础版(57M 参数),专为图像分类与下游视觉任务优化。
  • 将 GroupMamba 主干网络应用于标准目标检测与分割框架(如 Mask R-CNN、UperNet),以评估其在各类任务中的泛化能力。
Figure 1: Left: Comparison in terms of Parameters vs. Top-1 Accuracy on ImageNet-1k [ 9 ] . Our GroupMamba-B achieves superior top-1 classification accuracy while reducing parameters by 36% compared to VMamba [ 34 ] . Right: Qualitative results of GroupMamba-T on semantic segmentation (top right), a
Figure 1: Left: Comparison in terms of Parameters vs. Top-1 Accuracy on ImageNet-1k [ 9 ] . Our GroupMamba-B achieves superior top-1 classification accuracy while reducing parameters by 36% compared to VMamba [ 34 ] . Right: Qualitative results of GroupMamba-T on semantic segmentation (top right), a

实验结果

研究问题

  • RQ1与标准 SSM 相比,基于分组的 SSM 架构结合多方向扫描,是否能提升视觉任务中的空间建模效率与性能?
  • RQ2通道亲和调制(CAM)操作在增强分组 SSM 内部跨通道特征通信方面效果如何?
  • RQ3基于蒸馏的训练目标是否能稳定大 SSM 基础视觉模型的训练过程,并带来一致的性能增益?
  • RQ4参数高效的 SSM 架构在 ImageNet-1K、MS-COCO 和 ADE20K 等标准基准上,能否达到甚至超越更大、更复杂的 SSM 模型的性能?

主要发现

  • GroupMamba-T 在 ImageNet-1K 上实现 83.3% 的 top-1 准确率,仅使用 23M 参数,优于所有同规模的先前 SSM 模型。
  • 该模型的参数效率比现有最佳 Mamba 设计(VMamba-T)高出 26%,同时准确率更高。
  • 在 57M 参数下,GroupMamba-B 在 ImageNet-1K 上实现 84.5% 的 top-1 准确率,超越所有近期 SSM 方法。
  • 消融实验表明,CAM 模块相比基线提升性能 0.3%,而蒸馏损失相比 VMamba-T(参数减少 26%)进一步提升准确率 0.8%。
  • 在 MS-COCO 上,GroupMamba-T 实现 47.6% 的框 AP 与 42.9% 的掩码 AP,优于 VMamba-T(47.4% 与 42.7%),且参数减少 20%。
  • 在 ADE20K 上,GroupMamba-T 实现 48.6% mIoU(单尺度)与 49.2% mIoU(多尺度),优于 VMamba-T(48.3% 与 48.6%),且参数与 FLOPs 更少。
Figure 2: Overview of the proposed method. Top Row: The overall architecture of our framework with a consistent hierarchical design comprising four stages. Bottom Row: We present (b) The design of the modulated group mamba layer. The input channels are divided into four groups with a single scanning
Figure 2: Overview of the proposed method. Top Row: The overall architecture of our framework with a consistent hierarchical design comprising four stages. Bottom Row: We present (b) The design of the modulated group mamba layer. The input channels are divided into four groups with a single scanning

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。