DSFD: Dual Shot Face Detector.

Jian Li, Yabiao Wang, Changan Wang, Ying Tai, Jianjun Qian, Jian Yang, Chengjie Wang, Jilin Li, Feiyue Huang · DOI

Introduction

While deep learning has significantly advanced the field of face detection, real-world applications still face substantial hurdles. Standard one-stage detectors, such as SSD, often struggle with extreme variations in scale, lighting, and occlusion. The Dual Shot Face Detector (DSFD) framework addresses these limitations by introducing a novel architecture designed for robustness and high performance across diverse scenarios.

What Problem Does This Paper Address?

DSFD targets three primary weaknesses in existing deep learning-based detectors:

  1. Feature Limitations: Standard feature pyramids aggregate information but often fail to capture the local context necessary for different anchor scales.
  2. Suboptimal Loss Functions: Traditional loss functions do not account for the "progressive" nature of feature learning, where representations should evolve to handle varying face sizes across different network layers.
  3. Anchor Mismatch: A disconnect often exists between discrete anchor boxes and continuous face scales, leading to poor initialization for bounding box regression during training.
The DSFD framework is specifically designed to handle extreme scale variations, such as those found in large group photos.

Methodology

The DSFD architecture integrates three main technical contributions into a VGG16-based backbone:

  • Feature Enhance Module (FEM): Instead of relying on raw feature maps, DSFD utilizes the FEM to expand the receptive field. By employing dilated convolutions and multi-level information fusion, the module makes features more discriminative and context-aware.
  • Progressive Anchor Loss (PAL): The "Dual Shot" design employs two supervision stages. The first shot uses smaller anchors on original features as an auxiliary task, while the second shot uses larger anchors on enhanced features. This curriculum-like approach helps the network learn better representations for small faces early in the training process.
  • Improved Anchor Matching (IAM): To resolve anchor-to-face mismatches, IAM integrates a new anchor partition strategy and anchor-based data augmentation. This ensures ground-truth faces are matched to the most appropriate anchors, providing a superior starting point for the regression head.

Experimental Results

The model was evaluated on two rigorous industry-standard benchmarks: WIDER FACE and FDDB (Face Detection Data Set and Benchmark).

Key Performance Metrics

At the time of its publication (CVPR 2019), DSFD set a new state-of-the-art on the WIDER FACE dataset:

  • Validation Set: Achieved 96.6% (Easy), 95.7% (Medium), and 90.4% (Hard).
  • Test Set: Achieved 96.0% (Easy), 95.3% (Medium), and 90.0% (Hard), outperforming previous leaders like PyramidBox and SRN.

Efficiency and Robustness

Despite the added complexity of the FEM and dual-shot design, the Res50-based version of DSFD maintains a competitive inference speed of 22 FPS on an NVIDIA GPU P40 for VGA resolution images. Qualitatively, the model demonstrates exceptional robustness against heavy makeup, extreme blur, intense reflections, and difficult poses.

Qualitative results demonstrate DSFD's robustness across various challenging conditions including blur, illumination, reflection, and makeup.

Conclusion

DSFD represents a significant step forward in robust face detection. By combining enhanced feature extraction with a progressive training strategy and improved anchor matching, it achieves high accuracy without sacrificing the efficiency required for near-real-time applications. Future work may explore even more efficient feature enhancement modules or automated anchor search strategies to further optimize the speed-accuracy trade-off.

Summary updated

BibTeX
@inproceedings{li2019dsfd,
  author = {Jian Li and Yabiao Wang and Changan Wang and Ying Tai and Jianjun Qian and Jian Yang and Chengjie Wang and Jilin Li and Feiyue Huang},
  title = {{DSFD: Dual Shot Face Detector.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.00520},
}
Figure