Understanding Self-Supervised Features for Learning Unsupervised Instance Segmentation

Paul Engstler, Luke Melas-Kyriazi, Christian Rupprecht, Iro LainaarXiv 2023 · DOI

Introduction

Unsupervised instance segmentation—the task of identifying and delineating individual objects in an image without human-provided labels—remains a significant challenge in computer vision. While semantic segmentation groups pixels by category (e.g., "all dogs"), instance segmentation must distinguish between separate individuals of the same category (e.g., "Dog A" vs. "Dog B"). Recent advancements have heavily leveraged self-supervised learning (SSL) features, particularly from discriminative models like DINO. However, this paper identifies a fundamental trade-off: the very "semantic-ness" that makes DINO excellent at categorization often causes it to merge adjacent instances of the same class into a single entity.

The "Instance-ness" Discovery

The authors investigate how different SSL training objectives affect a model's ability to perceive object boundaries. By applying spectral clustering to feature maps and varying the number of clusters ($k$), they reveal a stark contrast between discriminative and generative models:

  • Discriminative/Contrastive Models (e.g., DINO): These models are trained to group similar views of an object together. Consequently, they excel at identifying foreground objects but tend to merge multiple instances of the same class because their features are "too semantic."
  • Generative/Reconstructive Models (e.g., MAE): Masked Autoencoders (MAE), trained on pixel reconstruction, preserve significantly more spatial detail. They are more sensitive to the physical gaps and boundaries between objects, exhibiting superior "instance-ness."
Spectral clustering results for different k values. As k increases, the decomposition of the scene changes, illustrating the trade-off between semantic grouping and instance separation.

As shown in the visualization above, increasing $k$ allows the model to decompose the scene. The authors found that MAE features naturally gravitate toward separating side-by-side objects (like the zebras), while semantic-heavy features might split a single animal into its constituent parts (head vs. body) before separating it from its neighbor.

Proposed Unsupervised Pipeline

Leveraging these insights, the authors propose a hybrid pipeline that combines the strengths of both feature types to generate high-quality "pseudo-masks" for training a standard segmenter (like SOLOv2).

The proposed unsupervised instance segmentation pipeline. MAE features generate candidate masks via multi-k spectral clustering, which are then filtered by a DINO-based saliency map.

The pipeline consists of three main stages:

  1. Candidate Generation: MAE features are processed through spectral clustering at multiple scales ($k=2$ to $5$) to produce a diverse set of potential object boundaries.
  2. Saliency Filtering: Because MAE can be noisy and pick up background textures, DINO features—which are excellent at distinguishing "foreground" from "background"—are used to create a saliency map. This map filters the MAE candidates, keeping only those that likely represent important objects.
  3. Self-Training: The resulting filtered masks serve as pseudo-labels to train a supervised instance segmentation architecture in a purely unsupervised manner.

Key Results and Discussion

The study evaluates this approach on major benchmarks including MS COCO, PASCAL VOC, and the UVO dataset.

  • Recall and Separation: Quantitative analysis confirms that MAE-based features achieve much higher recall in images containing multiple instances of the same class compared to DINO-centric approaches. For example, on COCO images with 2+ instances, MAE features were significantly better at separating them.
  • Benchmark Performance: The MAE-based pipeline achieved 12.1 AP50 on the COCO dataset. While a gap remains compared to fully supervised methods, this represents a state-of-the-art result for purely unsupervised instance segmentation, outperforming previous baselines that relied solely on DINO (11.8 AP50).
  • Open-World Generalization: Testing on the UVO dataset demonstrated that the method generalizes well to "unidentified" objects, proving that the learned "instance-ness" is not tied to specific semantic categories.

Conclusion

This research highlights that the choice of self-supervised objective creates a trade-off between semantic grouping and instance separation. While contrastive learning (DINO) provides strong category-level signals, reconstructive learning (MAE) is better suited for the spatial decomposition required for instance segmentation. By combining these complementary features, the authors provide a robust framework for unsupervised vision tasks, suggesting that future SSL research should aim to balance these two fundamental properties.

Summary updated

BibTeX
@misc{engstler2023understanding,
  author = {Paul Engstler and Luke Melas-Kyriazi and Christian Rupprecht and Iro Laina},
  title = {{Understanding Self-Supervised Features for Learning Unsupervised Instance Segmentation}},
  year = {2023},
  eprint = {2311.14665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.14665},
}
Figure