Learning Non-maximum Suppression

Jan Hendrik Hosang, Rodrigo Benenson, Bernt Schiele

Introduction

Object detection pipelines typically generate a vast number of candidate bounding boxes, many of which redundantly cover the same object. The standard solution is Non-Maximum Suppression (NMS), which collapses these overlaps into a single detection. For decades, the industry has relied on GreedyNMS, a hand-crafted algorithm that deletes nearby boxes based on a fixed Intersection-over-Union (IoU) threshold.

Visualizing the NMS process: from raw candidate detections to final object instances.

However, GreedyNMS is limited. High thresholds lead to double detections, while low thresholds can accidentally suppress real objects in crowded or occluded scenes. Hosang et al. propose replacing this heuristic with a learned approach: GossipNet (Gnet).

GossipNet: Learning to Suppress

The authors introduce a "pure NMS network" that operates solely on bounding box geometry and scores, without requiring image pixels. The architecture is built on two core principles:

  1. Joint Processing: Unlike GreedyNMS, which processes boxes sequentially, GossipNet allows detections to "talk" to one another. It uses blocks that compute relative features—such as IoU, distance, and scale differences—between overlapping pairs.
  2. Matching Loss: To ensure the network outputs exactly one high score per ground-truth object, the authors employ a loss function based on Hungarian matching. This penalizes the network for both missing objects and producing redundant high-scoring detections.
The GossipNet architecture for training and testing, featuring message-passing blocks and a matching loss.

By passing messages across multiple layers, the network effectively negotiates which box should represent an object and which should be suppressed.

Evaluation and Results

GossipNet was evaluated on the PETS dataset (crowded pedestrian scenes) and the COCO benchmark.

  • Occlusion Handling: On PETS, Gnet outperformed tuned GreedyNMS by 4.8 Average Precision (AP) points. In highly occluded scenarios, this improvement rose to 7.3 AP.
  • Generalization: On COCO, Gnet provided a consistent ~1.0 mAP gain across 80 object categories, demonstrating its robustness beyond specific classes.
  • Efficiency: A 16-block Gnet processes an image in approximately 14ms on a GPU, making it a viable replacement in modern real-time pipelines.

Conclusion

This work represents a significant step toward fully end-to-end object detection by removing the "last mile" of hand-crafted post-processing. While Gnet is data-hungry, its ability to learn the statistics of box overlaps allows it to handle complex scenes far better than traditional heuristics. Future work may integrate image features directly into the NMS network to further distinguish between occluded objects and false positives.

Summary updated

BibTeX
@inproceedings{hosang2017learning,
  author = {Jan Hendrik Hosang and Rodrigo Benenson and Bernt Schiele},
  title = {{Learning Non-maximum Suppression}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.685},
}
Figure