Multi-Task FaceBoxes: A Lightweight Face Detector Based on Channel Attention and Context Information

Shuaihui Qi, Jungang Yang, Xiaofeng Song, Chen JiangKSII 2020

Abstract

In recent years, convolutional neural networks (CNNs) have become the primary method for face detection. However, their high computational cost and large model sizes make them difficult to deploy on mobile devices with limited resources. Building upon the CPU real-time face detector FaceBoxes, we propose MT-FaceBoxes, a multi-task lightweight face detector. Our approach integrates squeeze-and-excitation (SE) modules for channel attention, context feature fusion to preserve spatial information, and a landmark detection module to improve performance on small faces. Experiments on standard datasets show significant improvements; notably, MT-FaceBoxes outperforms FaceBoxes by 7.2% mAP on the WIDER FACE hard validation set while maintaining 23 FPS on a standard CPU.

Introduction

Face detection is a fundamental task in computer vision, but the shift toward deep learning has often prioritized accuracy over efficiency. While state-of-the-art models achieve impressive results, they are frequently too "heavy" for real-time use on mobile hardware. Lightweight models like the original FaceBoxes address this using a "Rapid Digestion" strategy, which quickly reduces image resolution to save computation. However, this aggressive downsampling often discards the fine-grained details necessary to detect small or obscured faces. MT-FaceBoxes aims to bridge this gap by enhancing the lightweight architecture with attention mechanisms and multi-task learning.

Proposed Architecture

The MT-FaceBoxes architecture introduces three key structural enhancements to the baseline FaceBoxes model to recover lost information and improve feature discriminability.

1. Channel Attention (SE Modules)

To help the network focus on the most informative features, we integrated Squeeze-and-Excitation (SE) modules. These modules perform feature recalibration by learning to weight channels based on their importance to the task, effectively ignoring noise and emphasizing facial features.

2. Context Feature Fusion

To mitigate the information loss caused by rapid downsampling, we implemented a context fusion branch. This module fuses "texture" information from shallow layers with high-level "semantic" information from deeper layers via upsampling. This ensures the detector has access to both fine details and global context.

3. Multi-Task Learning

Beyond bounding box regression and classification, MT-FaceBoxes includes a landmark detection branch. This additional task acts as a regularizer during training, forcing the network to learn more robust features that are particularly beneficial for identifying small faces.

The proposed MT-FaceBoxes architecture, highlighting the integration of SE modules, context fusion (UpSample), and multi-task landmark detection branches.

Anchor Optimization

A critical component of any detector is the design of "anchors"—the initial reference boxes. By performing a statistical analysis of the WIDER FACE and FDDB datasets, we observed that the majority of faces do not follow a standard 1:1 square aspect ratio. Instead, the distribution peaks at a width-to-height ratio of approximately 0.8. By tuning our anchors to this specific ratio, we improved training stability and detection accuracy.

Statistical analysis of bounding box dimensions and aspect ratios across the WIDER FACE and FDDB datasets.

Experimental Results

The model was evaluated on several benchmarks, including WIDER FACE, AFW, FDDB, and PASCAL face.

  • Accuracy: On the WIDER FACE "Hard" set, MT-FaceBoxes achieved a 7.2% improvement in mean Average Precision (mAP) over the original FaceBoxes.
  • Efficiency: The final model size is a compact 5.7MB, a modest increase from the 4.1MB baseline that yields significant performance gains.
  • Speed: On an Intel i7-8750H CPU, the model processes VGA-resolution images at 23 FPS, meeting the requirements for real-time application.

Conclusion

MT-FaceBoxes demonstrates that lightweight face detection can be significantly improved without sacrificing real-time performance. By combining channel attention, context fusion, and multi-task learning, we addressed the inherent weaknesses of the "Rapid Digestion" strategy. While the model shows some sensitivity to input dimensions due to the fusion layers, it remains a highly effective solution for mobile and CPU-based face detection tasks.

Summary updated

BibTeX
@inproceedings{qi2020multi,
  author = {Shuaihui Qi and Jungang Yang and Xiaofeng Song and Chen Jiang},
  title = {{Multi-Task FaceBoxes: A Lightweight Face Detector Based on Channel Attention and Context Information}},
  booktitle = {KSII},
  year = {2020},
  doi = {10.3837/tiis.2020.10.009},
}
Figure