Unsupervised Learning of Object Landmarks through Conditional Image Generation

Tomas Jakab, Ankush Gupta, Hakan Bilen, Andrea Vedaldi

TL;DR

This paper introduces a novel unsupervised method for learning object landmarks (like the corners of eyes or human joints) by treating discovery as a conditional image generation task. By forcing a network to reconstruct a target image using only the appearance of a source image and a "tight geometry bottleneck," the model naturally learns to identify semantically consistent keypoints across faces, bodies, and 3D objects without a single human label.

Introduction: The Landmark Bottleneck

Landmark detection is a fundamental task in computer vision, essential for applications ranging from face tracking to motion capture. Traditionally, training these detectors requires massive datasets where humans have manually annotated thousands of specific points (e.g., clicking exactly on the "left nostril"). This process is expensive, tedious, and fails to scale well to new object categories.

While researchers have explored unsupervised methods before, they often relied on complex constraints like equivariance (ensuring landmarks move predictably when an image is transformed) or required pre-computed optical flow from video. The authors of this paper ask a simpler question: Can we discover these landmarks simply by learning to "recompose" images?

Methods: Discovery through Reconstruction

The core idea relies on a proxy task: conditional image generation.

Imagine you have two images of the same person or object in different poses: a source ($x$) and a target ($x'$). The goal is to generate a reconstruction of the target image. To achieve this, the model employs two main neural network components:

  1. The Pose-Regressor ($\Phi$): This network analyzes the target image ($x'$) to extract its geometry. However, its output is heavily restricted by a tight bottleneck. Instead of passing high-dimensional feature maps, it is forced to output exactly $K$ sets of 2D coordinates. These coordinates are then rendered as simple Gaussian heatmaps ($y'$).
  2. The Generator ($\Psi$): This network takes the appearance features from the source image ($x$) and combines them with the geometry (the Gaussian heatmaps $y'$) extracted from the target. It must then "paint" the source's identity onto the target's pose to create the reconstruction ($\hat{x}'$).
Architecture of the unsupervised landmark discovery model

Because the bottleneck between the two networks is so restrictive, the only way the model can successfully reconstruct the target is by selecting points that are mathematically "useful" for describing shape and pose. As it turns out, these highly informative points naturally correspond to semantic landmarks like eyes, noses, and joints.

Crucially, instead of using a complex Generative Adversarial Network (GAN) setup, the authors utilize a Perceptual Loss (comparing deep features from a pre-trained VGG network). This makes the training process significantly more stable and simpler to implement.

Datasets

The authors demonstrate the versatility of their approach across several diverse datasets:

  • Faces: CelebA (for training), alongside MAFL and AFLW (for quantitative evaluation).
  • Human Body: BBC Pose (sign language videos) and Human3.6M (actors in various poses).
  • 3D Objects: smallNORB (synthetic images of objects like cars and airplanes under different lighting and angles).
  • Digits: SVHN (Street View House Numbers).

Key Insights

  • Geometry vs. Appearance: The paper successfully factorizes an image into "what it is" (appearance) and "where it is" (geometry). Landmarks serve as the perfect mathematical bridge for this disentanglement.
  • The Power of the Bottleneck: The primary breakthrough is that you do not need to explicitly define a "nose" for the network. If the network is only allowed 10 points to describe a face's shape for reconstruction, it will naturally "choose" the nose because it is a reliable, consistent anchor.
  • Simplicity over GANs: By conditioning the generation on both a source and a target, the task becomes much less ambiguous than standard "noise-to-image" generation. This allows a simple perceptual loss to outperform more complex adversarial architectures.

Key Results

The proposed method achieves impressive results across multiple domains, proving that unsupervised discovery can rival supervised methods.

Qualitative results showing source, target, reconstruction, and discovered landmarks
  • State-of-the-Art Performance: On the MAFL face dataset, the method achieved a 2.58% error rate, significantly outperforming previous unsupervised methods (which hovered around 3.16%) and even beating several supervised models trained on thousands of labels.
  • Extreme Sample Efficiency: To map the "unsupervised" points to standard "human" landmarks (like a standard 5-point face model), the authors found they only needed 10 labeled examples to reach competitive accuracy via a simple linear regressor.
  • Cross-Category Success: The same architecture successfully tracked human bodies (following limbs and torsos through complex movements) and 3D objects, discovering points that remained invariant to lighting and minor viewpoint changes.

Limitations and Future Work

  • 3D Ambiguity: Because the model operates entirely in 2D and lacks explicit 3D understanding, it sometimes struggles with "flipping" ambiguities (e.g., confusing the front and back of a human torso).
  • Extreme Poses: While generally robust, landmark consistency begins to degrade under very sharp viewpoint changes, such as transitioning from a frontal view of a car to an extreme side profile.
  • Future Directions: The authors suggest that combining this generative approach with equivariance constraints could lead to even more robust, rotation-invariant detectors in future iterations.

Summary updated

BibTeX
@inproceedings{jakab2018unsupervised,
  author = {Tomas Jakab and Ankush Gupta and Hakan Bilen and Andrea Vedaldi},
  title = {{Unsupervised Learning of Object Landmarks through Conditional Image Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure