USB: A Unified Semi-supervised Learning Benchmark for Classification

Yidong Wang, Hao Chen, Yue Fan, Wang Sun, Ran Tao, Wenxin Hou, Renjie Wang, Linyi Yang, Zhi Zhou, Lan-Zhe Guo, Heli Qi, Zhen Wu, Yu-Feng Li, Satoshi Nakamura, Wei Ye, Marios Savvides, Bhiksha Raj, Takahiro Shinozaki, Bernt Schiele, Jindong Wang, Xing Xie, Yue ZhangNeurIPS 2022

TL;DR

USB (Unified SSL Benchmark) is a new, high-efficiency benchmark for semi-supervised learning (SSL) that expands beyond computer vision into NLP and Audio. By leveraging pre-trained Transformers, USB reduces the computational cost of evaluating SSL algorithms by nearly 90% while providing a more diverse and challenging testing ground.

What Problem Does This Paper Address?

Semi-supervised learning (SSL) is a powerful paradigm that allows models to learn from a small amount of labeled data and a massive pool of unlabeled data. However, the field has been stuck in two major ruts:

  1. Domain Myopia: Most SSL research is evaluated almost exclusively on "plain" computer vision tasks like CIFAR or ImageNet. We don't actually know if the "state-of-the-art" tricks for classifying images of cats and dogs work for sentiment analysis in text or keyword spotting in audio.
  2. The Compute Barrier: Traditional SSL benchmarks require training deep networks (like ResNets) from scratch. This is incredibly time-consuming and environmentally unfriendly. For example, evaluating a single algorithm on the popular TorchSSL benchmark can take 335 GPU days—a cost that prices out most academic labs.

The authors introduce USB to solve both: a benchmark that is diverse, challenging, and affordable.

Methods

The core innovation of USB is the shift from training from scratch to a pre-train and fine-tune paradigm.

Instead of using standard ResNets, the authors introduce pre-trained Transformers as backbones for all three domains:

  • CV: Vision Transformers (ViT)
  • NLP: BERT
  • Audio: Wav2Vec 2.0 and HuBert
Comparison of SSL algorithms trained from scratch (WRN-28-8) versus fine-tuned from a pre-trained Vision Transformer (ViT-S-P2-32).

By starting with these powerful pre-trained representations, the SSL algorithms only need to "fine-tune" on the specific tasks. This drastically reduces the number of iterations needed (e.g., from 1,000k to 200k iterations in CV) without sacrificing performance.

The authors also open-sourced a modular codebase supporting 14 dominant SSL algorithms (including FixMatch, FlexMatch, and SimMatch), making it easy for researchers to plug in new methods and evaluate them fairly across all 15 tasks.

Datasets

USB consists of 15 diverse tasks across three domains:

  • Computer Vision (CV): CIFAR-100, STL-10, EuroSAT (satellite images), TissueMNIST (medical images), and Semi-Aves (fine-grained birds).
  • Natural Language Processing (NLP): IMDB, Amazon Review, Yelp Review (sentiment), AG News (topic), and Yahoo! Answer (QA topic).
  • Audio Processing (Audio): Keyword Spotting, ESC-50 (environmental sound), UrbanSound8k, FSDnoisy18k, and GTZAN (music genre).

Unlike previous benchmarks, these include long-tailed distributions (Semi-Aves) and specialized domains like medicine and satellite imagery.

Key Insights and Ideas

  • Pre-training is a Game Changer: Using pre-trained ViTs doesn't just save time; it actually helps SSL algorithms generalize better. Some older SSL methods that struggled to converge when trained from scratch performed surprisingly well when given a pre-trained head start.
Test accuracy and pseudo-label accuracy comparing models trained from scratch versus pre-trained models.
  • Cross-Domain Performance is Inconsistent: An algorithm that dominates in Computer Vision (like ReMixMatch) might not be the top performer in NLP or Audio. For instance, SimMatch ranks first in NLP but fourth in CV. This proves that we cannot rely on CV-only benchmarks to claim an algorithm is "universally" better.
  • The Robustness Gap: The authors found that when labeled data is extremely scarce, some SSL algorithms actually perform worse than simple supervised learning. They identify "robust SSL"—algorithms that consistently beat the supervised baseline regardless of data scarcity—as a critical area for future research.

Key Results

  • Massive Efficiency Gain: Evaluating the FixMatch algorithm on all 15 USB tasks takes only 39 GPU days on a single NVIDIA V100. In contrast, evaluating it on just 5 CV tasks using the old TorchSSL protocol takes 335 GPU days.
  • Algorithm Rankings: Across the board, ReMixMatch, SimMatch, and AdaMatch emerged as some of the strongest and most consistent performers.
  • ViT Superiority: The study shows that pre-trained Vision Transformers are not only faster to train for SSL but also achieve higher optimal performance compared to traditional ResNets trained from scratch.

Limitations and Future Work

While USB is a major step forward, the authors acknowledge several limitations:

  • Task Scope: The current version focuses strictly on classification. It does not yet cover other important SSL areas like object detection, regression, or sequence-to-sequence modeling.
  • Algorithm Breadth: While 14 algorithms are included, the benchmark does not yet incorporate GAN-based or graph-based SSL methods.
  • Future Directions: The authors plan to expand USB to include more complex settings like imbalanced SSL (where some classes have much more data than others) and open-set SSL (where the unlabeled data contains classes not seen in the labeled set).

USB is now a project for open extension, inviting the community to contribute new tasks and algorithms to keep the benchmark evolving.

Summary updated

BibTeX
@inproceedings{wang2022usb,
  author = {Yidong Wang and Hao Chen and Yue Fan and Wang Sun and Ran Tao and Wenxin Hou and Renjie Wang and Linyi Yang and Zhi Zhou and Lan-Zhe Guo and Heli Qi and Zhen Wu and Yu-Feng Li and Satoshi Nakamura and Wei Ye and Marios Savvides and Bhiksha Raj and Takahiro Shinozaki and Bernt Schiele and Jindong Wang and Xing Xie and Yue Zhang},
  title = {{USB: A Unified Semi-supervised Learning Benchmark for Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=_dbPwIWs-D},
}
Figure