Introduction
The rise of "Foundation Models" has shifted the machine learning paradigm toward downloading pretrained encoders and fine-tuning them for specific downstream tasks. However, in many real-world scenarios, labeled data is entirely unavailable. This raises a critical question: can these models produce meaningful feature embeddings that naturally group similar objects together in a zero-shot, unsupervised manner?
While the transferability of self-supervised learning (SSL) models after fine-tuning is well-documented, their "raw" utility for clustering diverse, out-of-distribution (OOD) data remains under-explored. This study benchmarks a suite of supervised and SSL encoders across 26 diverse datasets—ranging from satellite imagery to medical microscopy—to evaluate their zero-shot clustering capabilities.
Methodology
The researchers employed a "disjointed" pipeline to evaluate clustering performance:
- Encoders & Backbones: Standard supervised models (Cross-Entropy) were compared against four SSL paradigms: MoCo-v3 (contrastive), DINO (self-distillation), VICReg (canonical correlation), and MAE (masked image modeling), using both ResNet-50 and ViT-B architectures.
- Clustering Pipeline: The study found that reducing high-dimensional embeddings using UMAP was essential for performance. Among five classical clustering algorithms, Agglomerative Clustering generally yielded the most robust results.
The "Crossover" Effect in Generalization
A primary finding of the study is the "crossover" effect regarding data distribution. Supervised models, trained on ImageNet-1k labels, remain superior when the target data is "In-Domain" (similar to ImageNet). However, as the target data becomes increasingly "alien" or Far-OOD, SSL encoders begin to significantly outperform their supervised counterparts.
As shown in the figure above, SSL models like DINO and MoCo-v3 show positive gains (ΔAMI) over the supervised baseline in Far-OOD scenarios, whereas their performance is often lower in-domain. This suggests that supervised pretraining may "overfit" to specific semantic categories, hindering generalization to completely novel domains.
Performance on Fine-Grained Biological Data
The study also examined performance on complex, hierarchical datasets like iNaturalist-21 and BIOSCAN-1M. These datasets require the model to distinguish between very similar species, often across multiple taxonomic levels (e.g., from Kingdom down to Species).
The results on hierarchical data illustrate that DINO (with a ViT backbone) consistently emerges as a top performer in these fine-grained tasks. Its success is attributed to its emergent ability to attend to foreground objects, effectively ignoring distracting background features. Conversely, MAE performed poorly in zero-shot clustering, likely because its pixel-level reconstruction objective fails to capture the high-level semantic features necessary for grouping objects.
Practical Implications: The Silhouette Proxy
For practitioners working without ground-truth labels, the study offers a vital tool: the Silhouette score calculated in UMAP-reduced space. The researchers found a high correlation (Spearman’s ρ ≈ 0.8) between this internal cluster validation metric and the actual Adjusted Mutual Information (AMI). This allows users to reliably estimate clustering quality in real-world, label-free applications.
Conclusion
This empirical study demonstrates that SSL encoders, particularly DINO, offer superior zero-shot clustering performance for datasets far outside the ImageNet domain. While supervised models excel on familiar data, the broader semantic features learned by SSL paradigms provide a more robust foundation for exploring entirely unseen datasets.
Summary updated