A convolutional neural network cascade for face detection

Haoxiang Li, Zhe Lin, Xiaohui Shen, Jonathan Brandt, Gang Hua

Introduction

Face detection in unconstrained environments remains a challenging task due to variations in pose, lighting, and expression. While deep Convolutional Neural Networks (CNNs) offer high accuracy, their computational cost often precludes real-time application on standard hardware. This paper presents a CNN cascade framework that achieves state-of-the-art performance while maintaining high processing speeds by employing a multi-stage rejection and refinement strategy.

The CNN Cascade Architecture

The proposed system utilizes a "funnel" approach consisting of six distinct networks organized into three levels. Each level contains a detection network and a corresponding calibration network.

Detection and Early Rejection

The cascade begins with the 12-net, a shallow classifier designed for rapid scanning. It rejects over 90% of non-face regions at the earliest stage. Surviving candidates are passed to the 24-net and finally the 48-net, which are progressively deeper and more discriminative. To handle scale variance, the deeper networks utilize multi-resolution inputs, incorporating downsampled versions of the candidate windows to capture both global context and local detail.

Bounding Box Calibration

A key innovation is the treatment of bounding box refinement as a multi-class classification problem rather than continuous regression. Each calibration network (12-calib, 24-calib, 48-calib) selects from 45 discrete patterns of scale and offset adjustments.

Refined candidate windows after the 24-calibration-net stage.

This discretization simplifies the learning task for small CNNs, allowing for precise alignment without heavy computational overhead. As shown in the figure above, the calibration stage adjusts the raw detections to better encompass the facial features.

Non-Maximum Suppression (NMS)

NMS is applied after each stage to merge overlapping detections. This reduces the number of candidates passed to subsequent, more expensive layers, ensuring the system remains efficient. A final "Global NMS" is performed to produce the final output.

Final face detection results after Global Non-Maximum Suppression.

Performance and Results

The framework was evaluated on the FDDB and AFW benchmarks, achieving state-of-the-art results at the time of publication. Notably, the system maintains a speed of 14 FPS on a single CPU core and 100 FPS on a GPU (NVIDIA GTX Titan Black) for VGA-resolution images. The initial 12-net stage is particularly effective, maintaining a 94.8% recall rate while discarding 92.7% of background windows, demonstrating the power of early rejection in a cascade.

Conclusion

By combining the efficiency of traditional cascades with the representational power of CNNs, this architecture provides a robust solution for real-time face detection. The use of discrete calibration patterns and multi-resolution inputs allows the model to handle the complexities of "in-the-wild" imagery without sacrificing the speed necessary for practical applications.

Summary updated

BibTeX
@inproceedings{li2015convolutional,
  author = {Haoxiang Li and Zhe Lin and Xiaohui Shen and Jonathan Brandt and Gang Hua},
  title = {{A convolutional neural network cascade for face detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7299170},
}
Figure