Accelerating Non-Maximum Suppression: A Graph Theory Perspective

King-Siong Si, Lu Sun, Weizhan Zhang, Tieliang Gong, Jiahao Wang +2 more
9/30/2024
16 citations
cs.CVcs.LG

Official code: Yuri3-xr/NMS-Bench (9 stars, C++, Apache-2.0, last commit 2025-10-22).

Abstract

Non-maximum suppression (NMS) is an indispensable post-processing step in object detection. With the continuous optimization of network models, NMS has become the ``last mile'' to enhance the efficiency of object detection.

Show full abstract

This paper systematically analyzes NMS from a graph theory perspective for the first time, revealing its intrinsic structure. Consequently, we propose two optimization methods, namely QSI-NMS and BOE-NMS. The former is a fast recursive divide-and-conquer algorithm with negligible mAP loss, and its extended version (eQSI-NMS) achieves optimal complexity of $\mathcal{O}(n\log n)$. The latter, concentrating on the locality of NMS, achieves an optimization at a constant level without an mAP loss penalty. Moreover, to facilitate rapid evaluation of NMS methods for researchers, we introduce NMS-Bench, the first benchmark designed to comprehensively assess various NMS methods. Taking the YOLOv8-N model on MS COCO 2017 as the benchmark setup, our method QSI-NMS provides $6.2\times$ speed of original NMS on the benchmark, with a $0.1\%$ decrease in mAP. The optimal eQSI-NMS, with only a $0.3\%$ mAP decrease, achieves $10.7\times$ speed. Meanwhile, BOE-NMS exhibits $5.1\times$ speed with no compromise in mAP.

View on arXivView PDF

Code Implementations(1)

Yuri3-xr/NMS-BenchOfficial100%
Apache-2.0

NMS-Bench is a robust framework that allows researchers to evaluate various NMS methods over different models and datasets in a few minutes

91C++, PythonJan 12, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{si2024accelerating,
  title  = {Accelerating Non-Maximum Suppression: A Graph Theory Perspective},
  author = {King-Siong Si and Lu Sun and Weizhan Zhang and Tieliang Gong and Jiahao Wang and Jiang Liu and Hao Sun},
  year   = {2024},
  eprint = {2409.20520},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2409.20520},
  url    = {http://arxiv.org/abs/2409.20520v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.20520.svg)](https://codeofpaper.com/paper/2409.20520)

Discussion