HP-FLDet: A High Performance Multi-task Joint Face and Landmark Detector

Xueli Liu, Feng Wang, Yinlong Liu, Kexue Fu, Xiao Chen, Xiaobo Yang, Xinrong ChenResearch Square 2025

Abstract

Face detection and landmark localization are fundamental steps in facial analysis. Traditionally, these tasks are handled sequentially by independent detectors, leading to higher complexity and potential cascading errors. Multi-task joint detectors offer efficiency and shared features but often struggle to optimize both tasks simultaneously due to conflicting requirements: face detection needs global scale awareness, while landmark localization requires fine-grained texture details. This paper proposes HP-FLDet, a single-stage joint detector that introduces a Context Inception Block (CIB) and scale-aware multi-task strategies. HP-FLDet achieves state-of-the-art (SOTA) results on the WIDER FACE dataset, particularly on the challenging "Hard" subset, outperforming existing rivals.

Introduction

In computer vision, facial analysis typically begins with identifying a face's bounding box and then localizing key landmarks (eyes, nose, mouth). While sequential pipelines are common, they suffer from "cascading errors" — where a slight inaccuracy in the initial face detection causes the subsequent landmarking to fail.

HP-FLDet addresses this by treating face and landmark detection as a unified, single-stage task. The primary challenge in this multi-task approach is balancing the need for global context (to detect faces across massive scale variations) with the need for local, high-resolution features (to precisely locate landmarks). Furthermore, "tiny faces" (under 20 pixels) remain a significant hurdle for standard detectors.

Methodology: The HP-FLDet Architecture

The HP-FLDet framework introduces several architectural innovations designed to bridge the gap between global detection and local localization.

The HP-FLDet architecture featuring the Feature Extractor, Context Inception Block (CIB), and specialized detection heads.

Context Inception Block (CIB)

At the core of the model is the CIB, which includes a Context-aware Module (UCM). The UCM up-samples feature maps from 1/4 to 1/2 resolution, a critical step for preserving the spatial details necessary to "see" tiny faces. By integrating Spatial Pyramid Pooling (SPP) modules tailored for different tasks, the network can extract multi-scale features effectively.

Landmark Detection and MDR

HP-FLDet employs a dual-head approach for landmarks:

  1. Heatmap-based Head ($L_{Hkps}$): Captures local context and pixel-level precision.
  2. Regression-based Head ($L_{Rkps}$): Utilizes Mixture Dense Regression (MDR). Instead of predicting a single coordinate, the model predicts a probability distribution (a mixture of Gaussians). This allows the system to handle uncertainty caused by occlusions or low resolution.

Experimental Results

The model was evaluated on rigorous benchmarks, including WIDER FACE, AFLW, FDDB, AFW, and PASCAL Face.

WIDER FACE Performance

WIDER FACE is the most challenging benchmark due to extreme variations in scale and pose. HP-FLDet set new records on the test subset, achieving 97.0% mAP (Easy), 96.3% mAP (Medium), and 92.1% mAP (Hard). The high performance on the "Hard" set underscores the effectiveness of the UCM in handling tiny, blurry faces.

Precision-Recall curves for HP-FLDet on the WIDER FACE validation and test sets across Easy, Medium, and Hard categories.

Landmark Localization

On the AFLW dataset, the model achieved a competitive Normalized Mean Error (NME) of 1.33. This demonstrates that the joint framework does not sacrifice landmark precision for detection speed; rather, the shared features enhance both tasks.

Conclusion

HP-FLDet represents a significant advancement in single-stage multi-task facial analysis. By leveraging the Context Inception Block and Mixture Dense Regression, it effectively manages the trade-off between global scale variance and local texture perception. While the high-resolution up-sampling in the UCM increases computational complexity, the resulting gains in accuracy—especially for tiny faces—establish a new state-of-the-art for the field. Future work will focus on optimizing the backbone for real-time performance on mobile devices.

Summary updated

BibTeX
@inproceedings{liu2025hp,
  author = {Xueli Liu and Feng Wang and Yinlong Liu and Kexue Fu and Xiao Chen and Xiaobo Yang and Xinrong Chen},
  title = {{HP-FLDet: A High Performance Multi-task Joint Face and Landmark Detector}},
  booktitle = {Research Square},
  year = {2025},
  doi = {10.21203/rs.3.rs-3926744/v2},
}
Figure