BEiT: BERT Pre-Training of Image Transformers

06/15/2021
by   Hangbo Bao, et al.
0

We introduce a self-supervised vision representation model BEiT, which stands for Bidirectional Encoder representation from Image Transformers. Following BERT developed in the natural language processing area, we propose a masked image modeling task to pretrain vision Transformers. Specifically, each image has two views in our pre-training, i.e, image patches (such as 16x16 pixels), and visual tokens (i.e., discrete tokens). We first "tokenize" the original image into visual tokens. Then we randomly mask some image patches and fed them into the backbone Transformer. The pre-training objective is to recover the original visual tokens based on the corrupted image patches. After pre-training BEiT, we directly fine-tune the model parameters on downstream tasks by appending task layers upon the pretrained encoder. Experimental results on image classification and semantic segmentation show that our model achieves competitive results with previous pre-training methods. For example, base-size BEiT achieves 83.2 from-scratch DeiT training (81.8 BEiT obtains 86.3 supervised pre-training on ImageNet-22K (85.2 are available at https://aka.ms/beit.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset