TUSK: Task-Agnostic Unsupervised Keypoints

Yuhe Jin, Weiwei Sun, Jan Hosang, Eduard Trulls, Kwang Moo Yi

TL;DR

TUSK is a novel unsupervised framework for learning semantic keypoints that breaks the "one-instance-per-image" limitation of previous methods. By using a single-channel heatmap combined with descriptor clustering around learned prototypes, it enables keypoint detection and object discovery across diverse tasks—from human pose estimation to multi-digit classification—without requiring any manual labels.

What Problem Does This Paper Address?

Keypoints are the "landmarks" of computer vision, essential for tasks like 3D mapping, facial analysis, and robot navigation. While supervised methods are powerful, they require massive amounts of labeled data. Unsupervised methods have emerged to fill this gap, but they almost universally rely on a restrictive assumption: each keypoint type appears exactly once in an image.

This "one-object-per-channel" paradigm fails in the real world. If you train a standard unsupervised landmark detector on single faces and then show it an image with two people, it typically breaks or ignores the second person. The authors of TUSK (Task-agnostic, UnSupervised Keypoints) aim to create a method that is truly general-purpose, capable of handling a variable number of instances and different types of visual data without task-specific tuning.

Comparison of TUSK against a baseline method on multi-face images.

Methods

TUSK moves away from the multi-channel heatmap approach. Instead, it uses an autoencoder-style architecture with several clever constraints:

  1. Single Heatmap Detection: The encoder (a U-Net) produces a single-channel heatmap for all potential keypoints and a dense feature map for descriptors. It uses Non-Maximum Suppression (NMS) to pick the top $K$ keypoints, allowing it to find multiple instances of the same "type" of object or part.
  2. Image Reconstruction: A decoder attempts to reconstruct the original image using only the sparse set of detected keypoint locations and their associated descriptors. This forces the keypoints to capture meaningful semantic information.
  3. Prototype Clustering: To give these keypoints "meaning" without labels, the authors introduce a set of learnable prototypes (cluster centers) in the descriptor space. They use two primary losses here:
  4. Sliced Wasserstein Loss ($L_{sw}$): This ensures the distribution of detected descriptors matches the distribution of the learned prototypes.
  5. k-means Loss ($L_{km}$): This encourages each descriptor to move closer to its nearest prototype, effectively categorizing the keypoints.
  6. Equivariance ($L_{eqv}$): Like many self-supervised methods, TUSK uses synthetic transformations (thin plate splines) to ensure that if an image is warped, the detected keypoints move consistently with that warp.

Datasets

The authors evaluated TUSK on five diverse datasets to prove its "task-agnostic" nature:

  • MNIST-Hard: A synthetic dataset featuring multiple MNIST digits at random positions on a black canvas.
  • CLEVR & Tetrominoes: Standard benchmarks for unsupervised object discovery involving 3D shapes and geometric blocks.
  • CelebA: A massive dataset of human faces. The authors used an "unaligned" version to test the model's robustness to scale and position.
  • Human 3.6M (H36M): A large-scale dataset for human pose estimation.

Key Insights and Ideas

  • Semantics through Sparsity: By forcing the network to reconstruct an entire image from just a few points, the network is incentivized to pick the most "informative" parts of the scene.
  • Breaking the Channel Bottleneck: By using one heatmap and then clustering in the feature space, TUSK can handle an arbitrary number of objects. In MNIST-Hard, for example, it can detect multiple "3s" and "8s" simultaneously, whereas previous methods would try to assign one channel to each digit type and fail if a digit appeared twice.
  • Unified Framework: The most striking "aha moment" is that the exact same architecture works for both landmarks (parts of a single object, like eyes on a face) and object discovery (treating whole objects as keypoints).

Key Results

  • Multi-Instance Superiority: On MNIST-Hard, TUSK achieved 99.9% localization accuracy. A standard "channel-wise" baseline managed only 25.4%, demonstrating how critical the multi-instance capability is.
  • Object Discovery: On CLEVR and Tetrominoes, TUSK achieved Adjusted Rand Index (ARI) scores of 98.3 and 99.7, respectively. This puts it on par with state-of-the-art specialized object discovery methods like Slot Attention, while also providing unsupervised classification (identifying the shape/color of the discovered object).
  • Landmark Detection: On CelebA, TUSK achieved a normalized error of 18.49%, which is competitive with specialized unsupervised landmark detectors, despite TUSK being a more general-purpose tool.

Limitations and Future Work

  • 3D and Occlusion: The model currently lacks an explicit concept of 3D structure. While it can handle some occlusion (as seen in the CLEVR results), it doesn't "understand" depth or perspective.
  • Background Modeling: TUSK does not explicitly model the background. In complex scenes, this can lead to "vague" semantic masks because the model tries to explain the background using keypoints.
  • Compositionality: The authors note that the approach has limited applicability in scenes requiring deep compositional understanding (how parts relate to a whole in complex hierarchies).

Future work could involve integrating 3D priors or more sophisticated background subtraction techniques to move TUSK into even more complex, "in-the-wild" environments.

Summary updated

BibTeX
@inproceedings{jin2022tusk,
  author = {Yuhe Jin and Weiwei Sun and Jan Hosang and Eduard Trulls and Kwang Moo Yi},
  title = {{TUSK: Task-Agnostic Unsupervised Keypoints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=6H8qQ52b5sA},
}
Figure