Few-shot Geometry-Aware Keypoint Localization

Xingzhe He, Gaurav Bharaj, David Ferman, Helge Rhodin, Pablo GarridoCVPR 2023 · DOI

Abstract

Supervised keypoint localization methods typically rely on large, manually labeled datasets to account for object deformation, articulation, and occlusion. However, creating these labels is costly and prone to human error. This paper presents a novel formulation that learns to localize semantically consistent keypoints using only a few user-labeled 2D images. By extending these examples via self-supervision on a larger unlabeled dataset and introducing 3D geometry-aware constraints, the model achieves accurate 2D localization even for occluded regions. Our approach attains competitive or state-of-the-art accuracy across diverse categories, including human faces, animals, and cars, and introduces a new task for mouth interior (teeth) localization.

Introduction

Keypoint localization—the task of identifying specific landmarks like the joints of a limb or the features of a face—is fundamental to computer vision. While deep learning has pushed the boundaries of this field, it remains tethered to the requirement of massive, annotated datasets. For many specialized domains, such as medical imaging or rare animal tracking, obtaining thousands of labeled images is impractical.

Existing solutions generally fall into two camps: supervised methods that require heavy labeling, and unsupervised methods that find consistent points but often lack semantic meaning (e.g., a point might consistently track a patch of fur rather than the "tip of the ear"). This research bridges the gap by focusing on the "few-shot" regime, where a model learns human-defined landmarks from as few as 10 to 50 examples.

Methodology

The proposed framework utilizes a multi-task learning strategy that anchors a small set of labeled images within a larger pool of unlabeled data. The architecture is built upon four primary pillars:

1. 2D Few-shot Supervision and Equivariance

The model is trained on a small set of human-labeled images using a standard loss function. To maximize the utility of unlabeled data, the authors enforce geometric equivariance: if an image is rotated or flipped, the predicted keypoints must undergo the same transformation. This forces the model to learn the underlying structure rather than memorizing pixel locations.

2. 3D-Aware Geometry Constraints

A core innovation of this work is the "uplifting" of 2D keypoints into 3D space. By predicting depth alongside 2D coordinates, the model can enforce a 3D similarity constraint. The intuition is that while 2D projections of a car change drastically based on camera angle, the 3D structure of a car category remains relatively constant. This 3D awareness acts as a powerful regularizer, helping the model maintain semantic consistency across different viewpoints.

3. Geometry-Aware Image Reconstruction

To ensure the keypoints represent the actual semantic shape of the object, the model performs a reconstruction task. It attempts to recreate the original image from a "skeleton" edge map (derived from the keypoints) and a masked version of the source image. If the keypoints are poorly placed, the reconstruction will fail, providing a self-supervised signal that guides the model toward structural accuracy.

4. Uncertainty Modeling for Occlusions

Real-world images often feature occlusions. Rather than forcing the model to guess a single point for a hidden landmark, the framework predicts keypoint uncertainty. This allows the reconstruction module to "soften" its reliance on occluded points, preventing the training process from being destabilized by invisible features.

Experimental Results

The model was evaluated across six diverse datasets, demonstrating its general-purpose applicability:

  • WFLW (Faces): In a 10-shot setting, the model achieved a Normalized Mean Error (NME) of 9.19, significantly outperforming standard supervised baselines which scored 21.9.
  • ATRW (Tigers): This dataset features highly articulated animals. With only 20 labeled images, the model achieved a Percentage of Correct Keypoints ([email protected]) of 78.8%, while the nearest competitor reached only 33.8%.
  • MEAD (Teeth): The authors introduced a new task for mouth interior localization, a challenging area due to high variability and frequent occlusion, where the model demonstrated robust performance.

One of the most striking findings was the model's stability. On the tiger dataset, as the number of labels was reduced from thousands to just 50, the performance of standard baselines plummeted by approximately 60%. In contrast, the proposed geometry-aware model saw only a 16% decrease in accuracy.

Discussion and Limitations

While the framework is highly effective, the authors identified two main areas for improvement. First, symmetry ambiguity can occur in extremely low-shot scenarios, where the model might confuse the left and right sides of highly symmetric objects. Second, high articulation remains a challenge; for extremely flexible subjects like athletes in complex poses, the assumption of a consistent 3D "base shape" is less effective.

Conclusion

By integrating 3D geometric priors with self-supervised reconstruction, this research demonstrates that keypoint localization does not always require massive datasets. The ability to learn from a handful of examples opens new possibilities for rapid deployment of computer vision models in niche domains and provides a more efficient path toward semantically aware generative modeling.

Summary updated

BibTeX
@inproceedings{he2023few,
  author = {Xingzhe He and Gaurav Bharaj and David Ferman and Helge Rhodin and Pablo Garrido},
  title = {{Few-shot Geometry-Aware Keypoint Localization}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  doi = {10.1109/cvpr52729.2023.02044},
}
Figure