Unsupervised Learning of Landmarks based on Inter-Intra Subject Consistencies

Weijian Li, Haofu Liao, Shun Miao, Le Lu, Jiebo LuoarXiv 2020

TL;DR

This paper introduces a novel unsupervised learning approach for facial landmark discovery that enforces consistency both within the same subject (intra-subject) and across different individuals (inter-subject). By routing image generation through an auxiliary subject's geometry and employing a cycle-consistent training path, the model learns highly stable, semantically meaningful keypoints without requiring human annotations.

What Problem Does This Paper Address?

Facial landmark detection is a foundational step for many high-level computer vision tasks, such as face recognition and emotion analysis. Traditional fully supervised models require massive amounts of human-annotated data, which is expensive, time-consuming, and prone to subjective bias.

To avoid this, recent research has turned to unsupervised learning via "equivariance constraints." Typically, these methods take an image, apply a random geometric transformation (like rotation or scaling), and force a neural network to predict landmarks that track that transformation. While this works well for learning the geometry of a single person's face (intra-subject consistency), it completely ignores inter-subject consistency. Without cross-person constraints, an unsupervised detector can easily cheat by tracking unstable features like hair strands, clothing collars, or background pixels, leading to poor generalization across different people.

Methods

The authors address this gap by introducing an intermediate cross-subject transformation bottleneck and a bidirectional cycle-consistency scheme. The architecture consists of three main components:

  1. Landmark Detector: A standard Hourglass network processes an input image to extract feature maps. A differentiable Softargmax operation converts these maps into discrete spatial coordinates, which are then rendered as Gaussian-like probabilistic heatmaps.
  2. Inter-Intra Image Generator: To inject inter-subject awareness, the model takes a source image $X$ and an auxiliary image $X^a$ belonging to a completely different person. An image encoder extracts the visual features of $X$, but the generator is forced to deform these features using the landmark heatmaps of $X^a$, creating an intermediate image $I_a$. Next, $I_a$ is transformed again using the landmarks of a geometrically deformed version of the source image ($X'$) to produce the final target image $I_{x'}$.
  3. Cycle Backward Path: To tighten supervision, the authors implement a reversed path. The model takes the deformed image $X'$ as the source and attempts to reconstruct the original image $X$ using the same dual-stage transformation process.

The entire framework is trained end-to-end using a combination of pixel-level Mean Squared Error (reconstruction loss) and high-level feature matching via a pretrained VGG-16 network (perceptual loss).

Fig. 1: Overview of the proposed method. The model takes image X as input and produce the generated image IX′ as output. The input image is first transformed by an auxiliary image Xa based on its extracted heatmap ΦH(Xa). Then another transformation is applied on the produced image Ia by the paired image X′ based on its extracted heatmap ΦH(X′). A backward cycle path is added at the bottom of the diagram by reversing the top path to complete a cycle-consistency scheme.

Datasets

The model's unsupervised pre-training is conducted on:

  • CelebA: A large-scale dataset containing over 200,000 celebrity images.

For quantitative evaluation, the unsupervised landmarks are mapped to standard target landmarks using a simple linear regressor trained on:

  • MAFL (Manually Annotated Facial Landmarks): 19,000 training and 1,000 test images.
  • AFLW (Annotated Facial Landmarks in the Wild): 10,122 training and 2,991 test images.

Key Insights and Ideas

  • The Auxiliary Bottleneck as a Regularizer: By forcing the network to route an identity's style through another person's facial geometry, the landmarks are forced to carry universal semantic meaning. If the landmark detector doesn't pick the exact same anatomical regions (e.g., eye corners, nose tip) on both subjects, the image reconstruction will fail.
  • Preventing Geometric Drift: Standard unsupervised models often anchor landmarks to high-contrast edges like hair or jawlines. This paper's cross-subject mapping forces the model to ignore these highly variable features and anchor onto stable facial anatomy.
  • Bidirectional Cycle Consistency: Implementing both a forward ($X \rightarrow X'$) and backward ($X' \rightarrow X$) path ensures that the network learns highly stable referential keypoints that remain robust during complex image translations.

Key Results

The proposed method achieves state-of-the-art results among unsupervised methods on both evaluation benchmarks using $K=10$ intermediate landmarks:

  • MAFL Dataset: Achieves a normalized mean squared error (MSE) of 3.08%, outperforming previous unsupervised baselines such as Sanchez (3.99%) and Zhang (3.46%).
  • AFLW Dataset: Achieves an error rate of 6.20%, outperforming Jakab (6.86%) and Sanchez (6.69%).
TABLE I: Normalized MSE evaluations on the public MAFL and AFLW dataset. Baseline*: our re-implementation of [12].

The model also demonstrates incredible data efficiency. When restricting the number of supervised samples used to train the final linear regressor, the method achieves an error rate of 9.03% using just a single supervised image, drastically outperforming competing methods.

Qualitatively, the landmarks discovered by this method are visibly tighter and more concentrated on actual facial features compared to the baseline, which frequently drifts into the hair and background.

Fig. 2: Visualization results of the detected landmarks on CelebA. Top two rows: 16 detection results without the proposed modules (Baseline model). Bottom two rows: 16 detection results from the same face subjects as in the top rows but with the proposed modules (Ours full model). Each colored dot corresponding to a detected landmark. Landmarks with the same color within the top or bottom two rows are the same, but are not necessary the same across the top and bottom two rows.

Limitations and Future Work

While the method shows superior performance at $K=10$ landmarks, the authors acknowledge that when scaling up to $K=30$ or $K=50$ landmarks, their method performs slightly worse on the MAFL dataset than Jakab et al. They attribute this to their use of simple geometric transformations (scaling, rotation, translation) during data augmentation, whereas Jakab et al. utilize a more sophisticated Thin Plate Spline (TPS) transformation.

Additionally, minor local variance still exists under extreme pose changes or heavy occlusions (e.g., landmarks shifting slightly when hair covers the forehead). The authors suggest that integrating explicit landmark spatial constraints in future iterations could help mitigate this issue.

Summary updated

BibTeX
@misc{li2020unsupervised,
  author = {Weijian Li and Haofu Liao and Shun Miao and Le Lu and Jiebo Luo},
  title = {{Unsupervised Learning of Landmarks based on Inter-Intra Subject Consistencies}},
  year = {2020},
  eprint = {2004.07936},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2004.07936},
}
Figure