All models

beit (semantic segmentation)

A vision Transformer pre-trained by predicting visual tokens for masked image patches.

Image classification · 422 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (26 KB)

Open in a new tab

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.

At a glance

Family
BEiT
Parameters
162.4M
Operations
422
Framework
PyTorch
Recurrent
No
Published
arXiv 2021
Cited by
1,372 (as of 22 October 2026)
Authors
Hangbo Bao, Dong Li, Songhao Piao, Furu Wei
Name in source
beit:semantic-segmentation
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m3630
Graph hash
f258f515b33f1df3487b0729a261d5adf5c73a606a11ff90193e36fac4e2194d
Skeleton hash
12bfcfd21a88c94098581aa6f623701cdac6bd8e2e49d2d80e3ebd7f4c0bbc63
Architecture hash
2baf4afdb56567ef64981db0226545530d0f6d11aabb8a033a635ffccc9c68c1
Diagram SHA-256
aff1faceb207a1db82f95d6c4589a2762a3bf2228474ec6f94a6a7077e2636d7
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model puts a semantic segmentation head on the BEiT encoder; semantic segmentation is one of the two downstream tasks on which the paper reports results.

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.

  • beit
  • bert pre-training of image transformers
  • bidirectional encoder representation from image transformers
  • masked image modeling
  • self-supervised vision transformer
  • visual tokens
  • image classification
  • semantic segmentation
  • dit
  • document image transformer

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}