Recurrent Scale Approximation for Object Detection in CNN

Yu Liu, Hongyang Li, Junjie Yan, Fangyin Wei, Xiaogang Wang, Xiaoou Tang

Abstract

Since convolutional neural network (CNN) lacks an inherent mechanism to handle large scale variations, we always need to compute feature maps multiple times for multiscale object detection, which has the bottleneck of computational cost in practice. To address this, we devise a recurrent scale approximation (RSA) to compute feature map once only, and only through this map can we approximate the rest maps on other levels. At the core of RSA is the recursive rolling out mechanism: given an initial map on a particular scale, it generates the prediction on a smaller scale that is half the size of input. To further increase efficiency and accuracy, we (a): design a scale-forecast network to globally predict potential scales in the image since there is no need to compute maps on all levels of the pyramid. (b): propose a landmark retracing network (LRN) to retrace back locations of the regressed landmarks and generate a confidence score for each landmark; LRN can effectively alleviate false positives due to the accumulated error in RSA. The whole system could be trained end-to-end in a unified CNN framework. Experiments demonstrate that our proposed algorithm is superior against state-of-the-arts on face detection benchmarks and achieves comparable results for generic proposal generation.

Introduction: The Scale Variation Challenge

Convolutional Neural Networks (CNNs) have revolutionized object detection, yet they struggle with significant scale variations. Detecting objects ranging from a few pixels to nearly the full image size typically requires computationally expensive strategies. Traditional approaches often rely on Multi-shot methods (image pyramids), which resize the input multiple times, or Single-shot methods (multi-scale detectors), which use different layers to detect objects of various sizes. While multi-shot methods are accurate, they are slow; single-shot methods are fast but often fail to capture fine details across extreme scale ranges.

Comparison of detection strategies: (a) Multi-shot by single-scale detector, (b) Single-shot by multi-scale detector, and (c) the proposed RSA approach.

Methodology: Recurrent Scale Approximation

To bridge the gap between efficiency and accuracy, this paper introduces the Recurrent Scale Approximation (RSA) framework. The core idea is that deep CNN features at different scales are highly correlated. Instead of re-computing features from scratch for every scale, the RSA unit approximates smaller-scale feature maps from a single high-resolution pass.

The RSA System Components

The system integrates three novel components into a unified end-to-end trainable framework:

  1. RSA Unit: A lightweight recurrent unit that takes a feature map at scale $S$ and predicts the map at scale $S/2$. By recursively applying this unit, the model generates a feature pyramid from a single input.
  2. Scale-forecast Network: Recognizing that most images only contain objects at a few specific scales, a small ResNet-18 variant predicts potential scales globally. This allows the system to skip unnecessary pyramid levels, significantly boosting inference speed.
  3. Landmark Retracing Network (LRN): To mitigate errors accumulated during recursive approximation, the LRN verifies detections by retracing regressed landmarks (e.g., facial features) back to previous feature maps to generate a final confidence score.
The complete RSA system architecture, illustrating the Scale-forecast Network, the RSA Unit, and the Landmark Retracing Network.

Key Insights

  • Feature Correlation Across Scales: The fundamental premise is that feature maps across scales can be mathematically approximated, reducing the need for redundant backbone computations.
  • Efficiency through Sparsity: Scale-forecasting exploits the fact that objects are not uniformly distributed across all possible scales in a single image. Predicting these scales upfront is a massive efficiency win.
  • Geometric Verification: Using landmarks for re-verification (LRN) compensates for the precision loss inherent in feature approximation, effectively filtering out false positives.

Experimental Results

The RSA framework was evaluated on major face detection benchmarks (AFW, FDDB, MALF) and generic object proposal tasks (ImageNet).

  • Speed: RSA achieves an average inference time of 14.5ms per image, outperforming standard single-shot RPNs (26.5ms) and multi-shot approaches.
  • Accuracy: On the AFW benchmark, it achieved a near-perfect 99.96% AP. On FDDB, it reached 93.0% recall with minimal false positives, surpassing state-of-the-art detectors like Faster R-CNN and SSH.
  • Generalization: For generic object proposals on ImageNet, RSA reduced computational costs by approximately 61% compared to single-scale RPNs without sacrificing recall.

Conclusion and Future Work

RSA provides a powerful mechanism for efficient multi-scale object detection by approximating the feature pyramid. While the recurrent nature of the unit can lead to error accumulation in very deep roll-outs, the LRN effectively manages this for face detection. Future research may extend this concept to video object detection, utilizing temporal correlations to approximate features across frames rather than just across scales.

Summary updated

BibTeX
@inproceedings{liu2017recurrent,
  author = {Yu Liu and Hongyang Li and Junjie Yan and Fangyin Wei and Xiaogang Wang and Xiaoou Tang},
  title = {{Recurrent Scale Approximation for Object Detection in CNN}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=BJZzDbGObr},
}
Figure