A High-Efficiency Framework for Constructing Large-Scale Face Parsing Benchmark

Yinglu Liu, Hailin Shi, Yue Si, Hao Shen, Xiaobo Wang, Tao MeiarXiv 2019

Introduction

Face parsing is a fundamental task in computer vision that involves assigning semantic labels (e.g., nose, eyes, hair) to every pixel in a facial image. While related fields like face detection and alignment have seen significant progress, face parsing has been hindered by a lack of large-scale, high-quality datasets. Traditional pixel-level annotation is labor-intensive and expensive, leading to a reliance on small datasets like Helen, which contains only 2,330 images.

To address this bottleneck, this paper introduces LaPa, a new large-scale face parsing dataset, and a semi-automatic annotation framework that leverages dense landmarks to streamline the labeling process. Additionally, the authors propose the Boundary-Sensitive Parsing Network (BSPNet) to improve accuracy at the challenging transitions between facial features.

The LaPa Dataset

The LaPa dataset represents a significant leap in scale and diversity, featuring 22,000 images with 11-category pixel-level labels and 106-point landmarks. Unlike previous benchmarks, LaPa includes a wide variety of expressions, poses, and occlusions, providing a more robust training ground for modern deep learning models.

Semi-Automatic Annotation Framework

The core innovation for dataset construction is a two-stage "Dense Landmark Guided" approach. This framework significantly reduces manual labor while maintaining high annotation quality:

  1. Dense Landmark Annotation (DLA): An auxiliary model predicts 106 facial landmarks. Human annotators then refine these points in complex cases, a process far more efficient than manual mask drawing.
  2. Pixel-Level Parsing Annotation (PPA): The refined landmarks serve as geometric constraints to automatically generate pixel masks. Category-wise fitting (e.g., using parabolas for eyes) ensures smooth contours, while a coarse-to-fine strategy handles hair and skin segmentation.
The semi-automatic annotation pipeline: DLA module generates landmarks, which are then processed by the PPA module to create final masks.

Boundary-Sensitive Parsing Network (BSPNet)

Standard segmentation models often struggle with "hard pixels" at the boundaries of facial parts. BSPNet is designed to explicitly address this by incorporating three distinct branches:

  • Semantic-aware branch: A ResNet-101 based path for general feature extraction.
  • Boundary-aware branch: A dedicated path focused on predicting the edges of facial components.
  • Fusion branch: Integrates features from both the semantic and boundary branches.

A key component of BSPNet is the boundary-weighted loss function, which penalizes errors at the edges more heavily, forcing the model to learn more precise transitions between categories.

Key Results and Insights

BSPNet achieved state-of-the-art (SOTA) performance, reaching an overall F1-score of 91.0% on the Helen dataset. When pre-trained on the larger LaPa dataset, performance further improved to 91.4%. Ablation studies confirmed that the boundary-aware features and weighted loss were critical, particularly for small features like eyebrows and eyes, where accuracy improved by 2-3%.

The research highlights three major takeaways:

  • Landmarks as Geometric Priors: Using dense landmarks as a bridge makes large-scale pixel-level annotation feasible.
  • Edge Importance: Explicitly modeling boundaries significantly reduces misclassification in transition areas.
  • Data Scale: Increasing the dataset size by an order of magnitude allows models to generalize much better to extreme real-world conditions.

Conclusion and Future Work

The LaPa dataset and the BSPNet framework provide a new benchmark for the face parsing community. While the current approach excels at single-face parsing, future work will focus on multi-face scenarios in crowded scenes and developing lighter-weight architectures suitable for real-time mobile applications.

Summary updated

BibTeX
@misc{liu2019high,
  author = {Yinglu Liu and Hailin Shi and Yue Si and Hao Shen and Xiaobo Wang and Tao Mei},
  title = {{A High-Efficiency Framework for Constructing Large-Scale Face Parsing Benchmark}},
  year = {2019},
  eprint = {1905.04830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.04830},
}
Figure