YOLO-MS: Rethinking Multi-Scale Representation Learning for Real-time Object Detection

Yuming Chen, Xinbin Yuan, Jiabao Wang, Ruiqi Wu, Xiang Li, Qibin Hou, Ming-Ming Cheng · DOI

TL;DR

YOLO-MS is a new real-time object detector that significantly boosts performance by rethinking how models learn multi-scale features at the most basic level. By introducing a hierarchical building block (MS-Block) and a strategy for varying convolution kernel sizes (HKS), it outperforms state-of-the-art models like YOLOv8 and RTMDet while remaining highly efficient.

What Problem Does This Paper Address?

Detecting objects of vastly different sizes—from a tiny bird in the distance to a large truck in the foreground—remains a fundamental challenge for real-time detectors. Most existing "YOLO-style" models try to solve this at the "macro" level, using complex "necks" (like FPN or PAFPN) to fuse features from different stages of the network.

However, the authors of YOLO-MS argue that this overlooks the "micro" level: the basic building blocks themselves. They discovered that in popular architectures like YOLOv7 or RTMDet, the multiple branches within a single block often end up learning very similar, redundant information. This "homogenization" limits the model's ability to represent diverse scales effectively. Furthermore, most detectors use the same small 3x3 convolution kernels everywhere, which might not be optimal for capturing the broad semantic context needed for large objects.

Methods

The authors propose three key innovations to address these gaps:

  1. MS-Block (Multi-Scale Block): Instead of the parallel branches found in standard CSP or ELAN blocks, MS-Block uses a hierarchical multi-branch structure. This design ensures that each branch has a different receptive field, forcing the model to capture a richer variety of multi-scale information within a single block.
  2. Global Query Learning (GQL): To further refine these features, the authors introduce a lightweight attention mechanism. A "global query" travels through the network stages, helping each block dynamically balance the influence of its different branches based on the input and the stage's location. This helps the model focus on relevant object features and ignore "contaminative" background noise.
  3. Heterogeneous Kernel Size Selection (HKS): Rather than using 3x3 kernels everywhere, HKS gradually increases kernel sizes as the network goes deeper. It starts with 3x3 in shallow layers (to efficiently process high-resolution details for small objects) and scales up to 9x9 in deep layers (to capture the wide semantic context needed for large objects).
The MS-Block architecture compared to traditional ELAN and CSP blocks.

Datasets

The primary benchmark for evaluation is the MS COCO dataset. Notably, the authors trained YOLO-MS from scratch on COCO without using pre-trained weights from larger datasets like ImageNet.

To prove the model's versatility, they also tested it on several specialized datasets:

  • DOTA-v1.0: For aerial object detection.
  • CrowdHuman: For detecting people in highly crowded scenes.
  • RUDO: For underwater object detection.
  • RTTS: For detection in foggy weather.
  • AODRaw: For object detection directly from RAW image data.

Key Insights and Ideas

  • Branch Diversity Matters: The authors quantified "inter-branch diversity" and showed that their hierarchical MS-Block produces much more diverse features than standard YOLO blocks. As seen in Figure 1, higher diversity (D) correlates with better detection performance.
  • Kernel Size Should Match Feature Resolution: Large kernels are computationally expensive on high-resolution (shallow) features but very efficient on low-resolution (deep) features. HKS exploits this to get the benefits of large receptive fields without a massive speed penalty.
  • Plug-and-Play Generalization: The MS-Block isn't just for one model; it can be dropped into other architectures. Replacing standard blocks in YOLOv8 with MS-Blocks improved accuracy while actually reducing the number of parameters and computations.
Fig. 1. Branch feature diversity for different YOLO models. For simplicity, only the feature visualization results of the two branches are presented, and it suffices to show the effectiveness of our method in enriching feature diversity. In the table, D is an intuitive indicator to measure the diversity of detectors’ inter-branch features1.

Key Results

YOLO-MS achieves a superior trade-off between accuracy (AP) and efficiency (Parameters/MACs) compared to the current state-of-the-art.

  • YOLO-MS-XS: Achieves 42.8% AP on MS COCO with only 5.1M parameters, outperforming RTMDet-T (40.3% AP) with similar complexity.
  • YOLO-MS-S: Reaches 45.4% AP, surpassing the baseline RTMDet-S.
  • YOLO-MS (Large): Reaches 49.7% AP, showing strong scaling capabilities.
  • Plug-and-Play: When applied to YOLOv8-N, it boosted the AP from 37.2% to 40.2% while using fewer parameters.
Fig. 2. Comparisons with other state-of-the-art real-time object detectors on the MS COCO dataset [43]. (a) AP performance v.s. #parameters. (b) AP performance v.s. #computations (MACs). The input size utilized to compute the MACs is 640 × 640. Our proposed YOLO-MS achieves the best trade-off between performance and computations.

Limitations and Future Work

While YOLO-MS is highly efficient, the authors note that incorporating very large kernels in the earliest stages of a network is still challenging due to the high computational overhead on high-resolution images. Future work might explore even more efficient ways to integrate large-scale context in shallow layers. Additionally, while the model performs exceptionally well when trained from scratch, exploring its performance with large-scale pre-training remains an open avenue.

Summary updated

BibTeX
@article{chen2025yolo,
  author = {Yuming Chen and Xinbin Yuan and Jiabao Wang and Ruiqi Wu and Xiang Li and Qibin Hou and Ming-Ming Cheng},
  title = {{YOLO-MS: Rethinking Multi-Scale Representation Learning for Real-time Object Detection}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2025.3538473},
}
Figure