arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.05835cs.CV
收藏

Mamba YOLO:一种基于状态空间模型的简单目标检测基线

Mamba YOLO: A Simple Baseline for Object Detection with State Space Model

Zhejiang Normal University(浙江师范大学);Research Institute of Hangzhou Artificial Intelligence, Zhejiang Normal University(浙江师范大学杭州人工智能研究院);Beijing Geekplus Technology Co, Ltd(北京极智嘉科技有限公司)

Zeyu Wang, Chen Li, Huiying Xu, Xinzhong Zhu, Hongbo Li

AI总结:

针对自注意力二次复杂度问题,提出基于状态空间模型的Mamba YOLO基线,通过ODMamba骨干和RG Block实现线性复杂度实时检测,在COCO上取得最先进性能。

摘要:

受深度学习技术快速发展的推动,YOLO系列为实时目标检测器树立了新的基准。此外,基于Transformer的结构已成为该领域最强大的解决方案,极大地扩展了模型的感受野,并实现了显著的性能提升。然而,这种提升是有代价的,因为自注意力机制的二次复杂度增加了模型的计算负担。为解决这一问题,我们提出了一种简单而有效的基线方法,称为Mamba YOLO。我们的贡献如下:1)我们提出ODMamba骨干网络引入具有线性复杂度的状态空间模型(SSM),以解决自注意力的二次复杂度问题。与其他基于Transformer和基于SSM的方法不同,ODMamba无需预训练即可简单训练。2)针对实时性需求,我们设计了ODMamba的宏观结构,确定了最优的阶段比例和缩放尺寸。3)我们设计了RG Block,采用多分支结构对通道维度进行建模,以解决SSM在序列建模中可能存在的局限性,如感受野不足和图像定位能力弱。该设计能更准确、更显著地捕获局部图像依赖关系。在公开的COCO基准数据集上进行的大量实验表明,与以往方法相比,Mamba YOLO达到了最先进的性能。具体而言,Mamba YOLO的微小版本在单个4090 GPU上实现了7.5%的mAP提升,推理时间为1.5毫秒。PyTorch代码可在https://github.com/HZAI-ZJNU/Mamba-YOLO获取。

英文摘要:

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 \textbf{S}tate \textbf{S}pace \textbf{M}odel (\textbf{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 \textbf{7.5}\% improvement in mAP on a single 4090 GPU with an inference time of \textbf{1.5} ms. The pytorch code is available at: \url{https://github.com/HZAI-ZJNU/Mamba-YOLO}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑