Abstract
This paper analyzes the design choices of face detection architecture that improve efficiency of computation cost and accuracy. Specifically, we re-examine the effectiveness of the standard convolutional block as a lightweight backbone architecture for face detection. Unlike the current tendency of lightweight architecture design, which heavily utilizes depthwise separable convolution layers, we show that heavily channel-pruned standard convolution layers can achieve better accuracy and inference speed when using a similar parameter size. This observation is supported by the analyses concerning the characteristics of the target data domain, faces. Based on our observation, we propose to employ ResNet with a highly reduced channel, which surprisingly allows high efficiency compared to other mobile-friendly networks (e.g., MobileNetV1, V2, V3). From the extensive experiments, we show that the proposed backbone can replace that of the state-of-the-art face detector with a faster inference speed. Also, we further propose a new feature aggregation method to maximize the detection performance. Our proposed detector EResFD obtained 80.4% mAP on WIDER FACE Hard subset which only takes 37.7 ms for VGA image inference on CPU.
Introduction
In the pursuit of real-time face detection on mobile and edge devices, the industry has largely adopted depthwise separable convolutions (the core of MobileNet) to minimize Floating Point Operations (FLOPs). However, low FLOP counts do not always translate to low latency on real-world hardware, particularly CPUs. Memory access overhead and the lack of hardware-level optimization for depthwise operations at small channel counts often negate their theoretical advantages.
This research challenges the "depthwise-separable-first" dogma by demonstrating that heavily channel-pruned standard convolutions are more efficient for face detection. Empirical analysis reveals a "16-channel threshold": when the channel dimension is 16 or smaller, standard convolutions exhibit lower latency than depthwise separable ones on CPUs. This insight forms the basis for EResFD, a detector that prioritizes hardware-aware efficiency over raw FLOP reduction.
Methodology
The EResFD architecture introduces three primary innovations designed for high-speed CPU inference:
- EResNet Backbone: Re-evaluating ResNet18, the authors apply a channel dimension preserving strategy, maintaining a small channel count (e.g., 16) across stages. The "stem" is redesigned by replacing the heavy $7 \times 7$ convolution and max-pooling with a $5 \times 5$ convolution with a stride of 4, reducing stem latency by nearly 80%.
- SepFPN (Separated Feature Pyramid Network): Traditional FPNs merge features across all levels, which can lead to "receptive field mismatch." SepFPN aggregates high-level and low-level features into separate groups, preventing global context from obscuring the local features necessary for detecting small faces.
- CCPM (Cascade Context Prediction Module): To expand the receptive field without the high cost of modules like SSH, CCPM uses a cascaded design that reuses previously convolved features, providing a wider context at a fraction of the computational cost.
Experimental Results
The model was evaluated on the WIDER FACE dataset, the gold standard for face detection, and the AFLW dataset for facial landmark detection.
As illustrated in Figure 1, EResNet-1x achieves a 2.1x speedup over MobileNetV1-1.0x and a 1.85x speedup over MobileNetV2-1.0x while maintaining superior accuracy. On the challenging WIDER FACE Hard subset, EResFD achieved 80.4% mAP with a latency of only 37.7 ms for VGA-resolution (480x640) inference on a standard CPU. Furthermore, when integrated into the RetinaFace framework, EResFD demonstrated lower Normalized Mean Error (NME) for facial landmarks compared to MobileNet-based versions, proving its robustness for multi-task learning.
Conclusion
EResFD demonstrates that standard convolutions, when properly pruned, remain highly effective for lightweight computer vision. By addressing the disconnect between FLOPs and latency and solving receptive field mismatch through SepFPN, the proposed detector achieves state-of-the-art performance on CPUs. While this study focused on CPU-based inference, future work will investigate the applicability of these principles to specialized hardware like NPUs and other resource-constrained tasks beyond face detection.
Summary updated