Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

BEiT: BERT Pre-Training of Image Transformers

About

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% top-1 accuracy on ImageNet-1K, significantly outperforming from-scratch DeiT training (81.8%) with the same setup. Moreover, large-size BEiT obtains 86.3% only using ImageNet-1K, even outperforming ViT-L with supervised pre-training on ImageNet-22K (85.2%). The code and pretrained models are available at https://aka.ms/beit.

Hangbo Bao, Li Dong, Songhao Piao, Furu Wei• 2021

Related benchmarks

TaskDatasetResultRank
Image ClassificationCIFAR-100 (test)--
3518
Image ClassificationCIFAR-10 (test)
Accuracy97.87
3381
Semantic segmentationADE20K (val)
mIoU58.4
2731
Object DetectionCOCO 2017 (val)
AP49.8
2454
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy85.2
1866
Image ClassificationImageNet-1k (val)
Top-1 Accuracy83.2
1453
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)85.2
1155
Instance SegmentationCOCO 2017 (val)
APm0.444
1144
Semantic segmentationADE20K
mIoU57.9
936
Image ClassificationImageNet-1k (val)
Top-1 Accuracy85.2
840
Showing 10 of 102 rows
...

Other info

Code

Follow for update