Dynamic Proposals for Efficient Object Detection

Yiming Cui, Linjie Yang, Ding LiuarXiv 2022 · DOI

Introduction

Modern object detection frameworks, such as Sparse R-CNN and Faster R-CNN, typically employ a "one-size-fits-all" approach by utilizing a fixed number of object candidates, or proposals. While setting a high proposal count (e.g., 300 to 1000) ensures high recall in dense scenes, it leads to significant computational waste in simpler images containing only a few objects. Furthermore, these models lack the flexibility to adapt to varying hardware constraints without retraining.

This paper introduces Dynamic Proposals, a novel framework that enables a single detector to adaptively adjust its proposal count based on image complexity or available computational resources. This approach achieves substantial inference speedups—up to 85%—with minimal impact on detection accuracy.

Methodology: A Scalable Detection Framework

The core of the proposed method lies in three integrated components designed to make object detection "slimmable" and adaptive.

Architecture of Dynamic and Switchable Proposals. The top path shows adaptation to image complexity (Complicated, Medium, Simple), while the bottom path shows adaptation to hardware resources.

Switchable Proposals

To enable a single model to operate across different "widths," the authors introduce a switchable training strategy. During training, the model is exposed to various subsets of proposals (e.g., 25%, 50%, 75%, and 100% of the maximum count). This ensures the model remains robust and accurate regardless of the number of active proposals during inference.

Dynamic Proposal Module

A lightweight sub-network is integrated to analyze global image features and estimate the number of objects present. Based on this estimate, the model dynamically selects an appropriate proposal count. Simple scenes receive fewer proposals, while complex scenes trigger a higher count, optimizing the computation-accuracy trade-off on the fly.

Inplace Distillation

To prevent performance degradation when using fewer proposals, the authors employ "Inplace Distillation." The full-proposal version of the model acts as a teacher, guiding the training of the smaller proposal subsets. This allows the "slim" versions to inherit rich feature representations from the complete model, maintaining high precision even at reduced complexity.

Experimental Results

The effectiveness of Dynamic Proposals was evaluated on the MS COCO and Cityscapes benchmarks across multiple architectures, including Sparse R-CNN, QueryInst, and Cascade R-CNN.

Performance comparison (AP vs. FPS) on MS COCO. Dynamic Proposals (blue and cyan dots) significantly improve the Pareto frontier compared to fixed-proposal baselines across various architectures.

Key findings include:

  • Significant Speedups: QueryInst equipped with Dynamic Proposals achieved an 85% increase in FPS on MS COCO without sacrificing accuracy. Cascade R-CNN saw a 16.3% efficiency gain.
  • Single Model Versatility: A single "Switchable" model performs comparably to multiple individually trained models optimized for specific proposal counts, significantly reducing training overhead (by 40-60%).
  • Robustness Across Datasets: On the dense Cityscapes dataset, the model maintained accuracy within 0.2-0.8% of the baseline while substantially reducing the average number of proposals processed per image.

Conclusion and Future Work

Dynamic Proposals demonstrate that the number of object candidates is a highly effective dimension for scaling vision models. By moving away from fixed architectures, this method provides a practical path for deploying state-of-the-art detectors on diverse hardware, from high-end servers to mobile devices.

While highly effective, the authors noted a slight sensitivity to very small objects in dense scenes when proposal counts are aggressively reduced. Future research may explore extending this dynamic query-based approach to other domains, such as video object tracking and 3D object detection.

Summary updated

BibTeX
@misc{cui2022dynamic,
  author = {Yiming Cui and Linjie Yang and Ding Liu},
  title = {{Dynamic Proposals for Efficient Object Detection}},
  year = {2022},
  eprint = {2207.05252},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.05252},
}
Figure