Edge-Aware Graph Representation Learning and Reasoning for Face Parsing

Gusi Te, Yinglu Liu, Wei Hu, Hailin Shi, Tao Mei

Introduction

Face parsing—the task of assigning semantic labels (e.g., "nose," "eye," "hair") to every pixel in a facial image—is a foundational challenge in computer vision. While standard deep learning models have become proficient at identifying these components, they often struggle with two critical aspects: modeling long-range dependencies between distant facial parts and maintaining sharp, accurate boundaries.

The paper "Edge-aware Graph Representation Learning and Reasoning for Face Parsing" introduces the Edge-Aware Graph Reasoning (EAGR) module. This approach treats the face not merely as a grid of pixels but as a dynamic graph of interconnected regions, effectively bridging the gap between local feature extraction and global structural reasoning.

Problem Statement

Most current face parsing methods rely on Convolutional Neural Networks (CNNs). While powerful, CNNs are inherently local, processing small pixel neighborhoods. This limitation makes it difficult to capture global correlations, such as the relationship between the mouth's shape and the eyes' expression. Furthermore, boundaries between facial components are often blurred in standard segmentation outputs because traditional models do not explicitly prioritize edge features.

Methodology

The proposed EAGRNet architecture integrates edge information into a graph-based reasoning framework to address these limitations.

Overview of the EAGRNet architecture, showcasing the integration of edge perceiving and graph reasoning modules.

The EAGR Module

The core innovation is the EAGR module, which operates in three distinct stages:

  1. Edge-Aware Projection: To avoid the computational cost of reasoning over every pixel, the model groups pixels into "regions" that serve as graph vertices. By using an edge map as a prior, pixels near boundaries are weighted more heavily, ensuring the graph captures critical structural transitions.
  2. Graph Reasoning: A Graph Convolutional Network (GCN) processes these vertices. Unlike CNNs, the GCN allows information to flow between any two vertices regardless of spatial distance, enabling the model to reason about global facial geometry.
  3. Reprojection: The refined graph features are mapped back onto the original pixel grid to generate the final high-resolution segmentation map.
Detailed internal structure of the Edge-Aware Graph Reasoning (EAGR) module, including projection, reasoning, and reprojection steps.

To further enhance boundary precision, the authors introduce a Boundary-Attention Loss (BA-Loss), which specifically penalizes errors at component edges.

Datasets and Evaluation

The model was evaluated on three major benchmarks:

  • Helen Dataset: 2,330 images with 11 categories.
  • CelebAMask-HQ: 30,000 high-resolution images with 19 categories, including accessories.
  • LaPa Dataset: 22,000 images featuring significant variations in expression, pose, and occlusion.

Key Results

EAGRNet established new state-of-the-art performance across all tested datasets:

  • Accuracy: Achieved an F1-score of 93.2% on the Helen dataset.
  • Robustness: Demonstrated superior performance on challenging datasets like LaPa (91.1% mean F1) and CelebAMask-HQ (85.1% mean F1).
  • Efficiency: By projecting pixels into a smaller set of graph vertices, the model reduces computational complexity by over 4x compared to standard non-local attention modules, maintaining an inference time of ~89ms on an Nvidia P40 GPU.

Conclusion

EAGRNet demonstrates that treating facial structures as a graph guided by edge information significantly improves parsing accuracy and boundary definition. While the model's performance relies on the quality of the initial edge detection, its efficiency and robustness make it a compelling framework for face parsing and potentially broader scene parsing tasks where structural relationships are paramount.

Summary updated

BibTeX
@inproceedings{te2020edge,
  author = {Gusi Te and Yinglu Liu and Wei Hu and Hailin Shi and Tao Mei},
  title = {{Edge-Aware Graph Representation Learning and Reasoning for Face Parsing}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58610-2\_16},
}
Figure