BEiT: BERT Pre-Training of Image Transformers
Paper · 2021 · Hangbo Bao, Dong Li, Songhao Piao et al.
Summary
A vision system can learn from an unlabelled photograph by covering some of it and trying to infer what was there. What should count as a correct answer? Asking for the exact colours of missing pixels gives the system plenty to predict, but much of that work can concern textures and edges close to the hole. BEiT takes inspiration from BERT, which asks a text encoder to identify hidden entries from a vocabulary. The authors give vision a vocabulary of its own. They learn it through image reconstruction and use it to define a prediction task whose answers are discrete codes for image regions.
During pretraining, BEiT represents the same picture in two ways. One route divides it into a grid of pixel patches and supplies those patches to a Transformer. The other route uses an image tokenizer to assign a code to each grid position while the whole picture is available. BEiT covers blocks of input patches by substituting a learned vector at each covered position. The Transformer’s job is to infer the corresponding codes using what it can still see. The encoder thus has access to colour and texture wherever the pixels are visible, while the codebook determines which distinctions matter to the loss at hidden positions.
The authors pre-train the encoder on the ImageNet-1K training images without using their class labels. They then use supervised fine-tuning to adapt it for image classification and for semantic segmentation, which assigns a category to each pixel. BEiT improves on the reported from-scratch comparisons and on the self-supervised alternatives tested in full classification fine-tuning. On CIFAR-100, the reported top-1 accuracy is 48. A vision Transformer trained from scratch scored 5% and 90.1% for pretrained BEiT. An additional supervised stage can improve transfer. In the expanded experiments with intermediate training on an in-house labelled collection, large BEiT reaches 89.5% top-1 accuracy on ImageNet. The paper also reports 58.4% mean intersection over union on ADE20K for its expanded large setting.
The controlled experiments favour learned codes over direct pixel regression, spatial blocks over scattered masking, and scoring hidden positions alone over scoring the entire grid. Attention maps sometimes follow objects and their boundaries, suggesting that pretraining can produce spatially organised features without region labels. Those maps are illustrations, and the segmentation scores come from supervised adaptation. The result also depends on how the encoder is evaluated. Discriminative pretraining fares better when the encoder is frozen and a linear classifier has to read out its features. BEiT makes its strongest case as a way to initialise an encoder that will continue learning on the target task.
Deep dive: BEiT: BERT Pre-Training of Image Transformers
BEiT adapts BERT-style masking to images by predicting learned visual tokens, then tests how well the encoder transfers to recognition tasks. · about 39 minutes to read
The problem and its context
Why a vision Transformer needs a pre-training task
In the earlier work the authors discuss, Transformers had become viable for computer vision, but empirical studies found them more demanding of training data than convolutional networks. That creates a practical problem. A collection can contain many useful pictures even when few of them come with the labels required for a particular application. A photograph intended for classification needs a category for the whole image. The same photograph used for semantic segmentation needs category assignments across its surface. Supervision for a first stage of training can come from the picture itself, leaving those task-specific annotations for the stages that actually need them.
Self-supervised learning makes this possible by constructing questions with answers available from the original data. Earlier visual tasks in the paper asked a learner to put patches into their original arrangement, infer colours, or recognise which rotation had been applied to an image. The procedure that alters the picture also determines the answer. Learning can proceed on a collection with no human labels because the training procedure can verify its own questions. The scientific issue is what the learner acquires in the process. A task can be easy to generate and score while rewarding only a limited kind of visual evidence.
The Transformer supplies an architecture for relating information at different positions. In Vision Transformer, a rectangular image becomes a sequence by dividing it into patches and projecting each patch into a vector. This gives the architecture a sequence it can process, much as a text encoder processes a sequence of embeddings. A patch vector, however, originates in numerical pixel values. The architectural analogy gives a way to present an image to the encoder, while leaving the authors with a separate choice about the answers the encoder should produce during pretraining.
Why hiding a patch leaves a choice about the answer
In BERT’s masked language task, the original token supplies the answer for a covered position. The available answers are the entries of an established vocabulary. Words or units produced by subword tokenization can furnish such a vocabulary. The training loss can ask how much probability the encoder gives to the original entry. A sentence supplies both the clues in the surviving text and the correct answer at each position selected for scoring.
Image patches present a different problem. The underlying values can vary in many ways within the same small area. A finite classifier requires a manageable set of alternatives, and the raw patch arrives without one. One response is to predict numerical pixel values directly. That turns the problem into regression, where the prediction is judged by how closely its values match the original. Such a task is readily specified, but a decrease in reconstruction error can come from learning to continue a local colour or texture. The authors want the pretraining objective to reward information that also matters when a system has to distinguish categories or identify regions.
The granularity of the answer therefore matters. Consider a patch between visible parts of a textured surface. A system may be able to extend the pattern without representing the larger surface it belongs to. Conversely, several slightly different textures might all be plausible given the surrounding image. Requiring the original values penalises those other plausible answers. A vocabulary learned from images offers a way to group appearances into a limited set of outcomes. Which appearances end up together depends on how the vocabulary is trained. BEiT explores that choice using tokenization learned through reconstruction.
The paper describes previous attempts to define discrete visual answers. iGPT builds a 9-bit colour palette by clustering RGB pixel values, where RGB refers to red, green and blue. Its Transformer uses the resulting colour categories on the input side as well as in prediction. Vision Transformer also explored masked patch prediction using a 3-bit description of mean patch colour. That target summarises each region through its average colour. BEiT retains the original pixel values in its visible patches and obtains prediction categories from a trained image tokenizer. This lets the authors choose the information available to the encoder separately from the information required in its answer.
Masking itself also had visual precedents. The paper describes Selfie, which covers patches and learns to distinguish genuine patch content from substituted content at those locations. The learner there evaluates a candidate supplied by the training procedure. BEiT requires a distribution over a codebook for each covered patch. Both procedures take their questions from strategically incomplete pictures, but the kind of answer required creates a different learning problem. The authors also draw a connection to language objectives that conceal spans of neighbouring tokens, such as SpanBERT. On an image grid, a block of adjacent patches plays a related role.
Other ways to learn from the same pictures
Much of the preceding work the paper discusses uses a relationship between different views of an image. In contrastive learning, views created by augmenting the same picture form positive pairs. Training brings their representations closer and separates representations associated with negative pairs. The paper cites Momentum Contrast and SimCLR in this tradition. It also points to the role of memory banks and large batches in obtaining enough informative negatives. Those design choices address how to organise examples against which the representation learns.
Other approaches obtain a training signal without explicit negative pairs. The paper mentions BYOL and SimSiam, which use other means to keep representations from collapsing into outputs that convey little about individual images. Clustering approaches can instead organise image examples into groups and use those assignments as part of learning. For vision Transformers, the authors highlight contrastive approaches including MoCo v3 and work on Swin, as well as the self-distillation approach of DINO. In self-distillation, a training system learns from predictions generated within the training arrangement.
BEiT gets its answers from a different relationship. Given the same image with and without some of its content, the complete version supplies information that the incomplete version cannot show directly. A learned tokenizer specifies how that information is expressed. This choice makes it possible to vary both the missing region and the type of answer while retaining a familiar patch-based encoder. The authors can then ask whether the resulting starting point is valuable for labelled tasks and which ingredients make it so.
The method, step by step
Prepare the visible evidence and the answers
A pretraining example begins with an image arranged on a rectangular grid. One branch divides the image into square patches and preserves their pixel values. Each patch gets a position in a sequence. Another branch takes the complete image and produces a grid of visual codes. At a position where BEiT hides a patch, the code from the same position becomes the answer. The token grid is computed with the complete image available, so the expected answer comes from content that the main encoder is prevented from seeing.
The authors use a tokenizer learned by a discrete variational autoencoder, a system that learns to describe an image in a restricted internal form from which a decoder can reconstruct it. A visual code is an index into this system’s learned vocabulary. It carries information through its assignment to a location and through the distinctions the tokenizer has learned to make. The number assigned to a code is simply an identifier. For instance, there is no reason to treat codes with adjacent indices as descriptions of similar patches. Their value comes from the role they play in encoding and recovering image content.
The masked encoder and the tokenizer solve different problems. The tokenizer establishes the answers by examining a complete picture. The Transformer has to infer some of those answers after information has been withheld. During this second stage, the target generator is fixed. During downstream adaptation, the encoder’s contextual vectors supply the input to a new task layer. That layer can use the transferred features to produce semantic predictions in the vocabulary of the task, such as the names of image categories.
From image reconstruction to supervised transfer
The steps in order.
Turn pixels into a positioned sequence
An image has spatial dimensions and channels. The paper writes its shape as follows.
x ∈ ℝ^(H × W × C)
The symbol x is the image, H is its height, W is its width and C counts its channels. The multiplication signs join the dimensions of the array. Membership ∈ says that x belongs to the indicated array space, and ℝ identifies the entries as real-valued.
The image is partitioned into equal square patches. The number of sequence positions occupied by those patches is given by their total area relative to the area of one patch.
N = HW / P²
Here N is the patch count, H and W again give the image dimensions, and P is the side length of a patch. The numerator is the image area in pixels, while P² is the patch area. The division describes the regular partition used by the encoder.
Flattening means collecting the pixel values and their channels into a vector for each location in the grid. The full set of patch vectors has the following shape.
xᵖ ∈ ℝ^(N × (P² C))
The superscript p marks the patch form of the original image x. There are N vectors, each containing P² pixel positions with C channel values per position. The array space ℝ records that those values are real numbers, and ∈ denotes membership. At the reported input resolution of 224 × 224, the authors use 16 × 16 patches arranged as a 14 × 14 grid.
The backbone uses a learned linear projection to put each flattened patch into the vector space used by the Transformer. In the paper’s notation a projected patch is written as follows.
E xᵖᵢ
The index i picks one of the N locations, and xᵖᵢ is the flattened pixel patch at that location. The matrix E supplies the weights for the linear projection. Its dimensions are specified by the flattened patch length and the encoder’s hidden width D, with D denoting the number of components in the resulting embedding.
The input sequence begins with a special token called S. Learned position embeddings supply location information for the ordered input, including the positions where a mask will stand in for a patch. The paper gives the position array for the patch locations as having shape N × D. Its expression for the assembled sequence uses a single addition to represent the inclusion of position information.
H₀ = [e_S, E xᵖ₁, …, E xᵖ_N] + E_pos
Here H₀ is the sequence before the first Transformer block. The brackets collect entries in sequence order, beginning with e_S, the learned embedding for S. The terms beginning with E are the projections of the patches, from the first position to position N, with the ellipsis standing for the intervening patches. The term E_pos denotes learned position embeddings, and the addition expresses their incorporation into the input. For the masked pass, the mask embedding occupies the corresponding content slot within this sequence.
The same style of Transformer block is applied repeatedly to the sequence. The layer computation has a compact form.
Hˡ = Transformer(Hˡ⁻¹)
Hˡ is the sequence of hidden vectors after layer l, and Hˡ⁻¹ is the sequence received from the preceding stage. Transformer denotes the block operation at that layer. The index l runs from the first block through L, the depth of the encoder. Within the stack, self-attention lets a patch position use information from other positions, while the feed-forward parts transform the resulting features.
Hᴸ = [hᴸ_S, hᴸ₁, …, hᴸ_N]
Hᴸ is the output sequence after all L blocks. Its first entry, hᴸ_S, is the output at the special token. The remaining entries hᴸᵢ correspond to the patch whose position is i, with the ellipsis again covering the intervening entries through position N. A prediction about a hidden region uses the output at that region’s position. In the base configuration, the encoder follows ViT-Base with 12 layers, a hidden width of 768, 12 attention heads and an intermediate feed-forward width of 3072. The paper uses the standard architecture associated with Attention Is All You Need.
Learn the vocabulary that supplies the answers
The target branch maps the image onto a grid whose entries are chosen from a codebook. In the principal setup, this is a 14 × 14 target grid, matching the patch grid location for location. The notation collects the individual code assignments as a sequence while retaining the fact that they can be arranged spatially.
z = [z₁, …, z_N] ∈ 𝒱^(h × w)
z is the full assignment of visual tokens for an image. Each zᵢ is the code at position i, and N is the number of aligned patch and token positions. The brackets describe the ordered representation, and the ellipsis covers the entries between the first and last positions. The space on the right describes a grid with height h and width w, with one member of the vocabulary 𝒱 at each location. The membership sign ∈ places z in that space.
𝒱 = {1, …, |𝒱|}
𝒱 is the set of valid code indices. The braces denote a set, the ellipsis includes the intervening indices, and |𝒱| is the vocabulary size, set to 8192 in the main setup. This finite set lets the training procedure score a hidden position with a classifier. The encoder can distribute its probability among the valid codes even when multiple possible completions would be consistent with the visible image.
To produce these codes, the discrete autoencoder has a tokenizer and a decoder. The tokenizer, written q_φ(z | x), describes possible token assignments z given the complete image x. Its parameters are φ. The decoder, written p_ψ(x | z), describes the original image x given those tokens and has parameters ψ. In both expressions the bar denotes conditioning. Training rewards a token representation from which the decoder can assign high probability to the original image.
𝔼_{z ∼ q_φ(z | x)} [log p_ψ(x | z)]
𝔼 denotes an average in the probabilistic sense, and ∼ means that the assignments being averaged are drawn from q_φ, the tokenizer distribution for x. The logarithm log scores the probability that the decoder p_ψ gives to the original image when it receives assignment z. The parameters φ and ψ belong to the tokenizer and decoder respectively. Maximising this quantity rewards reconstructions supported by the discrete description. Minimising its negative gives the reconstruction loss described by the authors.
A discrete selection poses a training problem for the tokenizer. A small change to a score before the selection can leave the chosen code unchanged, while crossing a decision boundary switches the choice. The authors describe the use of Gumbel-softmax relaxation, which provides a differentiable way to train with these categorical choices, and a uniform prior in tokenizer training. A uniform prior gives the code alternatives equal prior standing. The method draws on work on Gumbel-softmax and the related Concrete distribution.
The main BEiT experiments use the publicly released image tokenizer from DALL-E. The authors also train a replacement tokenizer on ImageNet-1K without category labels and compare the results in an appendix. In both cases, the target branch is ready before masked prediction begins. Learning to reconstruct the picture trains the tokenizer and decoder. Learning to infer its codes from partial evidence trains the BEiT encoder. The benefit of the first stage for the second depends on what the resulting vocabulary captures about image content.
Decide where to hide information
BEiT masks groups of neighbouring patches. The procedure builds a mask by repeatedly choosing a block and selecting an aspect ratio for it. In the method description, the minimum block area is 16 patches, and the procedure repeats until it has selected approximately the intended proportion of positions. The training setup describes masking at most 75 patches, which the authors characterise as approximately 40% of the input grid.
|ℳ| ≈ 0.4N
ℳ is the set of masked patch positions. The bars around it count the members of the set. N gives the total number of patch positions, and 0.4 is the masking fraction in the method description. The roughly equal sign ≈ expresses a target proportion. The paper states the patch cap separately for its main pretraining run.
The following positionwise notation makes the flow of information explicit. It describes the inputs after the content at each patch position has been projected or replaced, before position information is included.
uᵢ = E xᵖᵢ if i ∉ ℳ, or e_M if i ∈ ℳ
uᵢ is the content vector at position i. The expression E xᵖᵢ gives the projection of the original patch at an unmasked position, and e_M is the learned mask embedding with hidden width D. The sign ∉ identifies an index outside the masked set ℳ, while ∈ identifies one inside it. The masked image input, denoted by the paper as x^ℳ, is represented by this sequence with content substitutions at the selected positions.
Keeping a vector in every slot is important to the prediction task. Each covered location still has a place in the sequence. Its content vector indicates that the patch has been hidden, and its position tells the encoder which region is missing. Attention can combine evidence from visible locations before the final layer produces a vector at that missing position. The prediction head can then use that vector to answer a question about a specific part of the picture, even when several adjacent parts are hidden together.
The choice to hide blocks affects the evidence available to the learner. Scattered masking can leave visible patches around much of a hole’s border. With a block, a location in its interior can have several masked neighbours, pushing the nearest visible evidence farther away. For a task whose goal is to learn contextual features, that makes the arrangement of the mask consequential independently of the total amount of visible input.
Score the predicted code at a covered location
A linear head converts the final vector at a hidden position into a score for each vocabulary entry. Softmax maps these scores to a probability distribution so that the head can express uncertainty among the candidate codes. The paper conditions the probability on the corrupted input and uses the patch index in the vector on the right.
p_MIM(z′ | x^ℳ) = softmax_z′(W_c hᴸᵢ + b_c)
p_MIM is the probability assigned by the masked image task, and z′ denotes a candidate token for the hidden position i. The vertical bar conditions this probability on x^ℳ, the corrupted image input. The final vector hᴸᵢ represents position i after L layers. W_c is the classifier matrix of shape |𝒱| × D, where |𝒱| is the codebook size and D is the hidden width. The bias b_c supplies one additive term per code. The subscript on softmax indicates normalisation over candidate entries z′. The i on the right supplies the location implicit in the probability on the left.
Training rewards the probability of the code taken from the complete image. The paper sums the scores over images and masked positions and takes the expectation over the masks that can be applied to each image.
max Σ_{x ∈ 𝒟} 𝔼_ℳ [Σ_{i ∈ ℳ} log p_MIM(zᵢ | x^ℳ)]
max indicates maximisation over the trainable parameters of this stage. The outer sum Σ runs over images x in the pretraining corpus 𝒟. The expectation 𝔼_ℳ averages over the random mask ℳ. The inner sum covers indices i belonging to that mask. The term zᵢ is the tokenizer’s answer for position i in the complete image, and log p_MIM is the log probability that the prediction head assigns to that answer given x^ℳ. The two membership signs specify which images and positions are counted.
Visible positions matter through the evidence they contribute to the contextual vectors at hidden positions. The loss has no direct classification term for a visible patch under the main objective. In this sense the mask determines both what the encoder sees and where its answers will be graded. Changing either of these roles changes the training task. The authors later examine what happens when hidden and visible positions are both scored.
Relate the stages through a variational bound
The paper gives a probabilistic interpretation of BEiT using the framework of variational autoencoders. Imagine assigning a probability to the original image given a corrupted version. The visual tokens provide an intermediate description. A predictor can assign probabilities to possible token grids given the corrupted observation, and a decoder can use a token grid to assign probability to the original image. The tokenizer, which sees the original, supplies a distribution over token assignments for the calculation.
The evidence lower bound relates the likelihood of recovering the original image to reconstruction from its tokens and agreement between the two token distributions. Here the index i enumerates image pairs, whereas it indexed patch positions in the masked prediction formula.
Σ_{(xᵢ, x̃ᵢ) ∈ 𝒟} log p(xᵢ | x̃ᵢ) ≥
Σ_{(xᵢ, x̃ᵢ) ∈ 𝒟} [
𝔼_{zᵢ ∼ q_φ(z | xᵢ)} [log p_ψ(xᵢ | zᵢ)]
− KL(q_φ(z | xᵢ), p_θ(z | x̃ᵢ))
]
The sums run over pairs in 𝒟, each containing an original image xᵢ and its corrupted version x̃ᵢ. On the left, p(xᵢ | x̃ᵢ) denotes the conditional likelihood of the original, and log takes its logarithm. The sign ≥ says that the expression to the right is a lower bound. In its first term, 𝔼 averages over a token grid zᵢ sampled, as indicated by ∼, from the tokenizer q_φ. The variable z represents possible token grids, and φ parameterises their distribution given xᵢ. The decoder p_ψ gives the probability of xᵢ based on zᵢ, with ψ denoting its parameters.
The subtraction sign introduces a cost for disagreement. KL denotes Kullback–Leibler divergence, an ordered measure of how one probability distribution differs from another. Its first argument is the token distribution q_φ from the original image. Its second argument is p_θ(z | x̃ᵢ), the distribution a predictor with parameters θ can obtain from the corrupted image. A high reconstruction score says the tokens contain useful information about the complete picture. A low divergence says the predictor can assign probability to the same descriptions using incomplete evidence.
The authors implement this account in stages. First they obtain the reconstruction-trained tokenizer, with the uniform prior used in the discrete autoencoder stage. Next they hold the tokenizer and decoder fixed and train the predictor conditioned on masked images. For this stage they use a point distribution concentrated on the tokenizer’s most likely assignment.
ẑᵢ = argmax_z q_φ(z | xᵢ)
ẑᵢ is the chosen assignment for original image xᵢ. The operation argmax_z returns the assignment z that maximises q_φ(z | xᵢ), the probability under the tokenizer with parameters φ. A point distribution gives its entire probability to this selected assignment. With that simplification, the divergence term rewards the masked predictor for giving probability to a definite grid of target tokens.
Σ_{(xᵢ, x̃ᵢ) ∈ 𝒟} [
𝔼_{zᵢ ∼ q_φ(z | xᵢ)} [log p_ψ(xᵢ | zᵢ)]
+ log p_θ(ẑᵢ | x̃ᵢ)
]
The sum again ranges over pairs of a complete image xᵢ and its corrupted version x̃ᵢ in 𝒟. The expectation averages the decoder log probability over tokenizer samples zᵢ, with q_φ providing the distribution over latent grids z and p_ψ reconstructing from the sample. The plus sign joins this reconstruction term to the log probability of the selected assignment ẑᵢ under p_θ, the predictor with parameters θ conditioned on x̃ᵢ. The paper associates the first term with learning the vocabulary and the second with masked image pretraining. In the implemented masked objective, the prediction loss is applied at the covered positions.
This account explains how pixel reconstruction can be useful in one stage even though BEiT chooses code prediction for another. The decoder needs to recover an image from a restricted description. That pressure helps define what a code represents. The main encoder learns from a task with a finite answer space and spatially incomplete input. The two learning problems use the original image in different ways, and only the second trains the encoder whose features are transferred.
Run pre-training and adapt the encoder
The main run uses the training split of ImageNet, described in the setup as containing about 1.2M images for ImageNet-1K. Class labels are unused during this run. The image preparation includes random resized cropping, horizontal flipping and colour jitter. These operations vary the region, orientation or appearance presented to the training procedure. The input resolution is 224 × 224, and the image supplies aligned patch content and token targets in the grid determined by that setup.
The stated schedule is about 500k steps, corresponding to 800 epochs, at a batch size of 2k. The optimiser uses momentum coefficients β₁ and β₂ of 0.9 and 0.999 respectively. The learning rate is 1.5e-3 with 10 epochs of warmup, followed by a cosine decay schedule. The weight decay is 0.05. The paper’s optimiser reference is Decoupled Weight Decay Regularization. The authors disable dropout and apply stochastic depth at a rate of 0.1. They report about five days for the 500k-step run on 16 Nvidia V100 GPU cards with 32GB of memory each.
For stability, the authors describe starting with small random parameter values, giving the interval [−0.02, 0.02] as an example. They then rescale the output projection of the self-attention sublayer and the output projection of the feed-forward sublayer at each layer. The multiplier decreases with depth.
1 / √(2l)
The index l identifies the Transformer layer. The square root √ is taken over the product 2l, and 1 divided by that root is the factor by which the two output matrices at layer l are multiplied. This adjustment concerns the initial weights, before the statistics of token recovery begin to shape the encoder.
For classification, BEiT adds a linear task layer. The final patch vectors contribute equally to an average, and a softmax over the resulting class scores gives an image-level prediction. The formula uses a classifier matrix for downstream labels.
softmax(avg({hᴸᵢ : i = 1, …, N} W_c))
hᴸᵢ is the final vector at patch position i after L layers. The braces collect the vectors from position 1 through N, with the ellipsis covering the intervening positions. W_c is the downstream classifier matrix, shaped D × C, where D is the hidden width and C here is the number of task labels. This use of C differs from its earlier role as the number of image channels. The operator avg averages across patch positions and softmax normalises the scores across task classes. The resulting likelihood of the labelled examples trains the classification head and the encoder together.
For semantic segmentation, the decoder needs to turn the patch features into a spatial prediction. The main experiments attach the task layer from SETR-PUP, which uses deconvolution layers to produce the segmentation output. The encoder and decoder are fine-tuned jointly. The authors also evaluate a sequence in which a data-rich labelled task comes before the final adaptation. ImageNet-1K can play this intermediate role for another downstream dataset. The labels used at that stage add supervision after masked pretraining and before the features are specialised to the final task.
Experiments and results
Recognition at image and pixel level
The experiments ask how useful the trained encoder is once a target dataset supplies labels. For classification, top-1 accuracy measures the frequency with which the class receiving the highest score agrees with the image label. It evaluates a single choice per image. For semantic segmentation, the comparison is spatial. Intersection over union for a category measures the overlap of the predicted and reference areas relative to their union, the area covered by either. Mean intersection over union, abbreviated mIoU, averages the category scores. This requires the adapted system to place its categories in the right regions.
The main experiments use full fine-tuning, so target-task gradients can change the encoder along with the new prediction head. A classification score under this protocol reflects both what the pretrained features already make available and how readily they can be adapted. The segmentation result also depends on the decoder and how it is trained. The appendix’s frozen linear probes ask a narrower question about what a supervised classifier can read directly from fixed features.
ImageNet fine-tuning and the role of input resolution
The classification section describes ILSVRC-2012 ImageNet as having 1k classes and 1.3M images. The earlier figure of about 1.2M refers specifically to the ImageNet-1K training split used for self-supervised pretraining. For classification, the authors largely follow the DeiT training settings, with fewer adaptation epochs for the already trained encoder. They use a higher learning rate and decay it layer by layer, giving different encoder depths different update schedules.
The paper compares BEiT with vision Transformers started from random weights, systems prepared using supervised pretraining, and systems using other self-supervised objectives. Most of the main comparisons involve base-size encoders. DINO and MoCo v3 are pertinent self-supervised comparisons because they also pre-train a base vision Transformer on ImageNet-1K. The reported full fine-tuning results favour BEiT over those methods and over training from scratch. Alongside that outcome, the authors report that ImageNet fine-tuning of BEiT reaches useful classification performance sooner than the DeiT run started from random weights.
Other comparisons have different training resources. The paper puts the iGPT comparison at 1.36B parameters and the base BEiT encoder at 86M. The Vision Transformer using masked patch prediction on Google’s in-house collection draws on 300M images. These are informative comparisons between alternative ways of preparing an image encoder for classification, with parameter count and access to images among the differences. The closer ImageNet-1K comparisons show how BEiT fares among particular alternatives under more similar backbone and data conditions.
The default adaptation resolution is 224 × 224. For the higher-resolution setting, the authors continue fine-tuning for 10 epochs with 384 × 384 inputs. The 16 × 16 patch size stays fixed, so the larger image presents a longer sequence of patches. The paper reports an improvement of 1+ points in ImageNet top-1 accuracy under the higher-resolution procedure. It also reports that BEiT pretrained on ImageNet-1K at this downstream resolution exceeds the comparison Vision Transformer that was supervised on ImageNet-22K and adapted at the same resolution. The improvement attributed to the higher-resolution procedure includes the additional adaptation at that size.
Transfer to CIFAR-100
The CIFAR-100 experiments make the difference between random and learned initialisation concrete. The benchmark is described as having 100 classes and 60k images. The authors use the general classification adaptation setup from the ImageNet experiments. For the scratch comparison they report a result taken from the MoCo v3 work. BEiT begins with features learned through masked prediction on ImageNet-1K and is then adapted to the CIFAR-100 class labels.
CIFAR-100 top-1 accuracy after scratch training and pre-trained transfer
The pre-trained BEiT encoder leads the reported comparison on the smaller classification benchmark.
The numbers
| System or setting | top-1 accuracy % |
|---|---|
| Vision Transformer from random initialisation | 48.5 |
| Pre-trained BEiT after task fine-tuning (this paper) | 90.1 |
The reported benchmark scores are 48.5% top-1 accuracy for ViT trained from scratch and 90.1% for the BEiT transfer route. The comparison demonstrates how strongly the starting point can matter on this task. BEiT has already had access to a larger collection of images before seeing the target labels. In that sense, the result measures the benefit of transferring learning from those images into a smaller labelled task.
The authors also report higher CIFAR-100 accuracy for BEiT than for MoCo v3 and a further improvement after supervised intermediate fine-tuning on ImageNet-1K. Those comparisons address different aspects of transfer. The MoCo v3 comparison concerns the choice of self-supervised preparation among the reported systems. The intermediate fine-tuning result concerns the additional value of labelled training once a masked encoder is available. The scratch comparison alone leaves both questions open.
Spatial transfer on ADE20K
The paper describes ADE20K as containing 25K images and 150 semantic categories. The main experiments use the SETR-PUP task layer and report mIoU for single-scale inference, where the prediction uses an image at one scale. For ADE20K fine-tuning, the paper gives an Adam learning rate of 1e-3 with layer-wise decay. Training runs for 160K steps with a batch size of 16. The authors largely follow the segmentation settings of the task layer they adopt.
The comparison with supervised ImageNet pretraining favours BEiT in the main segmentation setup. ImageNet category labels can prepare an encoder to make image-level distinctions. BEiT’s objective supplies a learning signal at individual masked positions, so an encoder that begins with those features is also of interest for dense output. The ADE20K result establishes that the features can support a supervised segmentation system under the tested decoder and adaptation procedure.
The authors also report better ADE20K results when they insert supervised ImageNet fine-tuning between masked pretraining and segmentation training. The extra stage teaches image-level category prediction before adaptation to a task that needs local predictions. Its reported benefit shows that the spatial transfer gains from masked pretraining can coexist with additional supervised preparation at the image level.
Larger encoders and larger labelled collections
The large-size comparison examines how performance changes when encoder capacity increases. At the higher input resolution, training the large Vision Transformer from scratch gives worse ImageNet classification performance than training the base version from scratch. With supervised ImageNet-22K pretraining, the paper reports a 1.2-point large-over-base difference in ImageNet top-1 accuracy for the corresponding Vision Transformer comparison. For BEiT, the reported base-to-large improvement is 2.0 points at the standard resolution and 1.7 points at the higher resolution.
At the higher resolution, the paper reports that BEiT’s ImageNet top-1 advantage over the supervised ImageNet-22K comparison is 0.6 points at base size and 1.1 points at large size. These are differences reported by the authors for the configurations they tested. The results motivate their suggestion that the masked objective could be especially valuable for very large encoders when sufficiently extensive labelled collections are hard to obtain.
The expanded appendix experiments use a variant denoted BEiT⁺, which adds LayerScale and relative position bias to the architecture used in the earlier comparison. In the ImageNet-22K setup, self-supervised training runs for 150 epochs, and supervised intermediate fine-tuning on ImageNet-22K then runs for 90 epochs. The appendix also describes substituting an in-house dataset of about 70M labelled images as the intermediate collection. The classification comparisons include fine-tuning at 384 × 384 and 512 × 512 resolutions.
The paper reports that BEiT-L adapted on ImageNet-22K, described as 14M images, attains ImageNet classification performance comparable to ViT-L trained on JFT-3B. With the in-house collection for intermediate fine-tuning, BEiT-L reaches 89.5% ImageNet top-1 accuracy. Together these comparisons show what the masked stage can contribute as part of a pipeline that still has access to substantial labelled data. The particularly high absolute score belongs to the expanded training route.
For the large ADE20K comparison, the authors follow Swin Transformer in using the UperNet task layer, with evaluation at 640 × 640. The reported large-size result is 58.4% mIoU on ADE20K. This experiment demonstrates the performance of the expanded setup with its own decoder, resolution and training stages. The comparison involving SETR-PUP answers the separate question of how the main BEiT initialisation transfers under the earlier segmentation protocol.
What the ablations show
Changing the targets and the mask
The principal ablations pre-train for 300 epochs, which the paper identifies as 37.5% of the main schedule. The authors evaluate the resulting encoders on ImageNet classification and ADE20K semantic segmentation. The shorter preparation gives them a shared setting for examining changes to the training task. They separately vary the target representation, how masked positions are selected, which positions contribute to the loss, and the length of pretraining.
The most direct test of the prediction target replaces the code classifier with regression on missing pixel values. The input still has holes, so the comparison examines what happens when an encoder has to recover the original low-level measurements instead of the tokenizer’s code. The pixel-regression variant gives weaker downstream results on both tasks. The authors also report that it falls below the from-scratch comparison on both tasks. Under this implementation, hiding part of an image and training on its exact pixel values is insufficient to obtain the transfer benefits of BEiT. The code targets carry a substantial part of the effective training signal.
A separate experiment changes the shape of what is missing. Sampling individual patch locations replaces the block procedure. The results favour blocks for ImageNet classification and ADE20K segmentation, with the larger benefit on segmentation. This is consistent with the argument that covering neighbouring positions raises the importance of context beyond the edge of the immediate patch. Segmentation is a particularly relevant test of the resulting features because the downstream system has to distinguish and maintain regions over space.
The authors also remove the learned targets and the blockwise scheme together. In the comparison among pixel-regression variants, the use of blocks is reported to matter even more. This is compatible with a local shortcut being especially attractive when success is defined by proximity to the original pixel values. A larger contiguous gap makes that shortcut less readily available. The combined comparison helps separate the effects of what the learner is asked to recover and what evidence the mask leaves within easy reach.
Another variant asks for codes at every grid position. The paper reports worse downstream results when visible locations are also included in the prediction objective. At those positions the encoder already receives the corresponding pixels. Their losses can therefore reward recovering the tokenizer’s answer from content already present in the input. One reading of the result is that adding such terms dilutes the emphasis on inferring withheld information. The experiment establishes the performance difference under the tested objectives, while the precise contribution of that mechanism remains a matter of interpretation.
The duration comparison finds better downstream results with longer pretraining. That result gives the shorter ablations an important context. They measure the value of design choices at a shared training duration, while the main run shows what the full procedure can attain with more updates. The outcome also suggests that the code vocabulary and the chosen masking scheme continue to offer useful training signal beyond the ablation schedule.
Substituting the tokenizer and adjusting the backbone
The appendix tests whether the publicly released DALL-E tokenizer is essential to the recipe. The authors train a reimplementation on ImageNet-1K without labels, using the same codebook scale, written as 8K in that comparison. They insert the replacement into the masked training procedure and follow the shorter ablation setup. One evaluation measures reconstruction with mean absolute error over normalised RGB values. This measures the average magnitude of the disagreement between reconstructed and original channel values. A separate evaluation measures top-1 accuracy after ImageNet-1K fine-tuning.
The authors report comparable results for the two tokenizers in reconstruction and in ImageNet classification. This is evidence that the recipe can transfer across these two ways of obtaining the code assignments at the tested vocabulary scale. The comparison also suggests that a tokenizer trained on the main image collection can provide effective targets. The reconstruction measurement and the transfer measurement still concern different outcomes. The experiment checks both of them for the tested tokenizers and leaves open how closely they would track one another across other vocabularies.
The architecture appendix studies LayerScale and relative position bias under a 300-epoch pretraining setup for base-size encoders. Relative position bias changes attention scores using the relative locations of the positions involved. LayerScale changes the scaling of residual branch outputs. The authors report that both modifications improve the ImageNet classification and ADE20K segmentation comparisons. The appendix uses UperNet for the segmentation ablation and reports single-scale mIoU, so its comparison is tied to that task layer.
The architecture changes are combined in the BEiT⁺ variant used in the larger supervised comparisons. The authors also report an empirical stability preference for the standard Transformer when scaling to billions of parameters. As a consequence, they omit LayerScale for extra-large encoders. The base-size ablation and the extra-large training observation provide evidence about different operating conditions. A configuration can adapt well to downstream tasks under one training regime while raising stability concerns under another.
Combining masked prediction with DINO
The multitask appendix trains BEiT’s objective together with DINO’s. The combined training improves ADE20K segmentation under the stated SETR-PUP procedure and gives comparable ImageNet classification results. The segmentation outcome is consistent with the objectives supplying complementary information. The classification comparison gives a more limited result for the same addition. Measuring both tasks shows where the extra objective makes a difference in the reported setup.
The paper also compares throughput for BEiT and the joint run at the same batch size. Throughput measures how quickly the pretraining system processes examples. DINO uses two copies of the Transformer parameters for self-distillation and processes multiple crops as part of its augmentation. The authors report a speed advantage for BEiT and describe it as more memory-efficient. They point out that this leaves room for a larger batch in practice, whereas the reported throughput comparison fixes batch size. This experiment concerns the expense of the training procedures associated with the objectives, alongside their downstream effects.
Testing what a linear head can read
A frozen linear probe leaves the encoder weights fixed and learns only a classifier. This asks whether a pooled representation already separates the classes sufficiently for a linear decision rule. It sets a more specific requirement than full fine-tuning, where the encoder can shift its features towards the class distinctions in the labelled dataset. The paper follows iGPT in pooling patch hidden states and checking intermediate layers as candidate sources for the probe.
The best reported layer is the 9-th for BEiT-B and the 14-th for BEiT-L. Probe training runs for 50 epochs with AdamW and a learning rate that starts at 4e-3 and follows a cosine decay schedule. The batch size is 1024 and weight decay is 1e-4. The image preparation follows DINO, using random resized crops and horizontal flips at training time and central crops for evaluation. The reported layer choice matters because it shows that the most favourable fixed readout can sit inside the stack. In the supervised fine-tuning procedure, by comparison, the last-layer features themselves are updated to serve the task.
The ImageNet-1K linear-probe comparison generally favours discriminative pretraining over the generative approaches. The authors attribute some of that difference to the preparation of a global image vector. DINO and MoCo v3 pre-train features for image-level aggregation, which helps a simple pooled readout. BEiT’s visual code loss acts at individual spatial positions. Full fine-tuning allows those representations to adapt, and the authors report that it closes the disadvantage visible in the frozen comparison.
Within the BEiT family, the paper reports a substantial improvement in linear-probe accuracy when moving from the 86M-parameter base encoder to the 304M-parameter large encoder. It also reports better probing performance than iGPT despite a lower parameter count. The fixed-feature results therefore show variation within reconstruction-oriented pretraining as well as a broad advantage for the discriminative approaches under this evaluation. Which property looks strongest depends on what the downstream training is allowed to change.
Looking at the shape of attention
For qualitative analysis, the authors use images from Microsoft COCO to avoid probing on images chosen from the pretraining collection. They pick a reference point in an image, take the patch corresponding to that point and use it as the query. The last layer’s query–key products give scores linking the reference patch to other positions. Plotting those scores on the grid shows where the attention head associates the reference location with the rest of the image.
The visualisations show cases where attention follows an object or coherent region and can distinguish its extent from nearby content. Selecting a different reference location can shift the region highlighted by the head. The observation gives a specific meaning to the claim that the encoder has acquired some spatial organisation before receiving region annotations. The associations are visible in the pretrained encoder itself. The authors note that similar behaviour had been observed with DINO, so the property appears under more than one kind of self-supervised objective.
The maps provide a different kind of evidence from ADE20K mIoU. A map is conditioned on the selected query and reflects associations in an attention head. A segmentation score measures the output of a task system trained to assign categories across the image. The maps make the learned spatial structure inspectable in particular examples. The supervised benchmark tests whether the encoder can be turned into a system with accurate category assignments across examples.
Limitations
Qualifications identified by the authors
The paper’s own comparison limits any claim of uniformly superior features. The authors find discriminative pretraining better suited to their ImageNet linear-probe protocol, where only a classifier can adapt. Their explanation gives weight to the global aggregation already trained by methods such as DINO. In practice, BEiT’s strongest comparisons involve applications that can afford to update the encoder. Frozen use has its own empirical results, and those results should guide claims about how accessible class information already is.
The authors also place further scaling among their future directions. The ImageNet base-to-large comparison provides evidence over the sizes tested, and the expanded appendix measures what can be achieved with a richer training pipeline. The suggestion that the method may prove especially useful at much larger sizes is an extrapolation. Their separate observation about stability at extra-large scale already indicates that choices found helpful in the base setting can behave differently as the encoder grows.
The conclusion identifies joint text and image pretraining with related objectives and shared architecture as another future project. The analogy with BERT motivates the vision objective, and the experiments show that a language-inspired training task can be reformulated for pictures. The report’s empirical scope is visual. It leaves open what training objectives, token spaces and shared components would be effective when language and images are learned together.
Boundaries of the evidence
The stages at which labels enter are central to interpreting the results. The main ImageNet-1K masked run omits category labels and relies on images and a reconstruction-trained tokenizer. Downstream classification and segmentation use labels, and the largest reported outcomes also include supervised intermediate adaptation. This supports a claim about making use of unlabelled images before supervised learning. The paper’s comparisons with large labelled collections address dependence on labels in particular training pipelines. They leave open a systematic estimate of performance as the amount of target supervision varies.
The learned categories are also best understood through their training objective. Good reconstruction gives an incentive to retain distinctions in appearance that the decoder needs. A downstream gain shows that predicting the resulting codes can prepare the encoder for supervised vision tasks. The paper does not assign human-readable meanings to all individual entries or measure which types of information the codebook preserves. A code can be useful because it captures appearance regularities even when a person would use several different descriptions for regions receiving that code.
Likewise, the pixel ablation is a comparison against the regression procedure the authors actually tested. It supports using the learned code target under these conditions. Other ways to predict pixel values could change the geometry of masking, the capacity of a decoder, or the details of the training loss. Their performance remains an independent experimental question. The findings distinguish between the implementations studied in the ablation and provide a reason to investigate which properties of a reconstruction task matter for transfer.
Several benchmark comparisons also mix changes in data, encoder scale and training recipe. The main ImageNet-1K comparisons keep more of those factors in common than the comparisons with iGPT and the JFT-pretrained Vision Transformer. The expanded BEiT results include architectural additions and additional supervised stages, and the large segmentation experiment changes the task layer. Those scores measure the capability of the corresponding complete systems. The shorter component experiments give the more direct evidence about masking shape, prediction targets and the positions scored by the loss.
The reported attention examples establish the presence of region-sensitive behaviour in selected views. A dataset-level claim about finding objects without annotation would require a procedure for turning those associations into regions and an evaluation against ground truth. The pictured maps also leave open whether the displayed attention patterns are responsible for the downstream advantage. Both observations can hold, namely that some heads organise space coherently and that supervised fine-tuning performs well, while the causal link between them remains to be demonstrated.
Finally, the timing evidence answers questions at different points in the pipeline. Pretraining on ImageNet-1K has a documented substantial cost. Fine-tuning can converge quickly once those weights exist, and the DINO comparison concerns throughput within pretraining. The total resources needed to obtain a particular downstream result depend on the prior training, later adaptation and whether the encoder serves multiple tasks. The paper gives evidence about individual stages and particular comparisons. It leaves a complete compute comparison across the reported training routes open.
What came after
Masking across images, video and documents
Masked Autoencoders Are Scalable Vision Learners takes up masked autoencoding as an approach to scalable vision learning. The overlap with BEiT is the use of incomplete images for training representations that can serve later tasks. For BEiT, the distinctive choice is to score a reconstruction-trained code at each hidden position. The later work’s stated focus brings scalability to the foreground and places BEiT’s particular approach within the broader design space of masked visual learning.
VideoMAE studies masked autoencoding for data-efficient self-supervised video pretraining. The move to video changes the input whose partial observation supplies the learning problem. BEiT’s patches are arranged within a single image. In video, the surrounding evidence has a temporal dimension as well as a spatial one. This makes the question of how to construct supervision from incomplete observations relevant to a different data structure and to the later paper’s concern with data efficiency.
LayoutLMv3 uses unified text and image masking for document pretraining. A document presents written content and a visual page, making it a setting in which the two families of masking can be considered together. In BEiT, a text pretraining idea motivates an image-only objective. LayoutLMv3’s stated approach studies masking on both forms of data in a single application. This connects directly to the research direction the BEiT authors outline when they propose bringing image and text pretraining closer together.
Other answers to the representation problem
Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture places prediction within a joint-embedding architecture for learning from images without labels. Its stated approach connects to the question of which representation should serve as the object of prediction. BEiT gives that role to discrete assignments from a separate tokenizer. A joint-embedding approach puts the representation space itself at the centre of the predictive architecture. The connection here is the use of prediction to learn visual features and the role played by the form of the answer.
DINOv2 studies robust features learned from visual data without supervision. BEiT had already used DINO to ask two questions about such features, one about which pretraining route transfers better under a given evaluation protocol and one about whether combining objectives helps. DINOv2 continues the broader inquiry into how to obtain visual features whose usefulness persists beyond pretraining. The relationship supported by the citation is that BEiT belongs to that research conversation, which includes both discriminative and masked prediction approaches.
VLMo approaches unified vision and language pretraining through a mixture of modality experts. It addresses the architectural side of bringing visual and linguistic learning together. BEiT establishes an image-specific pretraining task that borrows the principle of hiding and recovering tokens from text learning. VLMo frames unification as a problem that also concerns how a system handles different modalities through its architecture. That is a distinct way to develop the agenda BEiT leaves open in its conclusion.
FLAVA takes language and vision alignment as its subject. Alignment adds a question to the pretraining agenda. Once a system can learn useful features within a modality, there is also the question of how features derived from different modalities can be related. BEiT studies the within-image case in detail, using the visible image to infer targets derived from the complete image. FLAVA places visual representation learning within the wider problem of bringing linguistic and visual information into correspondence.
These citations support connections at the level of each work’s stated approach. The strongest continuities are the extension of masked learning to other visual inputs, the decision to combine text and image masking in documents, and the investigation of alternatives for predictive visual learning. What BEiT establishes within that wider line of research is a specific combination of choices and evaluations. A reconstruction-trained vocabulary can turn missing image content into a tractable classification problem, and the encoder that learns to solve it can be adapted successfully to both image-level and spatial recognition.
Cite
Cite as Hangbo Bao, Dong Li, Songhao Piao and Furu Wei. 2021. BEiT: BERT Pre-Training of Image Transformers. arXiv (Cornell University).
@misc{bao2021beit,
title = {{BEiT: BERT Pre-Training of Image Transformers}},
author = {Hangbo Bao, Dong Li, Songhao Piao and Furu Wei},
year = {2021},
doi = {10.48550/arxiv.2106.08254},
eprint = {2106.08254},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2106.08254}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bao-2021-beit-bert-pre-training-image/
References
- Yuki M. Asano, Christian Rupprecht, and Andrea Vedaldi. Self-labelling via simultaneous clustering and representation learning. In International Conference on Learning Representations (ICLR), 2020. OpenAlex ↗ · Scholar ↗
- Hangbo Bao, Li Dong, Furu Wei, Wenhui Wang, Nan Yang, Xiaodong Liu, Yu Wang, Jianfeng Gao, Songhao Piao, Ming Zhou, and Hsiao-Wuen Hon. UniLMv2: Pseudo-masked language models for unified language model pre-training. In Proceedings of the 37th International Conference on Machine Learning, ICML 2020, volume 119 of Proceedings of Machine Learning Research, pages 642–652. PMLR, 2020. our card
- Philip Bachman, R Devon Hjelm, and William Buchwalter. Learning representations by maximizing mutual information across views. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. OpenAlex ↗ · Scholar ↗
- Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. In Proceedings of the European Conference on Computer Vision (ECCV), pages 132–149, 2018. OpenAlex ↗ · Scholar ↗
- Xinlei Chen, Haoqi Fan, Ross Girshick, and Kaiming He. Improved baselines with momentum contrastive learning. preprint arXiv:2003.04297, 2020. OpenAlex ↗ · Scholar ↗
- Xinlei Chen and Kaiming He. Exploring simple siamese representation learning. preprint arXiv:2011.10566, 2020. OpenAlex ↗ · Scholar ↗
- Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. preprint arXiv:2002.05709, 2020. our card
- Mathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal, Piotr Bojanowski, and Armand Joulin. Unsupervised learning of visual features by contrasting cluster assignments. In Advances in Neural Information Processing Systems, volume 33, pages 9912–9924. Curran Associates, Inc., 2020. OpenAlex ↗ · Scholar ↗
- Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, and Ilya Sutskever. Generative pretraining from pixels. In Hal Daumé III and Aarti Singh, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 1691–1703. PMLR, 13–18 Jul 2020. OpenAlex ↗ · Scholar ↗
- Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. arXiv preprint arXiv:2104.14294, 2021. our card
- Xinlei Chen, Saining Xie, and Kaiming He. An empirical study of training self-supervised vision transformers. ArXiv, abs/2104.02057, 2021. OpenAlex ↗ · Scholar ↗
- Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. preprint arXiv:2010.11929, 2020. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 4171–4186. Association for Computational Linguistics, 2019. our card
- Jean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec, Pierre H Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Rémi Munos, and Michal Valko. Bootstrap your own latent: A new approach to self-supervised learning. In NeurIPS, 2020. our card
- Yaru Hao, Li Dong, Furu Wei, and Ke Xu. Self-attention attribution: Interpreting information interactions inside Transformer. arXiv preprint arXiv:2004.11207, 2020. OpenAlex ↗ · Scholar ↗
- R Devon Hjelm, Alex Fedorov, Samuel Lavoie-Marchildon, Karan Grewal, Phil Bachman, Adam Trischler, and Yoshua Bengio. Learning deep representations by mutual information estimation and maximization. In International Conference on Learning Representations, 2019. OpenAlex ↗ · Scholar ↗
- Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020. our card
- Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q. Weinberger. Deep networks with stochastic depth. In Bastian Leibe, Jiri Matas, Nicu Sebe, and Max Welling, editors, Computer Vision – ECCV 2016, pages 646–661, Cham, 2016. Springer International Publishing. our card
- Mandar Joshi, Danqi Chen, Yinhan Liu, Daniel S. Weld, Luke Zettlemoyer, and Omer Levy. SpanBERT: Improving pre-training by representing and predicting spans. Transactions of the Association for Computational Linguistics, 8:64–77, 2020. our card
- Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparameterization with gumbel-softmax. In 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. our card
- Nikos Komodakis and Spyros Gidaris. Unsupervised representation learning by predicting image rotations. In International Conference on Learning Representations (ICLR), 2018. OpenAlex ↗ · Scholar ↗
- A. Krizhevsky and G. Hinton. Learning multiple layers of features from tiny images. Master's thesis, Department of Computer Science, University of Toronto, 2009. OpenAlex ↗ · Scholar ↗
- Diederik P. Kingma and Max Welling. Auto-Encoding Variational Bayes. In 2nd International Conference on Learning Representations, ICLR 2014, 2014. our card
- Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. our card
- Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin Transformer: Hierarchical vision transformer using shifted windows. arXiv preprint arXiv:2103.14030, 2021. our card
- Tsung-Yi Lin, Michael Maire, Serge Belongie, James Hays, Pietro Perona, Deva Ramanan, Piotr Dollár, and C Lawrence Zitnick. Microsoft coco: Common objects in context. In European conference on computer vision, pages 740–755. Springer, 2014. our card
- Yahui Liu, Enver Sangineto, Wei Bi, Nicu Sebe, Bruno Lepri, and Marco De Nadai. Efficient training of visual transformers with small datasets. In Thirty-Fifth Conference on Neural Information Processing Systems, 2021. OpenAlex ↗ · Scholar ↗
- Junnan Li, Pan Zhou, Caiming Xiong, and Steven Hoi. Prototypical contrastive learning of unsupervised representations. In International Conference on Learning Representations, 2021. OpenAlex ↗ · Scholar ↗
- Chris J. Maddison, Andriy Mnih, and Yee Whye Teh. The Concrete Distribution: A Continuous Relaxation of Discrete Random Variables. In International Conference on Learning Representations, 2017. our card
- Mehdi Noroozi and Paolo Favaro. Unsupervised learning of visual representations by solving jigsaw puzzles. In European conference on computer vision, pages 69–84. Springer, 2016. OpenAlex ↗ · Scholar ↗
- Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. preprint arXiv:1807.03748, 2018. our card
- Yada Pruksachatkun, Jason Phang, Haokun Liu, Phu Mon Htut, Xiaoyi Zhang, Richard Yuanzhe Pang, Clara Vania, Katharina Kann, and Samuel R. Bowman. Intermediate-task transfer learning with pretrained language models: When and why does it work? In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics, July 2020. our card
- Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. IJCV, 2015. our card
- A. Ramesh, Mikhail Pavlov, Gabriel Goh, Scott Gray, Chelsea Voss, Alec Radford, Mark Chen, and Ilya Sutskever. Zero-shot text-to-image generation. ArXiv, abs/2102.12092, 2021. our card
- Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. J. Mach. Learn. Res., 21:140:1–140:67, 2020. our card
- Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with VQ-VAE-2. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. our card
- Rico Sennrich, Barry Haddow, and Alexandra Birch. Neural machine translation of rare words with subword units. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1715–1725, Berlin, Germany, August 2016. Association for Computational Linguistics. our card
- Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. preprint arXiv:2012.12877, 2020. our card
- Hugo Touvron, Matthieu Cord, Alexandre Sablayrolles, Gabriel Synnaeve, and Hervé Jégou. Going deeper with image transformers. arXiv preprint arXiv:2103.17239, 2021. OpenAlex ↗ · Scholar ↗
- Trieu H Trinh, Minh-Thang Luong, and Quoc V Le. Selfie: Self-supervised pretraining for image embedding. arXiv preprint arXiv:1906.02940, 2019. OpenAlex ↗ · Scholar ↗
- Aaron van den Oord, Oriol Vinyals, and Koray Kavukcuoglu. Neural discrete representation learning. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 6309–6318, Red Hook, NY, USA, 2017. Curran Associates Inc. OpenAlex ↗ · Scholar ↗
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Isabelle Guyon, Ulrike von Luxburg, Samy Bengio, Hanna M. Wallach, Rob Fergus, S. V. N. Vishwanathan, and Roman Garnett, editors, Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 5998–6008, 2017. our card
- Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non-parametric instance discrimination. In CVPR, 2018. OpenAlex ↗ · Scholar ↗
- Zhenda Xie, Yutong Lin, Zhuliang Yao, Zheng Zhang, Qi Dai, Yue Cao, and Han Hu. Self-supervised learning with swin transformers. arXiv preprint arXiv:2105.04553, 2021. OpenAlex ↗ · Scholar ↗
- Tete Xiao, Yingcheng Liu, Bolei Zhou, Yuning Jiang, and Jian Sun. Unified perceptual parsing for scene understanding. In ECCV, 2018. OpenAlex ↗ · Scholar ↗
- Richard Zhang, Phillip Isola, and Alexei A Efros. Colorful image colorization. In ECCV, 2016. OpenAlex ↗ · Scholar ↗
- Xiaohua Zhai, Alexander Kolesnikov, Neil Houlsby, and Lucas Beyer. Scaling vision transformers. arXiv preprint arXiv:2106.04560, 2021. OpenAlex ↗ · Scholar ↗
- Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip H. S. Torr, and Li Zhang. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. CoRR, abs/2012.15840, 2020. OpenAlex ↗ · Scholar ↗
- Bolei Zhou, Hang Zhao, Xavier Puig, Tete Xiao, Sanja Fidler, Adela Barriuso, and Antonio Torralba. Semantic understanding of scenes through the ADE20K dataset. Int. J. Comput. Vis., 127(3):302–321, 2019. OpenAlex ↗ · Scholar ↗