Masked Unsupervised Self-training for Label-free Image Classification

Junnan Li, Silvio Savarese, Steven C. H. Hoi
6/7/2022
cs.CVcs.AI

Official code: salesforce/MUST (108 stars, Python, BSD-3-Clause, last commit 2025-05-01).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

salesforce/MUSTOfficial100%
BSD-3-Clause

PyTorch code for MUST

10812PythonMay 24, 20221 years agoBSD-3-Clause
clipmasked-image-modelingself-trainingunsupervised-learningzero-shot-classification+1 more

Similar Papers

Cite this paper

@article{li2022masked,
  title  = {Masked Unsupervised Self-training for Label-free Image Classification},
  author = {Junnan Li and Silvio Savarese and Steven C. H. Hoi},
  year   = {2022},
  eprint = {2206.02967},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.02967}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2206.02967.svg)](https://codeofpaper.com/paper/2206.02967)

Discussion