SFace: An Efficient Network for Face Detection in Large Scale Variations

Jianfeng Wang, Ye Yuan, Boxun Li, Gang Yu, Jian SunarXiv 2018

Introduction

The proliferation of 4K ultra-high-definition (UHD) cameras has introduced a significant challenge for face detection: extreme scale variation. In a single high-resolution frame, faces can range from a mere 10×10 pixels to over 2000×2000 pixels. Traditional detection methods often struggle with this "scale explosion." Anchor-based methods, while precise in localization, are limited by fixed anchor configurations. Conversely, anchor-free methods offer flexibility for extreme scales but often lack the localization accuracy of their counterparts. SFace addresses these issues by proposing a hybrid architecture that balances speed and scale robustness.

Methodology

SFace utilizes a multi-pronged approach to achieve efficient, high-accuracy detection across scales.

Efficient Backbone and FPN

To maintain real-time performance, SFace employs Xception-39 as its backbone. This lightweight architecture significantly reduces FLOPs compared to traditional backbones like VGG16 or ResNet-101. The network incorporates a Feature Pyramid Network (FPN) with optimized lateral connections (1×1 convolutions with 32-dimension outputs) to minimize computational overhead while extracting multi-scale features.

Hybrid Detection Branches

The core of SFace is its hybrid branch strategy. Anchor-based branches are attached to levels P3, P4, and P5 of the FPN to handle standard face sizes (approximately 16² to 101² pixels). To capture faces at extreme or arbitrary scales that might fall between anchor settings, an anchor-free branch is integrated at level P3. This combination ensures that the model is robust to both common and outlier face sizes.

SFace demonstrates robust detection across extreme scale variations, from large billboard faces to small pedestrians.

IOU-Based Re-scoring

A primary challenge in hybrid architectures is the inconsistency of confidence scores between different branch types. SFace introduces an IOU re-scoring mechanism, where classification subnets are trained to predict the Intersection-Over-Union (IOU) between the predicted bounding box and the ground truth. This unifies the scoring metric across all branches, facilitating more effective merging during Non-Maximum Suppression (NMS) and prioritizing physically accurate detections.

Datasets and Benchmarking

The model was evaluated on two primary datasets:

  1. WIDER FACE: The standard benchmark for face detection, focusing on challenging conditions like occlusion and tiny faces.
  2. 4K-Face: A new benchmark introduced by the authors to specifically test performance on ultra-high-resolution images. It contains 5,102 images with a balanced distribution of face sizes, providing a more realistic assessment for UHD applications.

Results and Performance

SFace demonstrates a superior trade-off between speed and accuracy. On an NVIDIA Titan Xp, it achieves approximately 80 fps for 1080p video and 24 fps for 4K video.

The model maintains high recall in densely populated environments with significant scale differences.

On the WIDER FACE "Hard" subset, SFace reached 80.4% AP, outperforming several state-of-the-art detectors while maintaining significantly higher inference speeds. On the 4K-Face dataset, it achieved 65.39% AP, notably surpassing RetinaNet and UnitBox. Ablation studies confirmed that the IOU re-scoring method is a vital component, contributing a nearly 7% boost in AP on WIDER FACE by improving the quality of the merged detections.

Conclusion

SFace effectively bridges the gap between anchor-based and anchor-free detection methods. By integrating a lightweight backbone with a hybrid branch structure and a novel IOU re-scoring mechanism, it provides a robust solution for real-time face detection in high-resolution environments characterized by extreme scale variations. Future work may explore extending anchor-free branches to more pyramid levels and developing end-to-end merging strategies to further optimize performance.

Summary updated

BibTeX
@misc{wang2018sface,
  author = {Jianfeng Wang and Ye Yuan and Boxun Li and Gang Yu and Jian Sun},
  title = {{SFace: An Efficient Network for Face Detection in Large Scale Variations}},
  year = {2018},
  eprint = {1804.06559},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.06559},
}
Figure