Abstract
Discovering semantic keypoints in images typically requires extensive manual annotation, which is labor-intensive and difficult to scale. This paper introduces a novel framework that learns these keypoints using only image-level labels (e.g., "dog" or "bird"). By integrating unsupervised image reconstruction with a weakly supervised classification task and a specialized viewpoint-aware constraint, the model learns to identify consistent anatomical parts even across drastic changes in animal poses and camera angles.
Introduction
Keypoints, such as the tip of a nose or a knee joint, are vital for tasks like gesture recognition and fine-grained classification. However, manually labeling thousands of keypoints is incredibly labor-intensive. Existing unsupervised methods work well for "aligned" data—like human faces looking forward—but they often fail when dealing with "unconstrained" objects like animals in the wild. When an animal turns around or changes its pose, unsupervised models often lose track of which part is which. Conversely, weakly supervised methods (which use image labels) are good at finding "discriminative" regions but usually only focus on the most obvious part (like the face) while ignoring the rest of the body. This paper aims to bridge that gap: discovering a diverse set of keypoints that remain semantically consistent across high viewpoint and appearance variations.
Methodology
The authors propose a three-pronged approach integrated into a ResNet-50 backbone, designed to capture both the structural and semantic properties of objects.
1. Unsupervised Discovery via Reconstruction
Following prior work in unsupervised learning, the model uses a "source" and "target" image pair. It extracts appearance features from the source and geometry (keypoints) from the target to reconstruct the target image. This forces the network to find a "structural bottleneck"—a set of keypoints that efficiently describes the object's shape and pose.
2. Weakly Supervised Part Learning
To ensure these keypoints are semantically meaningful, the model uses the discovered keypoint locations to "pool" local features. These features are then used to predict the image's class label. This encourages the keypoints to latch onto parts that define the category (e.g., ears, legs, or tails) rather than arbitrary background textures.
3. Viewpoint-based Equivariance
This is the core novelty of the work. The authors observed that models often confuse left and right or front and back when an animal flips orientation. They introduced a constraint where the model predicts the "facing direction" of an instance. It then applies a consistency loss: if an image is flipped horizontally, the predicted keypoints should move to the corresponding flipped locations.
The training uses curriculum learning, where the complex viewpoint constraints are introduced only after the model has learned basic reconstruction and classification.
Experiments and Datasets
The model was evaluated on several challenging datasets featuring high pose and viewpoint diversity:
- CelebA: 200k facial images used for baseline comparison.
- CUB (Caltech-UCSD Birds-200-2011): Fine-grained bird classification with 15 keypoint labels.
- AnimalPose: Features 5 animal species with 20 keypoint labels.
- StanfordDogs / StanfordExtra: 120 dog species with 24 keypoint labels.
- DogPart & TigDog: Used for downstream behavior/activity prediction (standing, sitting, lying).
Results and Discussion
The proposed method achieves state-of-the-art performance on the MAFL (faces) and CUB (birds) datasets, outperforming previous unsupervised discovery methods in keypoint estimation accuracy.
Key Insights
- Classification as an Anchor: Using image-level labels acts as a "semantic anchor," preventing the unsupervised discovery from drifting into picking up random background textures or inconsistent edges.
- Generalization to Unseen Categories: One of the most striking findings is that a model trained on one set of animals (like those in AnimalPose) can successfully discover consistent keypoints on entirely different species it has never seen, such as rhinos or giraffes.
- Sample Efficiency: When fine-tuning with a tiny amount of labeled data (only 1% or 10% of the dataset), the proposed method's pre-trained representation provided a significant head start over standard supervised baselines.
- Downstream Utility: The discovered keypoints carry enough structural information to train a simple behavior classifier (e.g., "is the dog sitting?") that performs nearly as well as one trained on human-annotated keypoints.
Limitations and Future Work
Despite the progress, the authors note a few remaining hurdles. The model still struggles with extremely rare or contorted poses and cannot yet gracefully handle occlusions (missing parts). It tends to "guess" a location even if the part isn't visible. Future work likely involves improving robustness to occlusion and extending the framework to video data to leverage temporal consistency.
Summary updated