Few-Shot Keypoint Detection as Task Adaptation via Latent Embeddings

Mel Vecerík, Jackie Kay, Raia Hadsell, Lourdes Agapito, Jon Scholz · OpenReview

Abstract

Precise 3D keypoint detection is a cornerstone of robotic manipulation, yet existing methodologies often force a trade-off between the flexibility of dense descriptors and the accuracy of sparse, task-specific models. We present TACK (Task Adaptation for Conditioned Keypoints), a framework that treats keypoint identity as a latent "task" variable. TACK enables robotic systems to track arbitrary points—including those not residing on the object's surface—across novel object instances using as few as one annotation. By bridging the gap between dense and sparse detection, TACK achieves high accuracy and rapid adaptation without the need for model retraining.

Introduction

In robotic tasks such as grasping or assembly, knowing the precise location of specific object parts is critical. Current research generally bifurcates into dense methods, which compute embeddings for every pixel, and sparse methods, which are trained for a fixed set of points. Dense methods offer generality but often lack the precision required for fine manipulation and struggle with occlusions. Sparse methods provide high accuracy but are brittle; tracking a new point typically necessitates retraining the entire model. TACK addresses this "middle ground," offering a system that maintains the flexibility of dense methods while matching the accuracy of sparse ones through a few-shot adaptation mechanism.

Methodology

TACK formulates keypoint tracking as a task adaptation problem. Here, a "task" is defined as the detection of a specific 3D point across diverse camera views. The architecture comprises two primary components:

  1. Encoder: This module processes a small set of "support" images with annotated keypoints, compressing them into a low-dimensional latent embedding ($c^\tau$) that captures the semantic identity of the point.
  2. Decoder: A Residual U-Net that takes a "query" image and the latent embedding to produce a spatial heatmap of the predicted keypoint location.

To effectively condition the decoder on the target point, we utilize Feature-wise Linear Modulation (FiLM). Rather than simple concatenation, FiLM applies affine transformations to the decoder's internal feature maps, a method found to be significantly more effective for this task. The model is trained using a dual loss function: a task adaptation loss to ensure generalization to novel views and a conditional autoencoder loss to maintain the integrity of the latent embeddings.

The TACK architecture: an encoder generates latent embeddings from support views, which condition a decoder via FiLM to predict keypoints in query images.

Key Insights and Results

A significant advantage of TACK is the decoupling of identity and position. By utilizing a latent space, the model separates the semantic "what" from the spatial "where." This allows the system to track points that do not lie on the visible surface (e.g., an object's center of mass) by learning the relative geometry of the object. Furthermore, the latent space exhibits emergent semantic consistency; even without explicit supervision, semantically similar points across different instances (e.g., the "toe" of different shoes) tend to cluster together in the embedding space.

In experimental evaluations, TACK outperformed Dense Object Nets (DON) by a factor of approximately 3x in pixel error for sparse tracking. The model demonstrated robust zero-shot transfer to entirely new object instances within a class. Real-world validation on a Sawyer robot showed that TACK could identify grasp points on novel shoes using only a single annotation, enabling successful pick-and-place operations on previously unseen items.

Few-shot adaptation: a single user-provided annotation (blue) allows the model to track the corresponding keypoint (red) across diverse query views.

Conclusion and Future Work

TACK provides a scalable and accurate solution for few-shot keypoint detection in robotics. While the model is robust to self-occlusion, it remains sensitive to heavy external occlusions and cross-category generalization. Future research will explore the integration of TACK into reinforcement learning pipelines, where it can serve as a representational bottleneck to accelerate the learning of complex manipulation skills.

Summary updated

BibTeX
@inproceedings{vecerik2022few,
  author = {Mel Vecerík and Jackie Kay and Raia Hadsell and Lourdes Agapito and Jon Scholz},
  title = {{Few-Shot Keypoint Detection as Task Adaptation via Latent Embeddings}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  url = {https://openreview.net/forum?id=gmTNPzsihXa},
}
Figure