Skip to main content
QUICK REVIEW

[论文解读] MobileMamba: Lightweight Multi-Receptive Visual Mamba Network

Haoyang He, Jiangning Zhang|arXiv (Cornell University)|Nov 24, 2024
Video Surveillance and Tracking MethodsComputer Science被引用 3
一句话总结

MobileMamba 提出了一种轻量级、三阶段的视觉 Mamba 网络,通过一种新型的 MRFFI 模块实现多感受野特征交互,结合了小波增强的 Mamba、多核深度可分离卷积以及冗余身份剪枝。其在 ImageNet-1K 上实现了 83.6% 的 Top-1 SOTA 准确率,推理速度比 LocalVim 快达 21 倍,展示了在高分辨率任务中卓越的速度-精度效率。

ABSTRACT

Previous research on lightweight models has primarily focused on CNNs and Transformer-based designs. CNNs, with their local receptive fields, struggle to capture long-range dependencies, while Transformers, despite their global modeling capabilities, are limited by quadratic computational complexity in high-resolution scenarios. Recently, state-space models have gained popularity in the visual domain due to their linear computational complexity. Despite their low FLOPs, current lightweight Mamba-based models exhibit suboptimal throughput. In this work, we propose the MobileMamba framework, which balances efficiency and performance. We design a three-stage network to enhance inference speed significantly. At a fine-grained level, we introduce the Multi-Receptive Field Feature Interaction(MRFFI) module, comprising the Long-Range Wavelet Transform-Enhanced Mamba(WTE-Mamba), Efficient Multi-Kernel Depthwise Convolution(MK-DeConv), and Eliminate Redundant Identity components. This module integrates multi-receptive field information and enhances high-frequency detail extraction. Additionally, we employ training and testing strategies to further improve performance and efficiency. MobileMamba achieves up to 83.6% on Top-1, surpassing existing state-of-the-art methods which is maximum x21 faster than LocalVim on GPU. Extensive experiments on high-resolution downstream tasks demonstrate that MobileMamba surpasses current efficient models, achieving an optimal balance between speed and accuracy.

研究动机与目标

  • 解决现有基于 Mamba 的模型效率低下的问题,这些模型虽然报告的 FLOPs 较低,但在移动和边缘设备上推理速度较差。
  • 通过利用状态空间模型的线性复杂度,克服 CNN(局部感受野)和 Transformer(二次方复杂度)在高分辨率视觉任务中的局限性。
  • 设计一种三阶段网络架构,以在准确率、FLOPs 和推理吞吐量之间实现最优权衡。
  • 通过细粒度的多感受野特征交互(MRFFI)模块,增强特征表示能力,整合全局、多尺度以及高频边缘细节。
  • 通过知识蒸馏、延长训练周期以及推理阶段的归一化层融合策略,提升模型性能与推理速度。

提出的方法

  • 提出一种三阶段网络架构,在等效吞吐量或准确率约束下,相比四阶段设计,显著提升了推理速度与准确率。
  • 设计多感受野特征交互(MRFFI)模块,包含三个并行分支:(1) 小波变换增强的 Mamba(WTE-Mamba),用于全局与高频特征提取;(2) 高效多核深度可分离卷积(MK-DeConv),用于多尺度局部感知;(3) 冗余身份消除,用于减少通道冗余。
  • 集成小波变换(WT 和 IWT),将特征图尺寸减半,应用卷积操作,再恢复原始尺寸,从而在保留边缘细节的同时,有效将感受场扩大一倍。
  • 应用知识蒸馏与延长训练(最多 1000 个周期),在不增加 FLOPs 的前提下提升性能。
  • 在推理阶段融合归一化层,以减少计算开销,将吞吐量提升 1.2 倍。
  • 优化 Mamba 超参数(双向扫描、d_state=1、扩展比=2),在速度与准确率之间实现良好平衡。
Figure 1 : Top : Visualization of the Effective Receptive Fields (ERF) for different architectures. Bottom : Performance vs. FLOPs with recent CNN/Transformer/Mamba-based methods.
Figure 1 : Top : Visualization of the Effective Receptive Fields (ERF) for different architectures. Bottom : Performance vs. FLOPs with recent CNN/Transformer/Mamba-based methods.

实验结果

研究问题

  • RQ1在相同 FLOPs 条件下,三阶段 Mamba 架构是否能在准确率与推理速度上优于四阶段设计?
  • RQ2如何有效将多感受野感知集成到轻量级 Mamba 基础网络中,以改善特征表示?
  • RQ3小波变换在 Mamba 基础模型中能在多大程度上增强感受场大小与边缘细节提取能力?
  • RQ4训练与推理优化策略(知识蒸馏、延长训练周期、归一化层融合)是否能显著提升模型准确率与速度,而无需增加 FLOPs?
  • RQ5所提出的 MobileMamba 框架在高分辨率视觉任务中,相较于当前 SOTA 的 CNN、ViT 和 Mamba 基础模型,表现如何?

主要发现

  • MobileMamba 在 ImageNet-1K 上实现了 83.6% 的 Top-1 准确率,FLOPs 为 4G,超越所有现有的 CNN、ViT 和 Mamba 基础模型。
  • 在 200M FLOPs 下,MobileMamba 实现了 76.9% 的 Top-1 准确率,优于同类 FLOP 水平下的其他高效模型。
  • MobileMamba 的推理速度比 LocalVim 快达 21 倍,比 EfficientVMamba 快 3.3 倍,同时 Top-1 准确率分别提升了 +0.7% 和 +2.0%。
  • 知识蒸馏与 1000 个周期训练使 Top-1 准确率提升 +2.0%,Top-5 准确率提升 +0.7%,即使超过一个 FLOPs 为 1080M 的更大模型。
  • 推理阶段的归一化层融合使吞吐量提升 1.2 倍,证明了推理时优化策略的有效性。
  • 基于小波的 MRFFI 组件增强了边缘细节提取与有效感受场,尽管 FLOP 增加极少,但显著提升了模型性能。
Figure 2 : Accuracy vs. Speed with Mamba-based methods.
Figure 2 : Accuracy vs. Speed with Mamba-based methods.

阅读本论文

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

在 Nubint 中阅读本论文

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