Skip to main content
QUICK REVIEW

[论文解读] Mamba YOLO: A Simple Baseline for Object Detection with State Space Model

Zeyu Wang, Chen Li|arXiv (Cornell University)|Jun 9, 2024
Computer Science and EngineeringComputer Science被引用 37
一句话总结

Mamba-YOLO 将状态空间模型整合到 YOLO 中,以线性复杂度捕获全局依赖,同时新增 LSBlock 与 RGBlock 以提升局部特征建模,在 COCO/VOC 上实现强劲结果。

ABSTRACT

Driven by the rapid development of deep learning technology, the YOLO series has set a new benchmark for real-time object detectors. Additionally, transformer-based structures have emerged as the most powerful solution in the field, greatly extending the model's receptive field and achieving significant performance improvements. However, this improvement comes at a cost as the quadratic complexity of the self-attentive mechanism increases the computational burden of the model. To address this problem, we introduce a simple yet effective baseline approach called Mamba YOLO. Our contributions are as follows: 1) We propose that the ODMamba backbone introduce a extbf{S}tate extbf{S}pace extbf{M}odel ( extbf{SSM}) with linear complexity to address the quadratic complexity of self-attention. Unlike the other Transformer-base and SSM-base method, ODMamba is simple to train without pretraining. 2) For real-time requirement, we designed the macro structure of ODMamba, determined the optimal stage ratio and scaling size. 3) We design the RG Block that employs a multi-branch structure to model the channel dimensions, which addresses the possible limitations of SSM in sequence modeling, such as insufficient receptive fields and weak image localization. This design captures localized image dependencies more accurately and significantly. Extensive experiments on the publicly available COCO benchmark dataset show that Mamba YOLO achieves state-of-the-art performance compared to previous methods. Specifically, a tiny version of Mamba YOLO achieves a extbf{7.5}\% improvement in mAP on a single 4090 GPU with an inference time of extbf{1.5} ms. The pytorch code is available at: \url{https://github.com/HZAI-ZJNU/Mamba-YOLO}

研究动机与目标

  • 在 YOLO 中实现一个轻量、实时的检测器,利用状态空间模型(SSMs)来提升全局上下文理解。
  • 设计新的模块(ODSSBlock、LSBlock、RGBlock),在以 SSM 为 backbone 的结构中解决局部图像局部性和通道特征问题。
  • 确立 Mamba-YOLO 作为在 COCO 和 VOC 数据集上多尺度(Tiny/Base/Large)的强基线。
  • 证明基于 SSM 的 backbone 在对象检测的速度-精度权衡方面能超越传统的 CNN/Transformer 混合方法。

提出的方法

  • 在 ODMamba 主干中采用 ODSSBlock 核心,以将基于 SS2D 的全局建模与局部卷积融合。
  • 引入 LocalSpatial Block (LSBlock),通过深度可分离卷积和残差融合来捕捉细尺度局部信息。
  • 引入 ResGated Block (RGBlock),实现带残差连接的门控聚合,并使用 1x1 卷积实现高效的全局到局部特征混合。
  • 用 ODSSBlock 引导的 Downsample 代替颈部中的 C2f/标准下采样,并使用 Vision Clue Merge 来提供更丰富的 SS2D 指导信息。
  • 对连续状态 SSM(A,B)的离散化,通过 Zero-Order Hold 实现到离散 Ā,B̄,以实现高效训练/推理。
  • 提供一系列模型(Tiny/Base/Large),并在 COCO 和 VOC 上进行评估,以展示可扩展性与竞争力。

实验结果

研究问题

  • RQ1将状态空间模型整合到 YOLO 主干中,是否可在不降低实时推理速度的前提下提升检测精度?
  • RQ2LSBlock 与 RGBlock 是否能够有效补偿基于 SS2D 架构的局部图像建模潜在不足?
  • RQ3ODSS 基设计是否在不同模型规模的 COCO 与 VOC 上提供一致的收益?

主要发现

  • Mamba YOLO-T/L 在 COCO 验证集上实现具有竞争力的 AP,同时相比若干基线显著减少了参数量和 FLOPs。
  • Mamba YOLO-T 相较于最佳 Tiny 轻量模型 DAMO YOLO-T/YOLO MS-XS,在 AP 提升约 3.4%,AP50 提升约 2.0%,且参数与 FLOPs 远小于 YOLOv8-S。
  • Mamba YOLO-L 在接近相同精度的情况下,AP=52.1、AP50=69.8、AP75=56.5,同时相对 Gold-YOLO-L 降低了参数和 FLOPs。
  • Mamba YOLO 在 COCO 上对 Tiny/Base/Large 的 FLOPs-精度和 Params-精度权衡表现出有利的趋势,优于多种最先进的检测器。

阅读本论文

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

在 Nubint 中阅读本论文

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