Abstract
One-stage object detectors often suffer from classification inconsistency, where feature sampling locations do not align with regressed bounding boxes. We present the Hierarchical Shot Detector (HSD), a framework that addresses this by stacking specialized modules to align feature sampling with predicted object locations. HSD achieves state-of-the-art accuracy on MS COCO and PASCAL VOC while maintaining real-time performance.
Introduction: The Problem of Classification Inconsistency
Object detection typically involves two paradigms: two-stage detectors, which are accurate but slow, and one-stage detectors, which are fast but less precise. A key limitation of one-stage detectors like SSD or YOLO is "classification inconsistency." When these models predict a bounding box offset (regression), the features used for classification often remain at the original anchor location. This spatial mismatch degrades performance because the classifier is looking at the wrong part of the image.
Methodology: The Reg-Offset-Cls (ROC) Module
The primary innovation of HSD is the reg-offset-cls (ROC) module. Unlike standard heads that perform simultaneous classification and regression, the ROC module operates hierarchically:
- Box Regression: An initial offset is predicted to move the default anchor box closer to the object.
- Feature Sampling Offset: The model calculates precise coordinates for feature sampling based on the updated box location.
- Regressed Box Classification: Deformable convolutions are employed to sample features from these calculated offsets, ensuring the classifier "sees" the object within its new boundaries.
The HSD architecture stacks two ROC modules, separated by a Feature Enhanced (FE) module. The FE module utilizes dilated convolutions and non-local blocks to provide both local context and global dependencies, enhancing the discriminative power of features for the second stage.
Experimental Results
HSD was evaluated on the MS COCO and PASCAL VOC datasets.
MS COCO Performance
On the MS COCO benchmark, HSD demonstrated a superior balance of speed and accuracy. Using a VGG16 backbone, the model achieved 33.5% Average Precision (AP) with an inference time of 25ms per image. Upgrading to a ResNet101 backbone increased accuracy to 40.2% AP. Notably, HSD outperformed RefineDet by 2.7% AP and SSD by 5.0% AP using identical backbones.
Robustness and Context
Ablation studies highlighted the importance of the FE module, particularly for small objects. By integrating non-local context, the model effectively captures features that simple local convolutions might miss. The hierarchical structure adds only minimal latency, proving that high-precision cascading can be achieved in real-time.
Conclusion
The Hierarchical Shot Detector successfully bridges the gap between one-stage and two-stage detectors. By ensuring that classification features are spatially aligned with regressed boxes through the ROC module, HSD provides a significant accuracy boost without sacrificing real-time efficiency. Future research may extend this hierarchical alignment to anchor-free detection frameworks.
Summary updated