Light-Head R-CNN: In Defense of Two-Stage Object Detector

Zeming Li, Chao Peng, Gang Yu, Xiangyu Zhang, Yangdong Deng, Jian SunarXiv 2017

Introduction

Two-stage object detectors, such as Faster R-CNN and R-FCN, have long been the gold standard for accuracy in computer vision. However, they are often dismissed as too slow for real-time applications when compared to one-stage rivals like YOLO or SSD. Light-Head R-CNN challenges this notion by radically slimming down the "head" of the detector, demonstrating that a two-stage architecture can outperform one-stage models in both speed and precision.

The "Heavy Head" Bottleneck

The primary computational bottleneck in traditional two-stage detectors is the "heavy head." In Faster R-CNN, the network performs intensive computation—specifically multiple fully connected layers—for every single Region of Interest (RoI). In R-FCN, while the per-RoI computation is reduced, the network must generate massive "score maps" (e.g., $P^2(C+1)$ channels) that consume significant memory and computation time. This heavy design ensures that even with a lightweight backbone, the overall inference speed remains low.

Proposed Architecture: Light-Head R-CNN

The Light-Head R-CNN introduces two structural innovations to minimize computational overhead while maintaining high accuracy.

Comparison of object detection architectures: Faster R-CNN (A), R-FCN (B), and the proposed Light-Head R-CNN (C).

1. Thin Feature Maps

Instead of passing high-dimensional feature maps to the RoI pooling layer, Light-Head R-CNN utilizes large separable convolutions (e.g., $15 \times 1$ and $1 \times 15$) to produce "thin" feature maps. This reduces the number of channels significantly (down to as few as 10 in some configurations) before the expensive RoI warping step. The large kernels ensure a wide receptive field, capturing sufficient context without the parameter explosion of standard large convolutions.

2. Cheap R-CNN Subnet

Traditional models employ heavy sub-networks after RoI pooling for classification. Light-Head R-CNN replaces these with a single, "cheap" fully connected layer of 2048 units. Because the input feature maps are thin, this single layer is computationally inexpensive yet powerful enough for accurate classification and regression. By shifting the complexity to the shared feature map generation stage, the marginal cost of processing additional proposals is drastically reduced.

Experimental Results

The model was evaluated primarily on the MS COCO dataset, using backbones ranging from ResNet-101 to a custom Xception-like small backbone.

Speed (inference time) vs. Accuracy (COCO AP) comparison of Light-Head R-CNN against other state-of-the-art detectors.

Light-Head R-CNN establishes a new state-of-the-art speed-accuracy trade-off:

  • High-Performance Setting: With a ResNet-101 backbone, it achieved 41.5 mAP on COCO, surpassing heavyweights like Mask R-CNN and RetinaNet.
  • High-Speed Setting: Using a small backbone, the model reached 30.7 mAP at 102 FPS, significantly outperforming YOLOv2 (21.6 mAP at 40 FPS) and SSD300 (25.1 mAP at 58 FPS).

Conclusion

Light-Head R-CNN proves that the two-stage architecture is not inherently slow. By optimizing the distribution of computation and employing a "light-head" design, the model achieves superior efficiency and accuracy. This approach makes two-stage detectors viable for real-time deployment on resource-constrained hardware, successfully defending their relevance in the era of one-stage models.

Summary updated

BibTeX
@misc{li2017light,
  author = {Zeming Li and Chao Peng and Gang Yu and Xiangyu Zhang and Yangdong Deng and Jian Sun},
  title = {{Light-Head R-CNN: In Defense of Two-Stage Object Detector}},
  year = {2017},
  eprint = {1711.07264},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.07264},
}
Figure