TL;DR
This paper introduces SD-HRNet, a novel approach to create lightweight yet accurate facial landmark detectors. By combining network architecture slimming with a triple knowledge distillation strategy, they achieve a significant reduction in model size and computational cost while maintaining competitive performance on challenging benchmarks.
What Problem Does This Paper Address?
Face alignment, the task of precisely locating key points on a face (like the corners of the eyes or mouth), is crucial for many computer vision applications, including facial recognition and human-computer interaction. However, state-of-the-art methods often rely on large, computationally expensive deep learning models. This makes them impractical for deployment on resource-constrained devices or in real-time applications. The challenge, therefore, is to develop facial landmark detectors that are both accurate and efficient.
Methods
The authors propose a two-stage approach:
- Network-Level Architecture Slimming: They start with a high-resolution supernetwork (HRSuperNet) based on the HRNet architecture. Within this supernetwork, they introduce a "selective feature fusion" (LSFF) block that quantifies the importance of various transformation and aggregation operations. By applying L1 regularization to the weights of these operations, they encourage sparsity, effectively identifying and pruning redundant components. This process results in a significantly smaller, lightweight network.
- Triple Knowledge Distillation: To further refine the slimmed network and bridge any performance gap with the larger supernetwork, they employ a novel triple knowledge distillation scheme. This involves:
- A teacher network (the pretrained HRNet).
- Two peer student networks (the slimmed network).
- Crucially, the student networks are trained using masked input images. This introduces diversity and encourages them to learn robust landmark distributions from each other, in addition to learning from the teacher. The distillation loss encourages the students to mimic the teacher's output and also learn from each other's predictions.
Datasets
The proposed method was trained and evaluated on the following standard facial landmark detection datasets:
- 300W: A widely used benchmark comprising images from HELEN, LFPW, AFW, XM2VTS, and IBUG, with 68 landmarks. They also used a "Masked 300W" subset for evaluating performance on occluded faces.
- COFW: Contains 1852 face images with varying degrees of occlusion, featuring 29 annotated landmarks.
- WFLW: A large dataset with 10,000 images, known for its challenging variations in pose, expression, illumination, make-up, occlusion, and blur, with 98 landmarks.
Key Insights and Ideas
- Quantifying Redundancy: The LSFF block and L1 regularization provide a principled way to identify and remove unnecessary operations within a large network, leading to a truly "slimmed" architecture rather than just using a smaller pre-defined network.
- Triple Distillation for Robustness: The combination of teacher-guided and student-guided distillation, especially with masked inputs, is a powerful technique. It not only transfers knowledge from a strong teacher but also fosters mutual learning among student networks, leading to more robust representations.
- Flexibility of Architecture Search: The supernetwork approach allows for an adaptive architecture search, meaning the resulting lightweight network can be tailored to different computational budgets and specific datasets, offering greater flexibility than fixed lightweight architectures.
Key Results
- Efficiency: SD-HRNet achieves a remarkable reduction in model size and computational cost. For example, on the 300W dataset, it reduced parameters by 89.5% and FLOPs by 86.3% compared to HRNet, resulting in a model with only 0.98M parameters and 0.59 G FLOPs.
- Performance: Despite the significant slimming, SD-HRNet maintains competitive accuracy. On 300W, it achieved an NME of 3.40% (SD-HRNet1) and 3.41% (SD-HRNet2), which is comparable to or better than many existing lightweight models and even some larger ones.
- Occlusion Handling: The use of masked inputs in the distillation stage significantly improved performance on the Masked 300W dataset, demonstrating the method's robustness to occlusions.
- Speed: The method can process over 500 frames per second on a single TITAN Xp GPU, highlighting its suitability for real-time applications.
Limitations and Future Work
- Performance Gap: The authors acknowledge that there is still a performance gap between their method and the very latest state-of-the-art large models, particularly for dense or heavily occluded landmark detection tasks.
- Future Directions: They plan to explore designing more refined architecture search spaces to push the performance ceiling further. Additionally, they aim to extend their approach to other computer vision tasks like human pose estimation and semantic segmentation.
Summary updated