Papers › Automatic Data Curation for Self-Supervised Learning: A Clustering-Based Approach

Automatic Data Curation for Self-Supervised Learning: A Clustering-Based Approach

24 May 2024arXiv:2405.15613archive 2025-07-28

Huy V. Vo, Vasil Khalidov, Timothée Darcet, Théo Moutakanni, Nikita Smetanin, Marc Szafraniec, Hugo Touvron, Camille Couprie, Maxime Oquab, Armand Joulin, Hervé Jégou, Patrick Labatut, Piotr Bojanowski

Self-supervised features are the cornerstone of modern machine learning systems. They are typically pre-trained on data collections whose construction and curation typically require extensive human effort. This manual process has some limitations similar to those encountered in supervised learning, e.g., the crowd-sourced selection of data is costly and time-consuming, preventing scaling the dataset size. In this work, we consider the problem of automatic curation of high-quality datasets for self-supervised pre-training. We posit that such datasets should be large, diverse and balanced, and propose a clustering-based approach for building ones satisfying all these criteria. Our method involves successive and hierarchical applications of k-means on a large and diverse data repository to obtain clusters that distribute uniformly among data concepts, followed by a hierarchical, balanced sampling step from these clusters. Extensive experiments on three different data domains including web-based images, satellite images and text show that features trained on our automatically curated datasets outperform those trained on uncurated data while being on par or better than ones trained on manually curated data. Code is available at https://github.com/facebookresearch/ssl-data-curation.

PaperPDFCodeCode Syntology ran

In Syntology 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="2405.15613")

Code

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

By repository: official repository: 19 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.

facebookresearch/ssl-data-curation officialmentioned in papermentioned on GitHubpytorchNOASSERTION 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

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

15ran
4unverified

Licence: 19 of the 19 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 facebookresearch/ssl-data-curation. “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.

closest_to_centroid_selection facebookresearch/ssl-data-curation/src/hierarchical_sampling.py official repository ran licence not identified · pointer only · 5f9322e34f0f5a5a · report
compute_distance facebookresearch/ssl-data-curation/src/kmeans_gpu.py official repository ran licence not identified · pointer only · f0ba8fa85b2c379a · report
create_clusters_from_cluster_assignment facebookresearch/ssl-data-curation/src/utils.py official repository ran licence not identified · pointer only · 2c6f00b7dd49dbfd · report
find_all_checkpoints facebookresearch/ssl-data-curation/src/utils.py official repository ran licence not identified · pointer only · 28a739ca57e0edb4 · report
find_subcluster_target_size facebookresearch/ssl-data-curation/src/hierarchical_sampling.py official repository ran licence not identified · pointer only · 5a8571a0cd12ae5b · report
get_last_valid_checkpoint facebookresearch/ssl-data-curation/src/utils.py official repository ran licence not identified · pointer only · 3e61ccbd2cdd0e61 · report
get_part_indices facebookresearch/ssl-data-curation/src/distributed_kmeans_gpu.py official repository ran fingerprinted licence not identified · pointer only · 904db215a04accee · report
get_part_len facebookresearch/ssl-data-curation/src/distributed_kmeans_gpu.py official repository ran fingerprinted licence not identified · pointer only · bc6694c0ea0d2cb1 · report
kmeans_plusplus facebookresearch/ssl-data-curation/src/kmeans_gpu.py official repository ran licence not identified · pointer only · 4c8210bf31a58081 · report
l2_squared_power facebookresearch/ssl-data-curation/vis/generalized_kmeans_1d.py official repository ran fingerprinted licence not identified · pointer only · 060b6e8429938eef · report
l2_squared_power_der facebookresearch/ssl-data-curation/vis/generalized_kmeans_1d.py official repository ran fingerprinted licence not identified · pointer only · 77f6fab0a9920b2d · report
l2_squared_power_der2 facebookresearch/ssl-data-curation/vis/generalized_kmeans_1d.py official repository ran fingerprinted licence not identified · pointer only · 1d6eb8e587e8f8e8 · report
load_clusters_from_file facebookresearch/ssl-data-curation/src/clusters.py official repository ran licence not identified · pointer only · b5d1408c7aaf8dac · report
matmul_transpose facebookresearch/ssl-data-curation/src/kmeans_gpu.py official repository ran fingerprinted licence not identified · pointer only · ce165668d59de980 · report
random_selection facebookresearch/ssl-data-curation/src/hierarchical_sampling.py official repository ran licence not identified · pointer only · b4b479fcfe0ff407 · report
gather_tensor facebookresearch/ssl-data-curation/src/dist_comm.py official repository unverified licence not identified · pointer only · b4ac6b51806c8b28 · report
hierarchical_kmeans facebookresearch/ssl-data-curation/src/hierarchical_kmeans_gpu.py official repository unverified licence not identified · pointer only · 9392b81c15f05e2a · report
hierarchical_kmeans_with_resampling facebookresearch/ssl-data-curation/src/hierarchical_kmeans_gpu.py official repository unverified licence not identified · pointer only · 410b7cf8ca0cdf31 · report
load_data_to_worker facebookresearch/ssl-data-curation/src/distributed_kmeans_gpu.py official repository unverified licence not identified · pointer only · 96c349a4812a0b80 · report

Tasks

ClusteringSelf-Supervised Learning

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