Papers › An Empirical Study into Clustering of Unseen Datasets with Self-Supervised Encoders

An Empirical Study into Clustering of Unseen Datasets with Self-Supervised Encoders

4 Jun 2024arXiv:2406.02465archive 2025-07-28

Scott C. Lowe, Joakim Bruslund Haurum, Sageev Oore, Thomas B. Moeslund, Graham W. Taylor

Can pretrained models generalize to new datasets without any retraining? We deploy pretrained image models on datasets they were not trained for, and investigate whether their embeddings form meaningful clusters. Our suite of benchmarking experiments use encoders pretrained solely on ImageNet-1k with either supervised or self-supervised training techniques, deployed on image datasets that were not seen during training, and clustered with conventional clustering algorithms. This evaluation provides new insights into the embeddings of self-supervised models, which prioritize different features to supervised models. Supervised encoders typically offer more utility than SSL encoders within the training domain, and vice-versa far outside of it, however, fine-tuned encoders demonstrate the opposite trend. Clustering provides a way to evaluate the utility of self-supervised learned representations orthogonal to existing methods such as kNN. Additionally, we find the silhouette score when measured in a UMAP-reduced space is highly correlated with clustering performance, and can therefore be used as a proxy for clustering performance on data with no ground truth labels. Our code implementation is available at \url{https://github.com/scottclowe/zs-ssl-clustering/}.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.02465")

Code

Syntology Ran 15 of 18 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 15 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 15 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

scottclowe/zs-ssl-clustering officialmentioned in papermentioned on GitHubpytorchMIT report
bioscan-ml/bioscan-5m mentioned on GitHub report
zahrag/BIOSCAN-5M mentioned on GitHubNOASSERTION report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 15 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

15ran
3unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from scottclowe/zs-ssl-clustering. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_affinity_matrix scottclowe/zs-ssl-clustering/zs_ssl_clustering/louvain.py official repository ran MIT (permissive) · f08f66e56561b459 · report
determine_epoch_seed scottclowe/zs-ssl-clustering/zs_ssl_clustering/utils.py official repository ran fingerprinted MIT (permissive) · da25bbcd7de8221b · report
generate_id scottclowe/zs-ssl-clustering/zs_ssl_clustering/utils.py official repository ran fingerprinted MIT (permissive) · 1bf2e9396bc00670 · report
get_continuous_class_map scottclowe/zs-ssl-clustering/zs_ssl_clustering/datasets/nabirds.py official repository ran fingerprinted MIT (permissive) · d7aa9c6a98fa4fc5 · report
get_embeddings_path scottclowe/zs-ssl-clustering/zs_ssl_clustering/io.py official repository ran MIT (permissive) · f3d48f6c34f39530 · report
get_pred_path scottclowe/zs-ssl-clustering/zs_ssl_clustering/io.py official repository ran MIT (permissive) · f96c64779258568e · report
get_randsizecrop_transform scottclowe/zs-ssl-clustering/zs_ssl_clustering/data_transformations.py official repository ran MIT (permissive) · 4ebdf4346a9ed2e7 · report
get_transform scottclowe/zs-ssl-clustering/zs_ssl_clustering/data_transformations.py official repository ran MIT (permissive) · c0cd4e224662e2f7 · report
image_dataset_sizes scottclowe/zs-ssl-clustering/zs_ssl_clustering/datasets/api.py official repository ran MIT (permissive) · 2252d616ba4317bf · report
load_class_names scottclowe/zs-ssl-clustering/zs_ssl_clustering/datasets/nabirds.py official repository ran MIT (permissive) · d53209ecea508922 · report
load_hierarchy scottclowe/zs-ssl-clustering/zs_ssl_clustering/datasets/nabirds.py official repository ran MIT (permissive) · 02112df93daa57bf · report
probe_embedding_shape scottclowe/zs-ssl-clustering/zs_ssl_clustering/probe.py official repository ran MIT (permissive) · c9646fb0b16f0e8b · report
sanitize_filename scottclowe/zs-ssl-clustering/zs_ssl_clustering/io.py official repository ran fingerprinted MIT (permissive) · 3a3579dedf3fab37 · report
scale_lr scottclowe/zs-ssl-clustering/zs_ssl_clustering/probe.py official repository ran fingerprinted MIT (permissive) · 3b2cc66fa66500b3 · report
setup_linear_classifiers scottclowe/zs-ssl-clustering/zs_ssl_clustering/probe.py official repository ran MIT (permissive) · 506400c268aaa688 · report
fetch_dataset scottclowe/zs-ssl-clustering/zs_ssl_clustering/datasets/api.py official repository unverified MIT (permissive) · d0fc1c7854a8ad46 · report
fetch_image_dataset scottclowe/zs-ssl-clustering/zs_ssl_clustering/datasets/api.py official repository unverified MIT (permissive) · 94ded4fcf407632d · report
init_or_resume_wandb_run scottclowe/zs-ssl-clustering/zs_ssl_clustering/utils.py official repository unverified MIT (permissive) · c5b56f5bbb6ef6cd · report

Tasks

BenchmarkingClustering

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections