M2Det: A Single-Shot Object Detector Based on Multi-Level Feature Pyramid Network

Qijie Zhao, Tao Sheng, Yongtao Wang, Zhi Tang, Ying Chen, Ling Cai, Haibin Ling

Introduction

Scale variation remains a primary challenge in object detection, where objects of vastly different sizes must be accurately localized and classified. While standard detectors employ feature pyramids—layers of decreasing resolution—to address this, existing architectures like the Feature Pyramid Network (FPN) and Single Shot MultiBox Detector (SSD) suffer from two significant limitations.

First, they exhibit a classification bias, as their pyramids are constructed directly from backbones designed for image classification, which may not capture the nuances required for detection. Second, they have a single-level limitation, where each scale in the pyramid is derived from a single depth in the network. This assumes that an object's complexity is strictly tied to its size, ignoring the fact that small, complex objects may require high-level semantic features, while large, simple objects might benefit from low-level textures.

To overcome these issues, M2Det introduces the Multi-Level Feature Pyramid Network (MLFPN). By decoupling "scale" (object size) from "level" (feature abstraction), M2Det constructs more effective feature pyramids that fuse information from multiple depths for every object scale.

The MLFPN Architecture

The core of M2Det is the MLFPN, which consists of three primary components designed to create a rich, multi-level feature representation.

The overall architecture of M2Det, highlighting the MLFPN components: FFM, TUM, and SFAM.

Feature Fusion Modules (FFM)

The process begins with FFMv1, which merges shallow and deep layers from the backbone network to generate a "base feature." This base feature provides a foundation rich in both spatial detail and semantic information. Subsequently, FFMv2 is used to pass this base feature into successive processing blocks, ensuring a consistent flow of information throughout the network.

Thinned U-shape Modules (TUM)

Instead of relying on a single deep decoder, M2Det stacks multiple Thinned U-shape Modules (TUMs). Each TUM independently generates a set of multi-scale feature maps. By stacking these modules, the network produces features at the same spatial resolution but at varying levels of depth and abstraction, effectively capturing a wider range of object characteristics.

Scale-wise Feature Aggregation Module (SFAM)

The SFAM serves as the final aggregation step. It collects features of the same scale from all TUMs and concatenates them. To refine these multi-level features, SFAM applies a channel-wise attention mechanism (similar to Squeeze-and-Excitation blocks), highlighting the most relevant features for each specific scale before passing them to the detection head.

Experimental Results

M2Det was evaluated on the MS COCO benchmark, a rigorous standard for object detection. The model achieved a new state-of-the-art for one-stage detectors at the time of its release.

Comparison of M2Det against other state-of-the-art detectors in terms of COCO AP and inference time.

As shown in the performance analysis, M2Det achieves a superior balance between accuracy and speed. Specifically, it reached 41.0 AP on the COCO test-dev set with single-scale inference, outperforming established models like RetinaNet (39.1 AP) and SSD512 (28.8 AP). With multi-scale inference, its performance further improved to 44.2 AP.

In terms of efficiency, the VGG-based M2Det-320 variant maintains a high frame rate of 33.4 FPS, making it viable for near real-time applications. The more accurate M2Det-800 variant, while slower at 11.8 FPS, provides industry-leading precision for complex detection tasks.

Conclusion

M2Det demonstrates that decoupling feature levels from spatial scales is a powerful paradigm for object detection. By stacking thinned U-shaped modules and aggregating multi-level features, the MLFPN architecture provides a more robust representation of objects across all sizes. While the computational overhead of stacking modules is a consideration for real-time deployment, the significant gains in accuracy establish M2Det as a landmark architecture in the evolution of single-shot detectors.

Summary updated

BibTeX
@inproceedings{zhao2019m,
  author = {Qijie Zhao and Tao Sheng and Yongtao Wang and Zhi Tang and Ying Chen and Ling Cai and Haibin Ling},
  title = {{M2Det: A Single-Shot Object Detector Based on Multi-Level Feature Pyramid Network}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33019259},
}
Figure