Semi-Anchored Detector for One-Stage Object Detection

Lei Chen, Qi Qian, Hao LiarXiv 2020

Abstract

A standard one-stage detector is comprised of two tasks: classification and regression. Anchors of different shapes are introduced for each location in the feature map to mitigate the challenge of regression for multi-scale objects. However, the performance of classification can degrade due to the highly class-imbalanced problem in anchors. Recently, many anchor-free algorithms have been proposed to classify locations directly. The anchor-free strategy benefits the classification task but can lead to sup-optimum for the regression task due to the lack of prior bounding boxes. In this work, we propose a semi-anchored framework. Concretely, we identify positive locations in classification, and associate multiple anchors to the positive locations in regression. With ResNet-101 as the backbone, the proposed semi-anchored detector achieves 43.6% mAP on COCO data set, which demonstrates the state-of-art performance among one-stage detectors.

Introduction

In the realm of one-stage object detection, a persistent challenge lies in balancing the needs of classification and regression. Traditional anchor-based detectors, such as RetinaNet, utilize a dense grid of pre-defined "priors" or anchors. While these anchors provide a strong foundation for accurate bounding box regression across various scales, they introduce a severe class-imbalance problem. In a typical image, the ratio of foreground to background anchors can be as extreme as 1:1400, making the classification task exceptionally difficult.

Conversely, anchor-free detectors like FCOS bypass anchors entirely, classifying individual pixels or locations. This approach significantly alleviates the class imbalance (improving the ratio to approximately 1:200) but often results in less precise regression, particularly for objects with unusual aspect ratios or extreme scales, due to the absence of geometric priors.

The Semi-Anchored Detector bridges this gap. By decoupling the detection pipeline, it employs an anchor-free strategy for initial location identification and an anchor-based strategy for refined regression, combining the classification efficiency of the former with the regression accuracy of the latter.

Methodology

The semi-anchored framework introduces a decoupled pipeline that separates the identification of object locations from the selection of specific bounding box priors.

Overview of the Semi-Anchored Detector pipeline, transitioning from location-based classification to specific anchor selection.

Location Classification (Anchor-Free)

The first stage of the pipeline identifies "positive locations" within the feature map. Instead of evaluating every possible anchor at every point, the model determines if a location is likely to contain an object. A location is labeled positive if any anchor associated with that point achieves a significant overlap with a ground-truth object. This initial filtering step drastically reduces the search space and mitigates the class-imbalance problem inherent in dense anchor-based methods.

Anchor Classification (Semi-Anchored)

Once a location is identified as positive, the "Anchor Classification" head takes over. This component determines which specific anchors at that location are most suitable for the regression task. By sharing features with the regression branch, this head leverages the high correlation between an anchor's initial geometry and its potential for accurate regression. During inference, the model typically employs a "Top-1" strategy, selecting only the single best anchor per location to minimize noise and improve efficiency.

Smoothed Focal Loss

Standard detection models often use binary (0 or 1) labels for anchor classification. However, the authors argue that an anchor's suitability is a continuous quality. They introduce Smoothed Focal Loss, which utilizes normalized Intersection over Union (IoU) scores as "soft labels."

The process of computing regression distributions to generate soft labels for training.

This approach effectively distills knowledge from the regression task back into the classification task. By using the post-regression IoU to guide the classification labels, the model learns to prioritize anchors that demonstrate the best performance after adjustment, rather than just those that fit well initially.

Experimental Results

The Semi-Anchored Detector was rigorously evaluated on the MS-COCO 2017 dataset, using standard training and validation protocols.

Performance on COCO

With a ResNet-101 backbone, the proposed detector achieved 43.6% mAP on the COCO test-dev set. When upgraded to a ResNeXt-64x4d-101 backbone, the performance reached 45.4% mAP. These results place the Semi-Anchored Detector at the state-of-the-art for one-stage detectors, outperforming established models like RetinaNet (39.1%) and FCOS (41.0%), as well as two-stage frameworks like Mask R-CNN (38.2%).

Efficiency and Generalizability

Despite the inclusion of multiple anchors for regression (up to 25 per location in experimental configurations), the model remains highly efficient. The ResNet-50 variant processes images in approximately 98ms, a speed comparable to RetinaNet. This efficiency is largely due to the anchor-free classification stage, which allows the model to discard background regions early in the pipeline. Furthermore, the semi-anchored strategy proved versatile; when integrated into the classic SSD detector, it yielded a significant 2% mAP improvement.

Conclusion

The Semi-Anchored Detector offers a compelling solution to the classification-regression trade-off in one-stage object detection. By shifting from anchor-classification to location-classification, the framework reduces class imbalance while maintaining the regression benefits of anchor priors. The introduction of Smoothed Focal Loss further enhances performance by aligning classification goals with regression outcomes. Future work will continue to explore the synergy between anchor-based and anchor-free methodologies to further push the boundaries of detection accuracy and speed.

Summary updated

BibTeX
@misc{chen2020semi,
  author = {Lei Chen and Qi Qian and Hao Li},
  title = {{Semi-Anchored Detector for One-Stage Object Detection}},
  year = {2020},
  eprint = {2009.04989},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.04989},
}
Figure