Scope Head for Accurate Localization in Object Detection

Geng Zhan, Dan Xu, Guo Lu, Wei Wu, Chunhua Shen, Wanli OuyangarXiv 2020

Abstract

Existing anchor-based and anchor-free object detectors in multi-stage or one-stage pipelines have achieved very promising detection performance. However, they still encounter the design difficulty in hand-crafted 2D anchor definition and the learning complexity in 1D direct location regression. To tackle these issues, in this paper, we propose a novel detector coined as ScopeNet, which models anchors of each location as a mutually dependent relationship. This approach quantizes the prediction space and employs a coarse-to-fine strategy for localization. It achieves superior flexibility as in the regression based anchor-free methods, while produces more precise prediction. Besides, an inherit anchor selection score is learned to indicate the localization quality of the detection result, and we propose to better represent the confidence of a detection box by combining the category-classification score and the anchor-selection score. With our concise and effective design, the proposed ScopeNet achieves state-of-the-art results on COCO.

Introduction

In computer vision, object detection has traditionally been divided between two philosophies: anchor-based methods, which utilize predefined boxes to estimate object locations, and anchor-free methods, which regress coordinates directly. While anchor-based models like RetinaNet are robust, they are sensitive to manual box design. Conversely, anchor-free models like FCOS offer flexibility but often struggle with the "unbounded" nature of direct regression, making precise localization difficult.

ScopeNet introduces a "Scope Head" that bridges this gap. By rethinking the search space for bounding boxes, it treats object localization as a coarse-to-fine task, quantizing the 1D search space into discrete, learnable bins. This allows the model to achieve the flexibility of anchor-free methods with the high-precision localization typically reserved for multi-stage detectors.

Rethinking Localization Modeling

The fundamental challenge in current one-stage detectors lies in learning complexity. Anchor-based detectors rely on hand-crafted 2D anchors; if an object does not fit predefined aspect ratios, performance suffers. Furthermore, predicting scores for thousands of overlapping anchors creates massive redundancy. Anchor-free detectors attempt to predict distances to four edges directly, but asking a network to predict precise values in an unbounded range (e.g., 1 to 1000+ pixels) is computationally demanding.

Comparison of localization modeling: (a) Anchor-based, (b) Anchor-free, and (c) the proposed 1D anchor-dependent modeling.

ScopeNet addresses these issues by decomposing the 2D box problem into four independent 1D problems (left, right, top, and bottom distances). This 1D anchor-dependent modeling divides the possible distance for each direction into $N$ intervals (bins), effectively quantizing the search space.

The Scope Head Framework

The core innovation, the Scope Head, employs a coarse-to-fine localization strategy for each direction through two branches:

  1. Bin Classification: A softmax-based branch that selects the "bin" where the object's edge likely resides.
  2. Border Regression: A refinement branch that predicts the exact offset within the selected bin.
Visualization of the Scope Head mechanism, showing 1D bin classification and refinement for the four bounding box edges on a sample image.

Unlike traditional anchors, these 1D intervals are learnable parameters, allowing the model to adapt its "scope" to the data distribution during training. To handle edge cases where an object boundary falls between bins, the model utilizes a "temperature" term ($\sigma^2$) in the softmax to smooth the probability distribution and express uncertainty.

Furthermore, ScopeNet introduces Localization-Guided Scoring. Standard models often rank detections based solely on category classification. ScopeNet combines this with an "anchor-selection score" derived from the bin selection process. The final detection score is the product of category confidence and localization confidence, prioritizing boxes that are both correctly classified and accurately localized.

Experimental Results

ScopeNet was evaluated on the MS COCO dataset, the gold standard for modern object detection. The model demonstrates significant performance gains, particularly in high-precision scenarios:

  • State-of-the-Art Performance: On COCO test-dev, ScopeNet (with a ResNet-101 backbone) achieved 43.4 mAP, outperforming FCOS (41.5) and RetinaNet (39.1).
  • High Precision ($AP_{75}$): The model excels at stricter IoU thresholds, achieving an $AP_{75}$ of 47.8. This confirms that the coarse-to-fine binning strategy leads to tighter, more accurate bounding boxes.
  • Efficiency: By modeling four 1D directions with $N$ anchors, the model represents $N^4$ possible box shapes. For $N=5$, this provides 625 shapes per location—far more than the 9 typically used in anchor-based models—with significantly less computational overhead.

Conclusion

ScopeNet provides a concise and effective framework for object localization by combining the strengths of anchor-based and anchor-free approaches. By quantizing the search space and using a coarse-to-fine refinement strategy, it achieves superior precision on the COCO dataset. Future work may involve exploring the integration of the Scope Head into multi-stage architectures or extending its application to 3D object detection tasks.

Summary updated

Abstract

Existing anchor-based and anchor-free object detectors in multi-stage or one-stage pipelines have achieved very promising detection performance. However, they still encounter the design difficulty in hand-crafted 2D anchor definition and the learning complexity in 1D direct location regression. To tackle these issues, in this paper, we propose a novel detector coined as ScopeNet, which models anchors of each location as a mutually dependent relationship. This approach quantizes the prediction space and employs a coarse-to-fine strategy for localization. It achieves superior flexibility as in the regression based anchor-free methods, while produces more precise prediction. Besides, an inherit anchor selection score is learned to indicate the localization quality of the detection result, and we propose to better represent the confidence of a detection box by combining the category-classification score and the anchor-selection score. With our concise and effective design, the proposed ScopeNet achieves state-of-the-art results on COCO

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
COCO · test-devScopeNetAP43.4split: test-dev · backbone=ResNet-101
Source quote
L343: ScopeNet (ours) │ ResNet-101-FPN │ 43.4 │ 61.2 │ 47.8 │ 26.0 │ 46.8 │ 53.8
COCO · test-devFCOSAP41.5split: test-dev · backbone=ResNet-101
Source quote
L341: FCOS~\cite{tian2019fcos} │ ResNet-101-FPN │ 41.5 │ 60.7 │ 45.0 │ 24.4 │ 44.8 │ 51.6
COCO · test-devScopeNetAP-7547.8split: test-dev · backbone=ResNet-101
Source quote
L343: ScopeNet (ours) │ ResNet-101-FPN │ 43.4 │ 61.2 │ 47.8 │ 26.0 │ 46.8 │ 53.8
COCO · test-devFCOSAP-7545.0split: test-dev · backbone=ResNet-101
Source quote
L341: FCOS~\cite{tian2019fcos} │ ResNet-101-FPN │ 41.5 │ 60.7 │ 45.0 │ 24.4 │ 44.8 │ 51.6
COCO · minivalScope Head, direct regression (N=1)AP35.8split: minival
Source quote
L206: \checkmark │ 35.8 │ 55.2 │ 37.5 │ 18.7 │ 40.1 │ 47.6
COCO · minivalScope Head, multiple anchors + re-scoreAP38.0split: minival
Source quote
L208: \checkmark │ \checkmark │ {38.0} │ {56.1} │ {40.6} │ {20.8} │ {41.9} │ {50.1}
BibTeX
@misc{zhan2020scope,
  author = {Geng Zhan and Dan Xu and Guo Lu and Wei Wu and Chunhua Shen and Wanli Ouyang},
  title = {{Scope Head for Accurate Localization in Object Detection}},
  year = {2020},
  eprint = {2005.04854},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.04854},
}
Figure