Location-Aware Box Reasoning for Anchor-Based Single-Shot Object Detection

Wenchi Ma, Kaidong Li, Guanghui Wang

Abstract

Single-shot object detectors often suffer from a misalignment between classification confidence and localization accuracy, where the most "confident" detection is not necessarily the most spatially accurate. This paper proposes Location-Aware Anchor-based Reasoning (LAAR), which introduces a dedicated localization score (locscore) branch. By predicting the Anchor Intersection-over-Union (AIoU) and combining it with classification scores into a Calibrated Quality Score (CQS), the framework ensures that high-quality, well-localized bounding boxes are prioritized during post-processing. Evaluations on MS COCO and PASCAL VOC demonstrate consistent improvements in Mean Average Precision (mAP), particularly for high-precision localization metrics.

Introduction

In object detection, models must simultaneously classify objects and regress their spatial coordinates. Modern single-shot detectors like SSD and RetinaNet typically rely on classification confidence scores to rank candidate bounding boxes during Non-Maximum Suppression (NMS). However, a high classification score does not inherently guarantee high localization precision. This "misalignment" often leads to the selection of poorly fitted boxes over more accurate ones that may have slightly lower classification confidence. Single-shot detectors are particularly prone to this because they lack the pre-selection stage found in two-stage detectors.

Methodology: Location-Aware Anchor-based Reasoning (LAAR)

The LAAR framework addresses this misalignment by introducing a third branch to the standard detection head: the Locscore Head.

Overview of the LAAR framework, illustrating the prediction of localization scores based on Anchor Intersection-over-Union (AIoU).

The Locscore Head and AIoU

The Locscore Head is a novel network block trained to predict the Anchor Intersection-over-Union (AIoU), which represents the spatial overlap between a predefined anchor box and the ground truth. This provides a "location reference" that assesses how well-positioned an anchor is relative to the target object before regression. Instead of just using anchors as starting points, LAAR uses the anchor's initial relationship to the ground truth as a proxy for how trustworthy the final regressed box will be.

Calibrated Quality Score (CQS)

During inference, the model calculates a Calibrated Quality Score (CQS) by multiplying the classification confidence by the predicted localization score. This unified metric ensures that the ranking process accounts for both "what" the object is and "how well" it is localized. The framework is designed to be modular, allowing it to be integrated into existing single-shot frameworks like RetinaNet or SSD without requiring a total redesign of the backbone.

Classification Cluster (CS)

To further refine the results, a clustering technique is incorporated during the NMS stage. This helps stabilize scores for multiple boxes belonging to the same object instance, reducing redundancy and improving final detection quality.

Experimental Results

The researchers evaluated LAAR on the MS COCO 2017 and PASCAL VOC (2007 & 2012) benchmarks.

Quantitative Performance

On the COCO dataset, integrating LAAR into RetinaNet led to significant gains. Most notably, for the AP75 metric—which requires a high degree of localization accuracy—the score improved from 32.1% to 33.2%. On PASCAL VOC, the combination of Locscore and Classification Cluster (LC+CS) achieved a mAP of 77.64%, outperforming the baseline SSD model.

Qualitative Analysis

Visual evaluations confirm that LAAR produces "fitter and tighter" bounding boxes compared to standard single-shot detectors.

Qualitative results showing the model's ability to produce accurate, tight bounding boxes across various object categories.

The framework is particularly effective in challenging scenarios, such as detecting small objects or items in cluttered environments, where traditional classification-based ranking often fails to select the best spatial fit.

Conclusion

LAAR provides a modular, "plug-and-play" solution to the classification-localization misalignment problem in anchor-based detectors. By treating localization quality as a learnable parameter, the model gains spatial awareness, leading to more reliable object detection. While the method introduces minor computational overhead and is currently optimized for anchor-based architectures, its success highlights the importance of joint reasoning over classification and localization quality.

Summary updated

BibTeX
@article{ma2020location,
  author = {Wenchi Ma and Kaidong Li and Guanghui Wang},
  title = {{Location-Aware Box Reasoning for Anchor-Based Single-Shot Object Detection}},
  journal = {IEEE Access},
  year = {2020},
  doi = {10.1109/access.2020.3009344},
}
Figure