Probabilistic Anchor Assignment with IoU Prediction for Object Detection

Kang Kim, Hee Seok LeeECCV 2020

Abstract

Modern object detection relies heavily on anchor assignment, typically governed by rigid geometric heuristics like Intersection-over-Union (IoU) thresholds. This paper introduces Probabilistic Anchor Assignment (PAA), a data-driven approach that adaptively labels anchors by fitting a Gaussian Mixture Model (GMM) to their scores. By aligning anchor assignment with the model's learning state and incorporating an IoU prediction head for better ranking, the proposed method achieves state-of-the-art performance on the MS COCO benchmark, reaching 53.5% AP with advanced backbones.

Introduction

A core challenge in object detection is determining which predefined "anchors" should be treated as positive samples (containing an object) versus negative samples (background). Traditional methods use fixed IoU thresholds, which often fail to account for the actual visual content or the model's current predictive capabilities. For instance, a high-overlap anchor might focus on a non-discriminative part of an object, while a lower-overlap anchor might capture a key feature. This paper addresses these limitations by making anchor assignment part of the training loop itself.

Methodology

The authors propose a three-pronged approach to modernize the detection pipeline, focusing on adaptive assignment and better score alignment.

Overview of the proposed detection pipeline compared to existing methods like RetinaNet and ATSS, highlighting differences in assignment and optimization.

Probabilistic Anchor Assignment (PAA)

Instead of relying on static thresholds, PAA treats anchor assignment as a maximum likelihood estimation problem. For each ground-truth object, the model evaluates a set of candidate anchors and calculates a score based on how well the model currently classifies and localizes that object. A Gaussian Mixture Model (GMM) with two components (positive and negative) is then fitted to these scores. Anchors are assigned to the component they most likely belong to, making the process adaptive to the model's training progress.

Visualization of anchors on an image and the resulting GMM distribution used for probabilistic assignment.

IoU Prediction and Score Voting

To address the misalignment between training loss and inference ranking (NMS), the authors add an IoU prediction head. This single convolutional layer predicts the IoU of the detected box, which is then multiplied by the classification score to create a "unified score." This ensures that boxes with high localization accuracy are prioritized during post-processing. Additionally, a "Score Voting" step refines final coordinates by taking a weighted average of neighboring boxes based on these unified scores.

Experimental Results

The PAA method was evaluated on the MS COCO dataset. Using a ResNet-101 backbone, PAA achieved 44.8% AP, a significant improvement over the RetinaNet baseline (39.1%) and the previous state-of-the-art ATSS (43.6%). When scaled with ResNeXt-101 and Deformable Convolutions, the model reached a peak of 53.5% AP, setting a new record for single-stage detectors at the time of publication. Notably, these gains come with minimal computational overhead, as PAA only adds one convolutional layer and maintains high inference efficiency.

Conclusion

Probabilistic Anchor Assignment shifts the paradigm from heuristic-based to model-driven sample selection. By letting the detector reason about its own learning status through GMM fitting and aligning localization quality with classification scores, PAA provides a mathematically grounded way to handle the inherent ambiguity in anchor quality. Future work may involve further optimizing the GMM fitting process and exploring multi-class extensions for complex scenes with many overlapping objects.

Summary updated

BibTeX
@inproceedings{kim2020probabilistic,
  author = {Kang Kim and Hee Seok Lee},
  title = {{Probabilistic Anchor Assignment with IoU Prediction for Object Detection}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58595-2\_22},
}
Figure