Generalizable Face Landmarking Guided by Conditional Face Warping

Jiayi Liang, Haotian Liu, Hongteng Xu, Dixin Luo

Introduction

Face landmarking—the automated detection of key anatomical points such as the eyes, nose, and jawline—has reached a high level of maturity for standard photographic images. However, these models typically fail when applied to non-photorealistic domains, such as caricatures, video game avatars, or classical paintings. This paper introduces a novel framework for "generalizable" face landmarking that bridges the gap between real human faces and highly stylized artistic portraits. By embedding a face landmarker within a conditional face warper, the authors leverage a warping field to transfer knowledge from labeled real-world datasets to unlabeled stylized domains.

The Challenge of Stylized Domains

The difficulty in extending landmarking to artistic content stems from two primary factors:

  1. Geometric Diversity: Unlike standard photography, stylized faces often feature extreme proportions. Caricatures may feature elongated chins, while anime characters often possess exaggerated eye sizes. These distortions break the rigid geometric assumptions inherent in models trained exclusively on human faces.
  2. Data Scarcity: While millions of labeled real-face images exist, manually annotating landmarks for the infinite variety of artistic styles is economically and logistically unfeasible.

Traditional Domain Adaptation (DA) techniques often prioritize style transfer—making one image look like another—but frequently fail to maintain the geometric consistency required for accurate landmarking.

Methodology: Conditional Face Warping

The core of the proposed method is a Conditional Face Warper. Rather than treating the landmarker as a standalone predictor, the authors integrate it into a system that learns to deform a labeled source image (real face) to match the geometry of an unlabeled target image (stylized face).

The Warping Mechanism

Given a pair of images—one real and one stylized—the model predicts a warping field. This field is parameterized by a polyharmonic interpolation model, specifically Thin-Plate Splines (TPS). By deforming the real face to align with the stylized target, the model can "carry over" the ground-truth landmarks from the real face to the stylized one, effectively generating high-quality pseudo-landmarks.

Optimization Strategy

To avoid the common pitfall of joint optimization—where a model might overfit to the easier source domain—the authors employ an alternating optimization strategy:

  1. Face Warper Optimization: The warping parameters are updated to minimize the visual discrepancy between the warped source and the target stylized face. Crucially, this optimization is performed using gradient fields (via the Sobel operator) rather than raw pixels. Gradients emphasize structural contours and edges while ignoring distracting textures and colors.
  2. Proximal Landmarker Optimization: The landmarker is then updated using a combination of the original ground-truth labels from the real faces and the newly generated pseudo-labels for the stylized faces.

Key Insights

  • Gradients Over Pixels: The use of gradient fields proved essential. By filtering out style-specific information like brushstrokes or color palettes, the model focuses on the underlying geometry necessary for landmarking.
  • The Value of Mathematical Constraints: Interestingly, the simple polyharmonic warping outperformed more complex neural-based warpers. The mathematical constraints of TPS provide a smooth deformation that is better suited for landmark consistency than high-frequency neural transformations.
  • Overcoming the "Lazy" Model: The alternating training strategy prevents the model from ignoring the difficult stylized task, forcing it to learn the transformation required for cross-domain generalization.

Experimental Results

The framework was evaluated using the Normalized Mean Error (NME) metric across several diverse datasets, including 300W (real faces), CariFace (caricatures), and ArtiFace (artistic portraits).

  • Superior Generalization: On the CariFace dataset, the proposed method achieved an NME of 7.70, significantly outperforming established Domain Adaptation baselines like CycleGAN (12.11) and BDL (13.63).
  • Zero-Shot Performance: The model demonstrated strong performance in Generalized Zero-Shot Learning (GZSL) settings, indicating that it learns a fundamental understanding of facial structure that generalizes to unseen artistic styles.
  • Architecture Agnostic: The method proved effective across various backbones, including SLPT, HRNet, and STAR, suggesting broad applicability to existing landmarking architectures.

Limitations and Future Work

While the method represents a significant step forward, certain challenges remain. The model still struggles with extreme stylization, such as anime styles where the topology differs radically from human anatomy (e.g., missing nose structures or oversized eyes). Additionally, boundary uncertainty in sketchy or painterly styles can lead to inaccuracies in contour landmarks. Future research will likely explore more robust constraints to handle these extreme outliers in artistic expression.

Conclusion

By reframing face landmarking as a guided warping problem, this research provides a powerful tool for cross-domain generalization. The combination of gradient-based optimization and conditional warping allows models to master the geometric complexities of artistic portraits without the need for exhaustive manual labeling.

Summary updated

BibTeX
@inproceedings{liang2024generalizable,
  author = {Jiayi Liang and Haotian Liu and Hongteng Xu and Dixin Luo},
  title = {{Generalizable Face Landmarking Guided by Conditional Face Warping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure