Image as a Foreign Language: BEiT Pretraining for All Vision and Vision-Language Tasks
Wenhui Wang, Hangbo Bao, Li Dong, Johan Bjorck, Zhiliang Peng, Qiang, Liu, Kriti Aggarwal, Owais Khan Mohammed, Saksham Singhal, Subhojit Som, Furu, Wei

TL;DR
BEiT-3 is a versatile multimodal foundation model that leverages Multiway Transformers and unified masked modeling to achieve state-of-the-art results across a wide range of vision and vision-language tasks.
Contribution
The paper introduces BEiT-3, a general-purpose multimodal model with a modular architecture and unified pretraining task, advancing the convergence of vision and language modeling.
Findings
State-of-the-art performance on object detection and segmentation
Superior results in image classification and visual reasoning
Effective cross-modal retrieval and captioning
Abstract
A big convergence of language, vision, and multimodal pretraining is emerging. In this work, we introduce a general-purpose multimodal foundation model BEiT-3, which achieves state-of-the-art transfer performance on both vision and vision-language tasks. Specifically, we advance the big convergence from three aspects: backbone architecture, pretraining task, and model scaling up. We introduce Multiway Transformers for general-purpose modeling, where the modular architecture enables both deep fusion and modality-specific encoding. Based on the shared backbone, we perform masked "language" modeling on images (Imglish), texts (English), and image-text pairs ("parallel sentences") in a unified manner. Experimental results show that BEiT-3 obtains state-of-the-art performance on object detection (COCO), semantic segmentation (ADE20K), image classification (ImageNet), visual reasoning…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗timm/beit3_base_patch16_224.in22k_ft_in1kmodel· 356 dl356 dl
- 🤗timm/beit3_base_patch16_224.indomain_in22k_ft_in1kmodel· 29 dl29 dl
- 🤗timm/beit3_base_patch16_224.indomain_ptmodel· 39 dl39 dl
- 🤗timm/beit3_base_patch16_224.ptmodel· 59 dl59 dl
- 🤗timm/beit3_large_patch16_224.in22k_ft_in1kmodel· 295 dl295 dl
- 🤗timm/beit3_large_patch16_224.indomain_in22k_ft_in1kmodel· 49 dl49 dl
- 🤗timm/beit3_large_patch16_224.indomain_ptmodel· 34 dl34 dl
- 🤗timm/beit3_large_patch16_224.ptmodel· 38 dl38 dl
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMultimodal Machine Learning Applications · Advanced Image and Video Retrieval Techniques · Domain Adaptation and Few-Shot Learning
