Single-Shot Refinement Neural Network for Object Detection

Shifeng Zhang, Longyin Wen, Xiao Bian, Zhen Lei, Stan Z. Li

Introduction

In deep learning-based object detection, a persistent trade-off exists between two primary architectures. Two-stage detectors (e.g., Faster R-CNN) generate sparse candidate proposals before classification and refinement, achieving high accuracy at the cost of computational efficiency. Conversely, one-stage detectors (e.g., SSD, YOLO) predict objects directly from a dense grid of anchors, offering real-time speeds but often struggling with accuracy due to the extreme class imbalance between background and foreground anchors.

RefineDet is designed to bridge this gap, creating a "single-shot" detector that inherits the advantages of two-stage methods: effective handling of class imbalance, two-step bounding box regression, and the use of multi-stage features for object description.

Architecture and Methodology

RefineDet achieves its performance through an interconnected dual-module architecture:

  • Anchor Refinement Module (ARM): Functioning similarly to the first stage of a two-stage detector, the ARM filters out "easy" negative anchors to reduce the search space and performs coarse adjustments to anchor locations and sizes.
  • Object Detection Module (ODM): This module takes the refined anchors from the ARM to perform final multi-class classification and high-precision bounding box regression.
  • Transfer Connection Block (TCB): These blocks link the ARM and ODM, transferring feature maps while using deconvolution to ensure dimension matching and integrating high-level context to enhance detection accuracy.
The RefineDet architecture consists of the Anchor Refinement Module (ARM), the Object Detection Module (ODM), and the Transfer Connection Blocks (TCB) that link them.

The entire network is optimized end-to-end using a multi-task loss function that accounts for both the coarse refinement in the ARM and the fine-grained detection in the ODM.

Key Insights

Several design choices are critical to RefineDet's success:

  1. Negative Anchor Filtering: By discarding anchors with high background confidence early, the model focuses on "hard" examples, effectively mitigating the class imbalance problem.
  2. Two-Step Cascaded Regression: The transition from coarse adjustment in the ARM to fine adjustment in the ODM significantly improves localization, particularly for small objects.
  3. Feature Integration: TCBs integrate large-scale context by summing feature maps from different levels, providing the detection module with both fine-grained details and broad semantic information.

Experimental Results

RefineDet was evaluated on standard benchmarks including PASCAL VOC 2007, VOC 2012, and MS COCO. The results demonstrate that RefineDet achieves state-of-the-art accuracy while maintaining real-time inference speeds.

On the MS COCO test-dev set, RefineDet (using a ResNet-101 backbone) achieved 41.8% AP, outperforming contemporary models like RetinaNet and Faster R-CNN with FPN. In terms of speed, the model remains highly efficient, reaching 40.2 FPS with a 320x320 input on an NVIDIA Titan X GPU.

Comparison of RefineDet against state-of-the-art methods on the MS COCO dataset. RefineDet512+ achieves the highest AP of 41.8%.

On PASCAL VOC 2007, RefineDet reached 85.8% mAP, becoming the first real-time method to surpass the 80% mAP threshold on this benchmark.

Conclusion

RefineDet successfully combines the efficiency of one-stage detectors with the accuracy of two-stage frameworks. While input resolution remains a factor in performance—larger images yield better results but slower speeds—the architecture provides a robust foundation for high-performance detection. Future work may involve applying RefineDet to specialized tasks like face detection or incorporating attention mechanisms to further refine feature discriminative power.

Summary updated

BibTeX
@inproceedings{zhang2018single,
  author = {Shifeng Zhang and Longyin Wen and Xiao Bian and Zhen Lei and Stan Z. Li},
  title = {{Single-Shot Refinement Neural Network for Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00442},
}
Figure