Precise Box Score: Extract More Information from Datasets to Improve the Performance of Face Detection

Ce Qi, Xiaoping Chen, Pingyu Wang, Fei SuarXiv 2018

TL;DR

This paper introduces "Precise Box Score" (PBS), a novel training strategy for face detection that leverages previously unused anchor boxes with intermediate Intersection-over-Union (IoU) scores. By assigning more nuanced labels to these anchors, PBS extracts richer information from datasets, leading to improved face detection performance. The authors also propose a model compression technique (SEMCM) that further boosts performance, especially for smaller models.

What Problem Does This Paper Address?

Current face detection models, particularly those based on the R-CNN framework, employ a rather simplistic approach to labeling anchor boxes during training. Anchors are typically classified as either "positive" (IoU > 0.7 with a ground truth box) or "negative" (IoU < 0.3). This binary classification, along with the fixed thresholds, means that a significant portion of potentially useful information within the training dataset is discarded. Specifically, anchors with IoUs between 0.3 and 0.7 are ignored, leading to suboptimal utilization of the available data. This gap is particularly problematic in resource-constrained environments where maximizing performance from existing datasets is crucial.

Methods

The core contribution is the Precise Box Score (PBS) training strategy. Instead of the traditional binary labels (0 or 1), PBS assigns precise, continuous scores to anchors based on their IoU with ground truth boxes. This is achieved by:

  1. Optimizing Thresholds: The paper proposes an experimental approach to find the "best" positive and negative IoU thresholds, denoted as Boundbest_pos and Boundbest_neg.
  2. Precise Label Assignment: PBS uses designed functions to translate IoU values into continuous labels within the range [0, 1]. These functions can be simple linear shifts (Eq. 3), piecewise functions with intermediate scores (Eq. 4), or more complex multi-stage functions (Eq. 5). This allows for a more granular representation of an anchor's "positiveness."

To accommodate these precise float-point labels, a new architecture is introduced, featuring a Precise Sigmoid activation function and Euclidean loss instead of the standard softmax and cross-entropy loss. This new architecture is designed to output scores in the [0, 1] range, directly usable as confidence scores for face detection.

Additionally, the paper presents SEMCM (Simple but Effective Model Compression Method). This technique trains a smaller "student" model by using the output feature maps of a larger, pre-trained "teacher" model (trained with PBS) as supervision. This allows for efficient model compression without significant performance degradation.

Datasets

  • FDDB (Face Detection Data Set and Benchmark): Used for testing and evaluation.
  • WIDER FACE: Used for both training and evaluation. This dataset is noted for its challenging nature, featuring a wide variety of face scales and occlusions.

No new benchmarks were introduced.

Key Insights and Ideas

  • The "Middle Ground" Matters: The most significant insight is that anchors with intermediate IoU scores (0.3-0.7) contain valuable information that is currently being ignored by standard training procedures.
  • Continuous Labels for Better Learning: Moving from binary (0/1) to continuous labels for anchors allows the model to learn more nuanced relationships between anchor boxes and ground truth, leading to improved accuracy.
  • Precise Scores for Better Post-processing: The continuous scores generated by PBS can lead to more accurate bounding box scores, which in turn can improve the performance of post-processing steps like Non-Maximum Suppression (NMS).
  • Model Compression Synergy: The SEMCM method demonstrates that a smaller model, when trained using the knowledge from a larger PBS-trained model, can achieve performance comparable to or even exceeding larger models trained with standard methods.

Key Results

  • Performance Improvement with PBS: The proposed Precise Box Score (PBS) strategy consistently improved face detection performance across various backbone networks (ZF-net, VGG_CNN_M_1024, VGG16, ZF-24-net) on both FDDB and WIDER FACE datasets. For instance, on FDDB, PBS achieved accuracy gains of up to 1.6% (at 1000 FP) for ZF-net and 1.8% (at 100 FP) for VGG16 compared to standard softmax training.
  • SEMCM Effectiveness: The SEMCM method successfully compressed a larger model into a smaller one. A ZF-24-net model, when compressed using SEMCM, achieved an accuracy of 92.2 (at 1000 FP) on FDDB, outperforming the same small model trained with standard methods (90.6) and even the small model trained with PBS (91.7).
  • Precise Sigmoid Stability: The new Precise Sigmoid activation and Euclidean loss, when initialized with parameters from a softmax-pretrained model, effectively avoided gradient vanishing issues and demonstrated comparable or better performance than softmax.

Limitations and Future Work

  • Parameter Tuning: The paper acknowledges that the optimal thresholds and functions for PBS require experimental tuning, which can be time-consuming. The paper presents empirical findings for best parameters but suggests further exploration.
  • Gradient Vanishing Mitigation: While the authors successfully mitigated gradient vanishing for Precise Sigmoid by using pretrained models, this reliance on pretraining is a practical consideration.
  • Future Work: The authors suggest that further adjustments to PBS parameters could lead to even better results. The complementary nature of PBS and SEMCM also opens avenues for exploring more advanced compression techniques.

Summary updated

Abstract

For the training of face detection network based on R-CNN framework, anchors are assigned to be positive samples if intersection-over-unions (IoUs) with ground-truth are higher than the first threshold(such as 0.7); and to be negative samples if their IoUs are lower than the second threshold(such as 0.3). And the face detection model is trained by the above labels. However, anchors with IoU between first threshold and second threshold are not used. We propose a novel training strategy, Precise Box Score(PBS), to train object detection models. The proposed training strategy uses the anchors with IoUs between the first and second threshold, which can consistently improve the performance of face detection. Our proposed training strategy extracts more information from datasets, making better utilization of existing datasets. What's more, we also introduce a simple but effective model compression method(SEMCM), which can boost the performance of face detectors further. Experimental results show that the performance of face detection network can consistently be improved based on our proposed scheme.
BibTeX
@misc{qi2018precise,
  author = {Ce Qi and Xiaoping Chen and Pingyu Wang and Fei Su},
  title = {{Precise Box Score: Extract More Information from Datasets to Improve the Performance of Face Detection}},
  year = {2018},
  eprint = {1804.10743},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1804.10743},
}
Figure