Condensing Two-stage Detection with Automatic Object Key Part Discovery

Zhe Chen, Jing Zhang, Dacheng TaoarXiv 2020

Introduction

Two-stage object detectors, such as Faster R-CNN and its derivatives, represent the state-of-the-art in computer vision accuracy. These models operate by first generating region proposals and then employing a "detection head" to perform final classification and bounding box refinement. However, these detection heads are computationally expensive and parameter-heavy, often containing millions of parameters to capture the intricate details of diverse object classes. This substantial footprint poses a significant barrier to deploying high-performance detectors on resource-constrained platforms like mobile devices and edge hardware.

While compression techniques like network pruning and knowledge distillation are available, they frequently lead to non-trivial performance degradation or are primarily tailored for simpler, single-stage architectures. The core challenge addressed in this research is: how can we significantly reduce the parameter count of a two-stage detector's head while preserving its high-fidelity detection capabilities?

Proposed Method: Condensing the Detection Head

The authors introduce a novel approach to "condensing" two-stage detection heads, drawing inspiration from the human visual system's ability to recognize objects by focusing on salient features rather than processing every pixel with equal intensity. The proposed architecture replaces the standard, dense detection head with a streamlined dual-path system guided by automatic part discovery.

Object Key Part Discovery Network (OKPD-Net)

At the heart of the system is OKPD-Net, a lightweight sub-network designed to autonomously identify the most representative "key parts" of an object. Unlike traditional part-based models, OKPD-Net does not require manual annotations for specific parts (e.g., "beak" or "wheel"). Instead, it learns to localize informative regions through a combination of:

  • Truncated Maximum Regularization: A function that encourages the network to focus on a sparse set of high-confidence locations.
  • Discriminative and Uniqueness Losses: These loss functions ensure that the discovered parts are both useful for classification and spatially distinct from one another, preventing the model from collapsing onto a single redundant feature.
The proposed architecture utilizes OKPD-Net to identify key parts and decomposes features into specialized paths.

Feature Decomposition

Once key parts are identified, the detection head processes features through two lean, specialized paths:

  1. Key Part Modeling: This path extracts high-resolution, fine-grained features exclusively from the $K$ locations identified by OKPD-Net.
  2. Global Modeling: This path provides holistic context by performing aggressive spatial and channel-wise sub-sampling, creating a low-resolution "glimpse" of the entire object.

By fusing these two streams, the network maintains access to both critical fine details and broad global context while utilizing only a fraction of the parameters required by a standard, dense head.

Experimental Evaluation

The effectiveness of the condensing method was evaluated on the PASCAL VOC (07+12) and MS COCO datasets. These benchmarks provide a rigorous testbed ranging from classic object detection to complex, cluttered real-world scenes. The researchers utilized standard backbones, including ResNet-50 and ResNet-101, to ensure fair comparison with existing state-of-the-art models.

Results and Key Insights

The experimental results demonstrate that standard detection heads contain significant redundancy. The proposed method achieves remarkable compression ratios with minimal impact on accuracy.

  • Efficiency without Compromise: Across various architectures (FPN, Faster R-CNN, Cascade R-CNN), the method reduced detection head parameters by approximately 50% while maintaining or slightly improving mean Average Precision (mAP). For instance, an FPN-based head on PASCAL VOC was compressed from 14M to 6.8M parameters while its mAP rose from 81.3% to 81.5%.
  • Extreme Compression Limits: In its most aggressive configuration (using only one key part and minimal global context), the model achieved a 96% reduction in parameters with only a ~1.5% drop in mAP.
  • Generalizability: The "condensing" logic proved effective across a wide range of two-stage architectures, suggesting it is a fundamental improvement rather than a model-specific trick.
Performance vs. parameter ratio analysis showing that the proposed method maintains high mAP even at extreme compression levels compared to baselines.

The "Aha!" moment of this research is the realization that explicit part labels are unnecessary. By rewarding the discovery of discriminative regions, the network naturally aligns itself with the most informative parts of an object, effectively ignoring background noise and redundant foreground data.

Conclusion and Future Work

This work provides a robust framework for making two-stage detectors significantly more efficient. While the current focus is on the detection head, the authors suggest that similar "condensing" principles could be applied to the backbone network for even greater system-wide efficiency. Future research directions include automating the selection of hyperparameters like the number of key parts ($K$) and extending this part-based modeling to related tasks such as instance segmentation and video object tracking.

Summary updated

BibTeX
@misc{chen2020condensing,
  author = {Zhe Chen and Jing Zhang and Dacheng Tao},
  title = {{Condensing Two-stage Detection with Automatic Object Key Part Discovery}},
  year = {2020},
  eprint = {2006.05597},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.05597},
}
Figure