Semi-Supervised Vision Transformers

Zejia Weng, Xitong Yang, Ang Li, Zuxuan Wu, Yu-Gang Jiang
11/22/2021
cs.CV
transformer-attention

Official code: wengzejia1/Semiformer (36 stars, Python, last commit 2022-11-04).

Abstract

We study the training of Vision Transformers for semi-supervised image classification. Transformers have recently demonstrated impressive performance on a multitude of supervised learning tasks.

Show full abstract

Surprisingly, we show Vision Transformers perform significantly worse than Convolutional Neural Networks when only a small set of labeled data is available. Inspired by this observation, we introduce a joint semi-supervised learning framework, Semiformer, which contains a transformer stream, a convolutional stream and a carefully designed fusion module for knowledge sharing between these streams. The convolutional stream is trained on limited labeled data and further used to generate pseudo labels to supervise the training of the transformer stream on unlabeled data. Extensive experiments on ImageNet demonstrate that Semiformer achieves 75.5% top-1 accuracy, outperforming the state-of-the-art by a clear margin. In addition, we show, among other things, Semiformer is a general framework that is compatible with most modern transformer and convolutional neural architectures. Code is available at https://github.com/wengzejia1/Semiformer.

View on arXivView PDF

Code Implementations(1)

365Python, ShellJul 15, 20224 years ago

Similar Papers

Cite this paper

@article{weng2021semisupervised,
  title  = {Semi-Supervised Vision Transformers},
  author = {Zejia Weng and Xitong Yang and Ang Li and Zuxuan Wu and Yu-Gang Jiang},
  year   = {2021},
  eprint = {2111.11067},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.11067}
}

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/2111.11067.svg)](https://codeofpaper.com/paper/2111.11067)

Discussion