[Paper Review] Semi-supervised Vision Transformers at Scale
Semi-ViT introduces an EMA-Teacher based SSL pipeline and probabilistic pseudo mixup for vision transformers, achieving state-of-the-art SSL results on ImageNet with very few labels and scalable performance across model sizes.
We study semi-supervised learning (SSL) for vision transformers (ViT), an under-explored topic despite the wide adoption of the ViT architectures to different tasks. To tackle this problem, we propose a new SSL pipeline, consisting of first un/self-supervised pre-training, followed by supervised fine-tuning, and finally semi-supervised fine-tuning. At the semi-supervised fine-tuning stage, we adopt an exponential moving average (EMA)-Teacher framework instead of the popular FixMatch, since the former is more stable and delivers higher accuracy for semi-supervised vision transformers. In addition, we propose a probabilistic pseudo mixup mechanism to interpolate unlabeled samples and their pseudo labels for improved regularization, which is important for training ViTs with weak inductive bias. Our proposed method, dubbed Semi-ViT, achieves comparable or better performance than the CNN counterparts in the semi-supervised classification setting. Semi-ViT also enjoys the scalability benefits of ViTs that can be readily scaled up to large-size models with increasing accuracies. For example, Semi-ViT-Huge achieves an impressive 80% top-1 accuracy on ImageNet using only 1% labels, which is comparable with Inception-v4 using 100% ImageNet labels.
Motivation & Objective
- Demonstrate semi-supervised learning effectiveness for Vision Transformers (ViT) across scales.
- Propose a stable SSL pipeline consisting of self/supervised pre-training, supervised fine-tuning, and semi-supervised fine-tuning.
- Address instability of FixMatch with ViT by adopting EMA-Teacher and confidence-based filtering.
- Introduce probabilistic pseudo mixup to regularize unlabeled data and improve use of noisy pseudo labels.
- Show scalability benefits of ViTs in SSL and quantify label-efficiency gains across datasets.
Proposed method
- Adopt an SSL pipeline: optional self/self-supervised pre-training on all data, followed by supervised fine-tuning on labeled data, then semi-supervised fine-tuning on all data.
- Replace FixMatch with EMA-Teacher to stabilize training when finetuning ViTs in SSL (teacher updated via exponential moving average).
- Use pseudo-labels from the teacher on weakly augmented unlabeled data and supervise strongly augmented student samples when confidence exceeds a threshold.
- Introduce probabilistic pseudo mixup where mixup ratio is determined by sample confidences, enabling weighted interpolation of unlabeled samples and pseudo labels.
- Apply a masked loss combining labeled cross-entropy and unlabeled loss with a confidence gate to mitigate noisy pseudo-labels.
- Demonstrate scalability by evaluating ViT-Small to ViT-Huge and comparing against CNN SSL baselines and fully supervised upper-bounds.
Experimental results
Research questions
- RQ1Can pure Vision Transformers achieve competitive SSL performance compared to CNNs when trained with a carefully designed SSL pipeline?
- RQ2Does EMA-Teacher improve stability and accuracy for ViT-based SSL compared to FixMatch?
- RQ3How does probabilistic pseudo mixup affect regularization and performance in ViT SSL under varying label regimes?
- RQ4To what extent can Semi-ViT scale with model size while maintaining or improving SSL performance?
- RQ5What are the label-efficiency gains on ImageNet and other datasets when using Semi-ViT?
Key findings
- Semi-ViT achieves competitive or superior SSL performance to CNN counterparts across ViT scales.
- EMA-Teacher outperforms FixMatch for ViT SSL, delivering stable training and higher accuracy.
- Probabilistic pseudo mixup yields consistent gains over standard pseudo mixup and pseudo mixup+, especially without heavy pretraining.
- Self-supervised pretraining (e.g., MAE) substantially boosts SSL results, enabling strong performance even with 1% labels.
- Semi-ViT-Huge reaches 80.0% top-1 with 1% labels and 84.3% with 10% labels on ImageNet, approaching fully supervised upper bounds with far less labeling.
- Semi-ViT demonstrates strong transfer to other datasets (Food-101, iNaturalist, GoogleLandmark) with 13-21 point improvements at 1% labels and 7-10 points at 10% labels.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.