
beit (image classification)
Image classification347 ops85.7M params
A vision Transformer pre-trained by predicting visual tokens for masked image patches.
Image classification · 354 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This model is the base-sized Document Image Transformer (DiT), a model with the BEiT architecture that is pre-trained on IIT-CDIP, a dataset that includes 42 million document images. Its output predicts visual tokens from the encoder of a discrete VAE for masked patches, which is the pre-training objective.
About this model's family
BEiT, short for Bidirectional Encoder representation from Image Transformers, is a vision Transformer whose representations are learned by self-supervision. It follows BERT from natural language processing: the paper proposes a masked image modeling task for pre-training vision Transformers.
Each image is seen in two views during pre-training, as image patches (such as 16x16 pixels) and as discrete visual tokens. Some of the patches are masked at random before the image is fed to the Transformer, and the objective is to recover the original visual tokens from the corrupted patches. After pre-training, the model is fine-tuned on downstream tasks by appending task layers to the pre-trained encoder.
The paper reports 83.2% top-1 accuracy on ImageNet-1K for base-size BEiT, against 81.8% for DeiT trained from scratch with the same setup. For large-size BEiT it reports 86.3% using only ImageNet-1K, compared with 85.2% for ViT-L with supervised pre-training on ImageNet-22K.
Key idea. BEiT pre-trains vision Transformers with masked image modeling, in which the model recovers the original visual tokens of an image from its corrupted patches.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{bao2022beitbertpretrainingimage,
title={BEiT: BERT Pre-Training of Image Transformers},
author={Hangbo Bao and Li Dong and Songhao Piao and Furu Wei},
year={2022},
eprint={2106.08254},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2106.08254},
}