NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semi-supervised Vision Transformers at Scale

Zhaowei Cai, Avinash Ravichandran, Paolo Favaro, Manchen Wang, Davide Modolo, Rahul Bhotika, Zhuowen Tu, Stefano Soatto

Semi-supervised learning (SSL) is a powerful paradigm for training models using a small amount of labeled data alongside a massive pool of unlabeled data. While SSL has seen huge breakthroughs for Convolutional Neural Networks (CNNs), Vision Transformers (ViTs) have struggled to replicate this success despite dominating fully supervised tasks.

Directly applying popular CNN-based SSL methods, such as FixMatch, to ViTs often results in poor performance or a complete failure to converge. This occurs because ViTs possess a weaker "inductive bias" than CNNs—they do not inherently assume local pixel relationships like convolutions do—and therefore require significantly more data and regularization to learn effectively.

To address this, researchers have introduced Semi-ViT, a highly scalable SSL framework designed specifically for Vision Transformers. By combining an EMA-Teacher architecture with a novel data augmentation strategy, Semi-ViT overcomes the notorious data-hunger of ViTs in low-label regimes, achieving state-of-the-art results and demonstrating remarkable label efficiency.

A Robust Pipeline for ViTs

The Semi-ViT framework utilizes a robust three-stage training pipeline:

  1. Self-supervised pre-training (using methods like MAE, DINO, or MoCo-v3).
  2. Supervised fine-tuning on the available small labeled dataset.
  3. Semi-supervised fine-tuning on all available data (labeled and unlabeled).

To make the final semi-supervised stage effective for ViTs, the authors introduce two critical modifications:

1. EMA-Teacher Framework

Standard SSL methods like FixMatch use identical student and teacher models. For ViTs, this frequently causes "model collapse," where the model simply predicts the same class for every input. To stabilize training, Semi-ViT replaces this with an Exponential Moving Average (EMA) Teacher. In this setup, the teacher's weights are a slowly moving average of the student's weights, providing a much more stable target for the student to learn from.

Comparison of FixMatch and EMA-Teacher architectures

2. Probabilistic Pseudo Mixup

Because of their weak inductive bias, ViTs require heavy data augmentation (like Mixup) to prevent overfitting. In standard SSL, models generate "pseudo-labels" for unlabeled data, but low-confidence predictions are usually discarded as noise. The authors propose a clever workaround called probabilistic pseudo mixup. They mix high-confidence and low-confidence unlabeled samples together, dynamically adjusting the mixup ratio based on the confidence scores of the pseudo-labels. This allows the model to extract valuable structural regularization from noisy samples without letting bad labels hijack the learning process.

Key Insights and State-of-the-Art Results

Contrary to the prior belief that ViTs are too data-hungry for low-label regimes, Semi-ViT proves that with the right regularization and teacher framework, pure ViTs can actually outperform their CNN counterparts in SSL.

Furthermore, while CNN-based SSL models (like SimCLRv2) tend to saturate in performance once they reach around 300 million parameters, ViTs continue to scale beautifully. The Semi-ViT framework shows steady accuracy improvements all the way up to the 632-million parameter ViT-Huge model.

Semi-ViT scaling performance and label efficiency on ImageNet

Massive Label Efficiency

Evaluated on the standard ImageNet benchmark, Semi-ViT achieves unprecedented label efficiency:

  • 1% Labels: Semi-ViT-Huge achieves an impressive 80.0% top-1 accuracy. This matches the performance of a fully-supervised Inception-v4 trained on 100% of the labels, equating to a 100x reduction in human annotation cost.
  • 10% Labels: The model reaches 84.3% accuracy, matching a fully-supervised ConvNeXt-L.

Strong Transfer Learning

The benefits of Semi-ViT extend beyond ImageNet. On downstream tasks like Food-101 and iNaturalist (2017), an ImageNet-pretrained Semi-ViT improved upon supervised fine-tuning baselines by massive margins—yielding up to a 13-21% absolute improvement on 1% label splits.

Limitations and Future Work

While Semi-ViT marks a significant step forward, the current research strictly evaluates standard image classification. It remains to be seen if these benefits transfer to dense prediction tasks like object detection or semantic segmentation. Additionally, the authors focused on standard SSL settings where the unlabeled data is drawn from the same distribution as the target dataset. Future work will need to explore more complex, real-world scenarios, such as using massive, uncurated out-of-domain datasets as the unlabeled pool.

Ultimately, Semi-ViT demonstrates that transformer architectures are highly viable for semi-supervised learning, paving the way for scalable models in low-label environments.

Summary updated

BibTeX
@inproceedings{cai2022semi,
  author = {Zhaowei Cai and Avinash Ravichandran and Paolo Favaro and Manchen Wang and Davide Modolo and Rahul Bhotika and Zhuowen Tu and Stefano Soatto},
  title = {{Semi-supervised Vision Transformers at Scale}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=7a2IgJ7V4W},
}
Figure