arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.08254cs.CVcs.LG
收藏

BEiT:BERT图像Transformers预训练

BEiT: BERT Pre-Training of Image Transformers

Harbin Institute of Technology(哈尔滨工业大学);Microsoft Research(微软研究院)

Hangbo Bao, Li Dong, Songhao Piao, Furu Wei

摘要:

我们介绍了一个自监督的视觉表示模型BEiT,它代表双向编码器表示从图像Transformers。继自然语言处理领域开发的BERT之后,我们提出了一个掩码图像建模任务来预训练视觉Transformer。具体地说,在我们的预训练中,每个图像都有两个视图,即图像补丁(如16 x16像素)和视觉令牌(即,离散令牌)。我们首先将原始图像“标记”为视觉标记。然后,我们随机屏蔽一些图像补丁,并将它们送入骨干Transformer。预训练的目标是基于损坏的图像块恢复原始视觉令牌。在预训练BEiT之后,我们通过在预训练的编码器上附加任务层来直接微调下游任务的模型参数。图像分类和语义分割的实验结果表明,我们的模型取得了竞争力的结果与以前的预训练方法。例如,基本大小的BEiT在ImageNet-1 K上达到了83.2%的top-1准确率,显著优于使用相同设置的从头开始的DeiT训练(81.8%)。此外,大尺寸BEiT仅使用ImageNet-1 K获得86.3%,甚至优于在ImageNet-22 K上进行监督预训练的ViT-L(85.2%)。代码和预训练模型可在https://aka.ms/beit上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑