Unsupervised learning of object landmarks by factorized spatial embeddings

James Thewlis, Hakan Bilen, Andrea Vedaldi

Introduction

In computer vision, object landmarks—specific points defining an object's structure, such as the corners of eyes or the tip of a nose—are crucial for tasks like pose estimation and face recognition. Traditionally, training models to detect these points requires extensive human annotation. This paper presents a novel unsupervised method to discover and learn these landmarks by leveraging the principle of equivariance under image transformations.

Methodology: Viewpoint Factorization

The core of the proposed approach is viewpoint factorization, implemented via a Siamese network architecture. The model learns to detect points that move consistently with image transformations.

  1. Synthetic Warping: An unlabeled image is subjected to a random geometric transformation (e.g., a Thin Plate Spline warp) to create a pair of related images.
  2. Equivariance Constraint: Both images are processed by the same landmark detector. The network is trained to minimize the discrepancy between the detected landmarks in the warped image and the warped coordinates of the landmarks from the original image.
  3. Soft Argmax and Diversity Loss: To ensure differentiability, a "soft argmax" is applied to the probability maps. Additionally, a diversity loss prevents the network from collapsing all landmarks onto a single high-contrast point, encouraging a broad distribution across the object.
Conceptual overview of unsupervised landmark discovery across different instances of a category.

While the model only observes warps of individual images during training, the equivariance constraint forces it to learn features that are semantically consistent across different instances of the same category.

Experimental Evaluation

The method was evaluated on diverse datasets, including CelebA (faces), UT Zappos50k (shoes), and the Cat Heads Dataset. Quantitative benchmarks like MAFL and 300-W were used to measure how well these unsupervised landmarks align with human-defined ground truth.

Key Results

  • High Accuracy: On the MAFL face dataset, the unsupervised method achieved a mean error of 6.67%, outperforming several fully-supervised baselines.
  • Label Efficiency: The discovered landmarks provide a powerful initialization. With as few as 20 labeled examples, a simple regressor can map these points to standard landmarks with high precision, significantly outperforming supervised models trained on the same limited data.
  • Emergent Semantics: The model naturally aligns landmarks across individuals—for instance, consistently identifying the left eye across different subjects—without explicit supervision.

Discussion and Limitations

Despite its success, the model faces challenges with large out-of-plane rotations where landmarks may become occluded. Furthermore, the reliance on synthetic 2D warps may not fully capture the complexity of real-world 3D articulations. Future work aims to address these issues by incorporating occlusion handling and more sophisticated deformation models.

Conclusion

This research demonstrates that semantically meaningful object landmarks can be learned entirely without human labels. By enforcing spatial equivariance, the model discovers the underlying geometry of object categories, providing a scalable and efficient alternative to traditional supervised learning for landmark detection.

Summary updated

BibTeX
@inproceedings{thewlis2017unsupervised,
  author = {James Thewlis and Hakan Bilen and Andrea Vedaldi},
  title = {{Unsupervised learning of object landmarks by factorized spatial embeddings}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=BJbw1WfdZB},
}
Figure