TL;DR
This paper introduces RefineFace, a single-shot face detector designed to tackle the challenges of detecting small faces and improving both localization accuracy and classification recall. It achieves state-of-the-art results by introducing five novel modules that refine anchor box predictions and enhance feature learning, while maintaining competitive inference speeds.
What Problem Does This Paper Address?
Despite significant progress in face detection, accurately identifying small faces and achieving high recall with low false positives remains a challenge. Existing single-shot detectors, while efficient, often struggle with precise bounding box localization and distinguishing faces from complex backgrounds, especially for tiny objects. This leads to two main error types: Regression (LOC) errors (misaligned bounding boxes) and Classification (CLS) errors (false positives or missed detections). The paper aims to improve both aspects to push the boundaries of high-performance face detection.
Methods
RefineFace builds upon the RetinaNet architecture and introduces five key modules:
- Selective Two-step Regression (STR): To improve localization accuracy, STR applies a two-step regression process, but selectively on higher-level feature maps. This leverages coarser features for initial anchor adjustment, providing better initialization for the final regressor, and avoids negatively impacting the classification task on lower-level features.
- Selective Two-step Classification (STC): To enhance recall efficiency and reduce false positives, STC implements a two-step classification, again selectively on lower-level feature maps. This helps filter out easy negative samples early, reducing the search space for the subsequent classifier and addressing the class imbalance problem inherent in detecting small faces.
- Scale-aware Margin Loss (SML): This module introduces a novel loss function that adjusts the margin based on the scale of the face. Smaller faces, which are harder to classify due to coarser features, receive a larger margin to improve discriminative power, while larger faces require less.
- Feature Supervision Module (FSM): FSM aims to learn more discriminative features by using aligned features extracted from anchor boxes, rather than misaligned features from the backbone's receptive field. It acts as an auxiliary training module, forcing the backbone to learn better features without adding inference overhead.
- Receptive Field Enhancement (RFE): To better capture faces in extreme poses and varying aspect ratios, RFE diversifies the receptive fields of the convolutional layers within the detection heads. It uses a multi-branch structure inspired by Inception modules to create more flexible receptive fields.
Datasets
The paper evaluates RefineFace on several standard face detection benchmarks:
- WIDER FACE: A challenging dataset with a large number of annotated faces and variations in pose, scale, and occlusion. It's used for training and validation, with results reported on Easy, Medium, and Hard subsets.
- AFW (Annotated Faces in the Wild): Used for evaluation.
- PASCAL Face: Used for evaluation.
- FDDB (Face Detection Data Set and Benchmark): Used for evaluation, known for its challenging low-resolution and occluded faces.
- MAFA (Masked and Occluded Faces): A specialized dataset for detecting occluded faces, used for evaluation.
Key Insights and Ideas
- Selective application of multi-step processes is crucial: The paper strongly advocates for selectively applying two-step regression (STR) to higher-level features and two-step classification (STC) to lower-level features. This avoids the performance degradation that can occur when these techniques are applied universally.
- Scale matters for classification: The scale-aware margin loss (SML) highlights that the difficulty of classifying faces is directly related to their scale, and a scale-dependent margin is more effective than a uniform one.
- Feature alignment is key for discriminative learning: FSM demonstrates that using aligned features for classification during training can significantly improve the backbone's ability to learn robust and discriminative representations.
- Receptive field diversity aids pose invariance: RFE shows that diversifying receptive fields can help detectors handle faces in extreme poses and varying aspect ratios more effectively.
Key Results
RefineFace achieves state-of-the-art performance across multiple challenging datasets:
- On WIDER FACE, it achieves AP scores of 96.9% (Easy), 95.9% (Medium), and 91.1% (Hard) using a ResNet-18 backbone. With a ResNet-152 backbone, it reaches 97.2% (Easy), 96.2% (Medium), and 92.0% (Hard) on the validation set.
- It achieves top results on AFW (1.55% improvement over the second best), PASCAL Face (99.45% AP), and FDDB (99.11% true positive rate at 1000 false positives).
- On the MAFA dataset, it sets new state-of-the-art results with 83.9% AP on the whole set, 96.2% on the masked set, and 95.7% on the unignored set.
- The method is also efficient, running at 37.3 FPS with a ResNet-18 backbone for VGA-resolution images.
Limitations and Future Work
- Computational Overhead: While the paper emphasizes that FSM and SML do not add inference overhead, STR and RFE do introduce a small amount. The authors acknowledge that achieving real-time performance on CPU devices is a future goal.
- Lightweight Architecture: The authors plan to explore designing a lightweight architecture for RefineFace, potentially using AutoML techniques, to enable real-time performance on less powerful hardware.
- Further Refinement: The paper suggests that further improvements could be made by exploring more advanced techniques for feature learning and refinement.
Summary updated