Skip to main content
QUICK REVIEW

[Paper 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 Science37 citations
TL;DR

Mamba-YOLO integrates State Space Models into YOLO to capture global dependencies with linear complexity, adding LSBlock and RGBlock to enhance local feature modeling, achieving strong COCO/VOC results across sizes.

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}

Motivation & Objective

  • Motivate a lightweight, real-time detector that leverages State Space Models (SSMs) to improve global context understanding in YOLO.
  • Design new blocks (ODSSBlock, LSBlock, RGBlock) to address local image locality and channel features within an SSM-backed backbone.
  • Establish Mamba-YOLO as a strong baseline across multiple scales (Tiny/Base/Large) on COCO and VOC datasets.
  • Demonstrate that SSM-based backbones can outperform traditional CNN/Transformer hybrids in speed-accuracy trade-offs for object detection.

Proposed method

  • Adopt an ODSSBlock core within an ODMamba backbone to fuse SS2D-based global modeling with local convolutions.
  • Introduce LocalSpatial Block (LSBlock) to capture fine-scale local information via depthwise separable convolutions and residual fusion.
  • Introduce ResGated Block (RGBlock) to implement gated aggregation with residual connectivity and 1x1 convolutions for efficient global-to-local feature mixing.
  • Replace C2f/standard downsampling in the neck with ODSSBlock-guided Downsample and a Vision Clue Merge for richer SS2D guidance.
  • Model discretization of continuous-state SSM (A,B) to discrete Ā,B̄ via Zero-Order Hold for efficient training/inference.
  • Provide a family of models (Tiny/Base/Large) and evaluate on COCO and VOC to show scalability and competitiveness.

Experimental results

Research questions

  • RQ1Can integrating State Space Models into a YOLO backbone improve detection accuracy without sacrificing real-time inference?
  • RQ2Do LSBlock and RGBlock effectively compensate for potential local-image modeling gaps in SS2D-based architectures?
  • RQ3Does the ODSS-based design provide consistent gains across different model scales on COCO and VOC?

Key findings

  • Mamba YOLO-T/L achieve competitive AP across COCOval with notable parameter and FLOPs reductions compared to several baselines.
  • Mamba YOLO-T shows a 3.4% AP and 2.0% AP50 improvement over the best tiny lightweight model DAMO YOLO-T/YOLO MS-XS, with substantially fewer parameters and FLOPs than YOLOv8-S.
  • Mamba YOLO-L yields AP 52.1 with 69.8 AP50 and 56.5 AP75, while reducing parameters and FLOPs relative to Gold-YOLO-L at similar accuracy.
  • Mamba YOLO demonstrates favorable FLOPs-accuracy and Params-accuracy trade-offs across Tiny/Base/Large variants on COCO, outperforming several state-of-the-art detectors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.