Papers › Masked Unsupervised Self-training for Label-free Image Classification

Masked Unsupervised Self-training for Label-free Image Classification

7 Jun 2022arXiv:2206.02967archive 2025-07-28

Junnan Li, Silvio Savarese, Steven C. H. Hoi

State-of-the-art computer vision models are mostly trained with supervised learning using human-labeled images, which limits their scalability due to the expensive annotation cost. While self-supervised representation learning has achieved impressive progress, it still requires a second stage of finetuning on labeled data. On the other hand, models pre-trained with large-scale text-image supervision (e.g., CLIP) have enabled zero-shot transfer to downstream image classification tasks. However, the zero-shot performance of CLIP-like models are often insufficient for real-world adoption. In this paper, we aim to leverage the abundant unlabeled data from a target domain to improve the performance of a pre-trained zero-shot classifier, by unsupervised finetuning of the pre-trained model. We propose Masked Unsupervised Self-Training (MUST), a new unsupervised adaptation method which leverages two different and complementary sources of training signals: pseudo-labels and raw images. MUST jointly optimizes three objectives to learn both class-level global feature and pixel-level local feature and enforces a regularization between the two. We demonstrate the efficacy of MUST on a variety of downstream tasks, where it improves upon CLIP by a large margin. MUST also outperforms supervised few-shot adaptation methods. It achieves a top-1 accuracy of 77.7% on ImageNet using ViT-B, +9.4% higher than CLIP, and +6.2% higher than 16-shot CLIP adaptation. Our code is available at https://github.com/salesforce/MUST.

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="2206.02967")

Code

Syntology Ran 4 of 11 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong.

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

salesforce/must officialmentioned in papermentioned on GitHubpytorchBSD-3-Clause 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

11 samples harvested; 4 ran; 1 honoured the contract we drafted; 7 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.

1ran · honoured contract
3ran · our draft was wrong
7unverified

Licence: 0 of the 11 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 salesforce/must. “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.

basic_clean salesforce/must/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted BSD-3-Clause (permissive) · 98f385d847636a3e · report
get_pairs salesforce/must/clip/simple_tokenizer.py official repository ran · our draft was wrong BSD-3-Clause (permissive) · d919ae32e5e4e616 · report
pil_loader salesforce/must/build_dataset.py official repository ran · honoured contract BSD-3-Clause (permissive) · f6be833ba409926f · report
whitespace_clean salesforce/must/clip/simple_tokenizer.py official repository ran · our draft was wrong fingerprinted BSD-3-Clause (permissive) · 9542161e9640b858 · report
all_gather_with_grad salesforce/must/utils.py official repository unverified BSD-3-Clause (permissive) · 0ec9fc2025c16f65 · report
build_dataset salesforce/must/build_dataset.py official repository unverified BSD-3-Clause (permissive) · 5fc280732189fd24 · report
build_model salesforce/must/clip/model.py official repository unverified BSD-3-Clause (permissive) · 91053da5a83d6ac6 · report
build_transform salesforce/must/build_dataset.py official repository unverified BSD-3-Clause (permissive) · e3abc9c2df1aee16 · report
cosine_scheduler salesforce/must/utils.py official repository unverified BSD-3-Clause (permissive) · b700fb0a3496b255 · report
get_num_layer_for_vit salesforce/must/optim_factory.py official repository unverified BSD-3-Clause (permissive) · 1d9b49adcf6dcf3c · report
get_parameter_groups salesforce/must/optim_factory.py official repository unverified BSD-3-Clause (permissive) · 3698f81878031ac1 · report

Tasks

Image ClassificationRepresentation LearningZero-Shot Image Classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

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