Rethinking Classification and Localization for Object Detection

Yue Wu, Yinpeng Chen, Lu Yuan, Zicheng Liu, Lijuan Wang, Hongzhi Li, Yun Fu

Introduction

In the evolution of two-stage object detectors like Faster R-CNN, the "head"—the component responsible for classification and bounding box regression—has largely been treated as a monolithic structure. Whether using fully connected (fc) layers or convolutional (conv) layers, standard practice has been to apply the same architecture to both tasks. However, researchers from Northeastern University and Microsoft have demonstrated that these two structures possess inherently different strengths. By decoupling these tasks into a "Double-Head" architecture, they achieved significant performance gains on standard benchmarks.

The Double-Head Architecture

The core finding of this research is a fundamental task-structure mismatch: fc-heads are superior for classification, while conv-heads are superior for localization. To exploit this, the authors proposed the Double-Head architecture. Instead of a shared head, Region of Interest (RoI) features are split into two parallel branches.

Comparison of single-head architectures (a, b) with the proposed Double-Head architecture (c).

In the standard Double-Head setup, the classification branch utilizes two fully connected layers (2-fc), while the localization branch employs a series of residual convolutional blocks. An extended version, Double-Head-Ext, introduces "unfocused" task supervision, where each head performs the other's task as an auxiliary objective to further refine feature representations.

Why Different Heads Matter: Spatial Sensitivity

The researchers traced the performance difference to how these layers handle spatial information. Fully connected layers are spatially sensitive. Because they have unique parameters for every position in a proposal, they are better at distinguishing between a complete object and a partial one—a critical requirement for accurate classification.

Visualization of spatial correlation in output feature maps and weight parameters for conv-heads vs. fc-heads.

Conversely, convolutional layers are spatially invariant due to weight sharing. This characteristic makes them more robust for regression tasks, as they can consistently identify object boundaries regardless of the object's exact position within the proposal. Analysis of the Pearson Correlation Coefficient further confirmed that classification scores from fc-heads correlate much more strongly with the Intersection over Union (IoU) of a proposal than those from conv-heads.

Experimental Results

The Double-Head method was evaluated on MS COCO 2017 and Pascal VOC 2007 using Feature Pyramid Network (FPN) baselines. The results demonstrate a substantial "free" boost in accuracy:

  • MS COCO: The architecture achieved a +3.5 AP gain on ResNet-50 and +2.8 AP on ResNet-101 compared to standard FPN baselines.
  • Pascal VOC: Performance improved by 1.8 AP, with a notable 3.7 AP increase at the higher IoU threshold (AP$_{0.75}$), indicating significantly more precise localization.

Importantly, the authors showed that these gains are not merely a result of increased parameter count. When they tested a "Double-Head-Reverse" configuration (conv for classification and fc for regression), performance dropped sharply, validating that the specific mathematical properties of the layers must align with the task.

Conclusion and Future Work

The Double-Head architecture provides a simple yet effective way to improve two-stage object detectors by respecting the inherent properties of convolutional and fully connected layers. While this approach introduces some computational overhead due to the parallel branches, the accuracy trade-off is compelling. Future research may explore how these insights apply to one-stage detectors and further refine the "unfocused" supervision techniques to create even more robust detection heads.

Summary updated

BibTeX
@inproceedings{wu2020rethinking,
  author = {Yue Wu and Yinpeng Chen and Lu Yuan and Zicheng Liu and Lijuan Wang and Hongzhi Li and Yun Fu},
  title = {{Rethinking Classification and Localization for Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01020},
}
Figure