NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Scale-Aware Face Detection

Zekun Hao, Yu Liu, Hongwei Qin, Junjie Yan, Xiu Li, Xiaolin Hu

TL;DR

Scale-Aware Face Detection (SAFD) introduces a clever two-stage pipeline that handles the "scale problem" in face detection without the heavy computational tax of traditional image pyramids. By using a lightweight Scale Proposal Network (SPN) to predict a histogram of face sizes first, the system only performs detection at the necessary resolutions, achieving state-of-the-art accuracy with significantly fewer floating-point operations (FLOPs).

What Problem Does This Paper Address?

Convolutional Neural Networks (CNNs) are famously good at translation invariance, but they struggle with scale invariance. A face can vary significantly in size, and a standard CNN filter usually only "looks" for one specific size range.

To solve this, researchers typically use "multi-scale testing," where they resize the input image into a dozen different versions (an image pyramid) and run the detector on every single one. This is a brute-force approach: in most images, faces only exist at one or two scales. Running a detector on the other ten layers is a massive waste of computation.

Figure 1: Comparison between a traditional image pyramid (left) and the proposed scale-aware approach. The traditional method processes every scale, leading to high FLOPs, while SAFD targets specific scales.

Methods

The authors propose a two-stage "Scale-Aware" pipeline:

  1. Scale Proposal Network (SPN): This is a lightweight, fully convolutional network. Instead of outputting bounding boxes, it outputs a global face scale histogram. It uses a global max-pooling layer at the end, allowing the network to be location-agnostic.
  2. Scaling Strategy: The raw histogram from the SPN is smoothed, and a 1D Non-Maximum Suppression (NMS) is applied to find the "peaks"—the most likely scales. The original image is then resized based on these peaks.
  3. Single-Scale Detector: Once the image is resized so that all faces are roughly a "standard" size, a simple, narrow-range Region Proposal Network (RPN) performs the final detection.
Figure 2: The SAFD pipeline. A down-sampled image is passed through the Scale Proposal Network to generate a histogram. The original image is then resampled at specific scales for the final detector.

Datasets and Training

The authors evaluated SAFD on three major benchmarks: FDDB, AFW, and MALF. Training utilized a massive collection of 700,000 images, supplemented by the AFLW dataset for landmarks and COCO (excluding people) for "hard negative" samples.

Key Insights

  • Receptive Field Flexibility: The SPN can accurately predict the scale of huge faces by looking at "feature-rich" parts (like an eye or nose) and inferring the total size, even if the face exceeds the network's receptive field.
  • Efficiency through Sparsity: In the AFW dataset, over 99% of images required fewer than two "zooms" to cover all faces. Traditional methods might use 10+ zooms by default.
  • Global Supervision: Because the SPN uses global max-pooling, backpropagation naturally focuses on the "highest response" areas, acting as an inherent hard-negative mining tool.

Key Results

  • Speed vs. Accuracy: On the FDDB benchmark, SAFD achieved a recall rate of 0.938, outperforming traditional multi-scale RPN baselines.
  • Computational Savings: The SAFD approach required roughly 441 + 2704 MFLOPs for FDDB images, whereas a standard multi-scale testing approach (MST-RPN) required 50,240 MFLOPs—an order of magnitude improvement.
  • Performance on MALF: The system showed particular strength in high-confidence regions, proving that "smart zooming" reduces false positives by ignoring irrelevant scales.

Limitations and Future Work

The SPN still struggles with very small faces (under 20-30 pixels) where the signal is weak. Additionally, while the current strategy is much faster, it doesn't yet guarantee the absolute minimum number of scales. Future work may apply this "scale-first" philosophy to general object detection for cars or pedestrians.

Summary updated

BibTeX
@inproceedings{hao2017scale,
  author = {Zekun Hao and Yu Liu and Hongwei Qin and Junjie Yan and Xiu Li and Xiaolin Hu},
  title = {{Scale-Aware Face Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.207},
}
Figure