Elamur Research

How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers

Paper · 2021 · Andreas Steiner, Alexander Kolesnikov, Xiaohua Zhai et al.

Summary

A Vision Transformer can learn to classify images from a large collection of examples, but acquiring more examples is only one way to improve its training. The authors ask when a smaller collection can do the same job if the images are varied during training, the network is regularized, and the optimizer is given more time. They also ask whether two training recipes that look equally good on a familiar benchmark produce equally useful starting points for other tasks. These questions matter because a researcher who trains a vision system from the beginning, a practitioner who adapts an existing one, and an engineer who runs the finished system repeatedly face different costs. The study focuses on image classifiers built around the Transformer and attention.

The authors train variants of the Vision Transformer, or ViT, in a common experimental setup. They vary the source dataset, the training duration, the architecture, and a set of image transformations and network regularizers that they call AugReg. On ImageNet-1k, well-chosen settings bring accuracy close to that of corresponding ViTs pretrained on plain ImageNet-21k, which the paper describes as having 10x as much training data. With a longer schedule and suitable AugReg, ViTs trained on public ImageNet-21k can also match or exceed published results for corresponding ViTs pretrained on private JFT-300M without AugReg. The gains require computation. On ImageNet-21k, strong interventions often reduce validation accuracy under the short schedule, and altering the training images is more frequently helpful than adding dropout and stochastic depth.

The transfer experiments change the comparison. At roughly matched pretraining compute, ImageNet-21k gives stronger results than ImageNet-1k across the natural, specialized, and structured groups of the 19-task VTAB benchmark. On Pets37 and Resisc45, reusing an ImageNet-21k checkpoint achieves better results than the authors’ extensive attempts to train from scratch. Starting with the checkpoint that had the best pretraining validation score generally gives results comparable to adapting every eligible checkpoint and choosing afterward. Validation must still be independent of the earlier training. When adapting from ImageNet-21k to ImageNet-1k, a holdout drawn from the smaller dataset’s training images can contain examples that the checkpoint has already seen. The authors use ImageNetV2 to select settings for that transfer. Adapting a pretrained checkpoint in this way is called fine-tuning.

Deep dive: How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers

How Vision Transformers trade off training data, image augmentation, regularization, and compute, and which checkpoints transfer best. · about 34 minutes to read

The problem and its context

What a vision architecture assumes about an image

Training a classifier means learning from particular images and making reliable predictions on images it has never seen. A classifier can perform well on the examples it studied while picking up patterns that fail on new examples. That failure is overfitting. The danger depends on the range of images available, the length of training, and the architecture’s inductive bias, meaning the assumptions built into how it learns from the input.

Convolutional neural networks bring a useful assumption to image recognition. A convolution applies the same operation at different positions, so a feature that appears in one location can produce a corresponding response when it shifts to another. The paper describes this property as translational equivariance. A standard ViT divides the image into patches and processes their representations with attention. Its architecture provides less of the convolutional assumption about shifted image content. This difference makes it important to ask how much the ViT must learn from examples, and how much of that learning can be supported by changing the presentation of those examples. The authors place this question in the history of ImageNet classification with deep convolutional networks.

The original Vision Transformer study established large-scale supervised pretraining as one way to make the architecture competitive. Pretraining is the first stage of learning, in which the network acquires parameters on a source task. Those parameters can then initialize training for a different task or be reused to compute features. An organization might train a general-purpose checkpoint once and adapt it many times. A later user can begin with those learned parameters even when the original training images are unavailable. The question for that user is how useful the starting point will be on the images and labels that matter to them.

Another line of work addressed the smaller-data setting more directly. The authors describe DeiT as tackling overfitting when training ViTs from scratch on ImageNet-1k. That work used strong augmentation and regularization to make more effective use of those images. Augmentation changes what the classifier sees during training. Regularization, in the narrower sense used in this study’s comparisons, changes the conditions under which the network computes its predictions. Both can reduce reliance on patterns that happen to fit the training examples. A recipe designed for the smaller collection leaves open what will happen on a much larger collection or under a shorter training schedule.

The paper also situates its study beside earlier investigations of transfer in convolutional networks. BiT had demonstrated the value of ImageNet-21k as a pretraining source. Subsequent architecture studies used that collection in some experiments, and work focused on ImageNet-21k argued for its broader use. The authors identify a gap between establishing the usefulness of the source dataset and systematically testing how augmentation and regularization interact with it. They also cite prior work that asks how well accuracy on the source benchmark carries over to other tasks. Do Better ImageNet Models Transfer Better?

The choices that change together

It is easy to compare two reported accuracies and attribute their difference to the most visible change, such as a larger training set. The recipes behind those accuracies may also differ in how they crop or transform the images, how the learning rate changes over time, how they divide the data, or how they prepare inputs at evaluation. Even two implementations of a named augmentation procedure can behave differently. When several such choices change together, the reader can compare the finished systems but has less evidence for deciding which choice to reproduce in a new experiment.

Data size and training duration are particularly easy to confuse. An epoch is a pass through a training collection. With the architecture and batch size fixed, a pass through a larger collection involves more training batches. Keeping the number of epochs fixed therefore tends to give the larger collection more computation as well as more examples. Keeping the approximate computation fixed requires fewer passes through the larger collection. These comparisons address different questions. One concerns the consequence of seeing more distinct images within a given budget. The other concerns what the larger collection can support when there is also time to work through it repeatedly.

Capacity introduces a related complication. A ViT with a broader or deeper network can have a different capacity to fit the source task. Because it works with a sequence of image patches, its input also depends on how large those patches are. A change in patch size changes how many positions the attention mechanism processes at the same image resolution. The size of a parameter file alone therefore gives an incomplete account of what an architecture sees or how quickly it runs. The authors treat the architecture and patch setting as choices to evaluate alongside the training recipe.

There were other ways to make image Transformers easier to train. The paper describes approaches that combine convolution and attention, introduce a hierarchy of image representations, or start the network in a state that behaves more like a convolutional system. It also describes self-supervised pretraining, where the training objective can be constructed from images without requiring their manually supplied class labels. Examples include reconstructing perturbed patches and learning visual representations through a self-supervised procedure influenced by work on bootstrapping. These approaches change the architecture or the learning objective. The study concentrates on what can be learned by holding the family of architectures and supervised objective relatively steady. Swin Transformer, CvT, and Emerging Properties in Self-Supervised Vision Transformers

Whose compute budget matters

The paper distinguishes the cost of producing a checkpoint, the cost of finding and adapting one, and the cost of running the finished classifier. Pretraining can dominate if a research group repeatedly trains the entire system to test architectural changes. For a practitioner who can download an existing checkpoint, the immediate bill consists of implementing and evaluating adaptation runs. That includes time spent trying promising settings and discovering that some work poorly. A useful comparison from this perspective asks what a practitioner is likely to find after a modest search, as well as what the best run achieves.

Deployment gives the same decisions a third interpretation. A classifier that is invoked often can consume substantial computation after training is complete. In that setting, similar accuracy at higher throughput can matter even if the faster classifier was more expensive to pretrain. Conversely, paying for a large pretraining run reveals little about the throughput of the resulting architecture. By keeping these costs explicit, the study can ask whether a training recipe saves data, whether an adaptation strategy saves experiments, and whether a particular patch configuration saves inference time.

The method, step by step

Follow a checkpoint from pretraining to evaluation

The main experiment starts with a ViT architecture and an image collection with class labels. The image is cropped and can be flipped before it reaches the network. Depending on the recipe, further transformations may change the image seen by the classifier. The network learns to predict the source labels while the chosen regularizers are active. The authors repeat the process across architectures, source datasets, training schedules, and AugReg settings. Holding the training and evaluation environment steady makes the runs comparable even as those choices vary.

Pretraining produces a checkpoint, a stored set of learned parameters that the authors can evaluate on its source task or use to initialize training on a target task. For transfer, they vary a small set of adaptation settings, use a validation split to select among them, and score the chosen run on the designated final split. A separate experiment starts from scratch on a target dataset. In that branch, the authors search for a suitable recipe without reusing parameters learned on ImageNet. The comparison follows the practitioner through the work that has to be repeated for a new task.

From a pretraining recipe to target-task evaluation

The steps in order.

From a pretraining recipe to target-task evaluationStep 1: Choose the architecture, dataset, and training schedule1. Choose the architecture, dataset, and training scheduleStep 2: Crop and flip the source images2. Crop and flip the source imagesStep 3: Apply the selected augmentation and regularization3. Apply the selected augmentation and regularizationStep 4: Pretrain the classifier on source labels4. Pretrain the classifier on source labelsStep 5: Rank checkpoints by source validation accuracy5. Rank checkpoints by source validation accuracyStep 6: Fine-tune selected checkpoints on target images6. Fine-tune selected checkpoints on target imagesStep 7: Select adaptation settings and score the final split7. Select adaptation settings and score the final split

The authors use a single JAX and Flax codebase for pretraining and adaptation on TPUs. The training implementation they make available for reproduction is big_vision. They load datasets through TensorFlow Datasets, which keeps the dataset access method consistent across the experiments. For inference measurements they use PyTorch through timm on V100 GPUs with 16G of memory. The separate inference setup supplies the timing comparison used to discuss deployment. The paper also reports releasing more than 50,000 trained ViT checkpoints, giving users access to many of the recipe choices behind the study.

Build a classifier from image patches

A ViT turns an image into a sequence of patch representations. The patch size specifies the span of an input region represented by one entry in that sequence. Attention lets representations at different positions contribute to one another. Finally a classification head turns the resulting features into scores for the source classes. The head is the part that attaches a prediction task to the shared visual features. A checkpoint can supply those features as a starting point even when the target labels differ from the source labels.

The study uses the ViT-Ti, ViT-S, ViT-B, and ViT-L configurations, spanning Tiny, Small, Base, and Large. All of them are tested at patch size 16. The Small and Base configurations are also tested at patch size 32. A name such as ViT-B/32 identifies a Base configuration with patch size 32. At a fixed input resolution, the larger patch setting produces a shorter sequence, changing the amount of work performed by attention. Comparing patch settings therefore tests a different way of changing inference cost from reducing the size of the network itself.

The authors also control a detail of the classification head. The original ViT has a hidden layer in its head. For ImageNet-1k pretraining, the study includes versions with and without that layer. For ImageNet-21k, it uses the head without the hidden layer. The authors report that the extra layer brought no accuracy improvement in their experience and could make optimization unstable. This is a deliberate part of the experimental recipe. In particular, the absence of the hidden layer on ImageNet-21k does not mean every head variant was crossed with every pretraining condition.

For a hybrid architecture, a residual convolutional backbone processes the image before attention does. The spatial outputs of this backbone supply the initial patch representations. The stem starts with a convolution, then uses batch normalization, ReLU, and max pooling. Batch normalization rescales activations using batch statistics, ReLU is the activation function in the stem, and max pooling reduces spatial dimensions by taking local maxima. The authors vary how many bottleneck blocks follow the stem. The convolutional component draws on Deep Residual Learning for Image Recognition.

7 × 7

Each 7 gives the extent of the stem’s convolutional filter along one image axis. The multiplication sign joins the height and width of that filter. These are dimensions of the convolutional kernel, separate from the ViT patch size that appears in the hybrid’s name.

Rn+{Ti,S,L}/p

R identifies the residual convolutional component. The variable n counts convolutions, and the plus sign indicates that the convolutional component feeds a ViT. The braces collect the Transformer variants in this notation, Ti for Tiny, S for Small, and L for Large. The commas separate those alternatives. The slash introduces p, the effective patch size in the original image. In the authors’ R+Ti/16 example, the stem reduces the spatial dimensions by a factor of two. A patch of size 8 on that reduced representation then covers an effective size of 16 at the input. The distinction matters when comparing a hybrid with a plain ViT, because their patch sequences originate at different points in the image-processing pipeline.

Vary what the network sees and how it trains

AugReg is the authors’ umbrella term for the interventions they sweep. It includes data augmentation, which constructs alternative training inputs, and regularization inside the network. An augmented example is derived from examples already available to the experiment. The paper’s comparison with larger datasets asks how much this kind of variation can achieve when the collection of original photographs stays fixed. The comparison does not require the transformations to reproduce the visual content or categories present in the larger collection.

The augmentation grid uses RandAugment and Mixup. RandAugment varies the appearance of the input under a policy controlled by how many augmentation operations it applies and their magnitude. The authors use the original TensorFlow implementation and note that implementations in other libraries, including timm, may differ. Mixup combines training examples and their label targets, so the desired prediction reflects the components of the mixed input. The authors vary how strongly Mixup is applied through its parameter α. They use the following order to write each combined recipe. RandAugment and mixup

(l, m, α)

The parentheses group the settings and the commas indicate their order. The symbol l is the number of RandAugment layers, m is their magnitude setting, and α controls Mixup. A value of 0 for α disables Mixup. The notation specifies what the authors vary in the experiment. It does not express an equation relating augmentation strength to accuracy.

There are 7 augmentation recipes in the main sweep. The authors’ none setting uses l of 0, m of 0, and α of 0. The light1 setting uses l of 2 with m and α both at 0. The light2 setting also uses l of 2, with m of 10 and α of 0.2. Distinguishing these light settings is important when reading the comparisons. The name light1 identifies a configured RandAugment policy even though its magnitude setting is 0, while the none setting also sets the number of layers to 0.

The medium1 recipe uses l of 2, m of 15, and α of 0.2. Medium2 keeps the RandAugment settings and raises α to 0.5. Strong1 uses l of 2, m of 20, and α of 0.5. Strong2 keeps those RandAugment settings and uses α of 0.8. Consecutive recipes sometimes vary just one of the two techniques and sometimes vary both. Consequently, the grid provides comparisons at several intensities and a few specific one-setting contrasts. It leaves many combinations of RandAugment and Mixup outside the experiment.

The network regularizers are dropout and stochastic depth. Dropout suppresses some intermediate activations during training. Stochastic depth sometimes drops layers, and in this experiment the probability of dropping a layer increases linearly with depth. One setting disables both mechanisms. The other uses dropout with probability 0.1 and a maximum drop probability of 0.1 for stochastic depth. The maximum is the setting for the end of the depth schedule. Earlier layers have smaller drop probabilities. The main comparison treats the two regularizers as a package, which makes it possible to test that package repeatedly across the augmentation grid. Deep Networks with Stochastic Depth

Weight decay is a separate choice in the grid. It shrinks weights during training and is implemented here as a decoupled update, so the weight shrinkage is applied separately from the optimizer’s gradient-based update. The authors try coefficients of 0.1 and 0.03 because the amount of weight decay that works well can depend on the other interventions. The resulting 28 configurations come from crossing the augmentation recipes with both choices for the paired regularizers and both values of weight decay. When a comparison is described as having no regularization, the immediate meaning is that dropout and stochastic depth are off. Weight decay is still a separate dimension of the search. Decoupled Weight Decay Regularization

d = η × w

Here d is the effective weight-decay multiplier for the step, η is the current learning rate, and w is the chosen weight-decay coefficient. The equal sign defines d, and the multiplication sign expresses the scaling described by the authors. The pretraining learning rate peaks at 0.001, so the multiplier changes with the learning-rate schedule. This is the relationship for the main pretraining grid. In the from-scratch appendix, the authors give the weight-decay search values in a different convention and relate the conventions through the base learning rate. Reading a value requires knowing which sweep it belongs to.

Train with comparable schedules

For pretraining, the authors use Adam, an optimizer that estimates how to scale parameter updates using information from gradients observed during training. Its two decay settings are written as follows. Adam

β₁ = 0.9

The symbol β₁ names the decay factor for Adam’s running first-moment estimate of the gradient. The subscript identifies the first estimate, and the equal sign assigns its value in the pretraining runs.

β₂ = 0.999

The symbol β₂ names the decay factor for Adam’s running second-moment estimate. The subscript identifies the second estimate, and the equal sign assigns its value. Together these settings control how Adam carries information from earlier gradients into later training steps.

A pretraining batch contains 4096 images. The learning rate rises linearly during a warmup of 10k steps and follows a cosine schedule. A warmup begins updates at a smaller scale before the optimizer reaches its peak learning rate. The authors also clip gradients at a global norm of 1. Global clipping puts a bound on the size of the gradient considered as a whole, limiting very large updates. The basic image pipeline includes Inception-style cropping and random horizontal flipping. Thus a run described as having no extra augmentation still sees the variation introduced by the basic image preprocessing.

Pretraining on ImageNet-1k lasts 300 epochs. Pretraining on ImageNet-21k is tested at 30 and 300 epochs. The 30-epoch schedule is central to the design. Running fewer passes on the larger dataset lets the authors compare it with ImageNet-1k under approximately the same total amount of pretraining computation. The longer run on ImageNet-21k gives the larger collection more time under the same general setup. With these schedules the authors can ask both what the change in source data achieves at an approximately fixed budget and what happens when they also increase the budget.

The main fine-tuning setup uses stochastic gradient descent, or SGD, with momentum of 0.9. Momentum carries information about previous updates forward, and the implementation stores its internal state in bfloat16. The batch size is 512, and the global gradient norm cap is again 1. The learning rate warms up linearly and decays on a cosine schedule. In the main transfer setup, the authors describe sweeping 2-3 learning rates and 1-2 training durations according to the dataset. They test fine-tuning at resolution 224 and at the higher resolution 384. Input resolution and patch size are separate settings. The former changes the size of the image presented to the network and the latter determines how that input is divided for attention.

The full VTAB comparison uses an explicitly stated set of fine-tuning alternatives. The learning rates are 0.001, 0.003, 0.01, and 0.03. The training durations are 500 or 2500 steps. The resulting 8 settings are evaluated using the target validation split, which decides which run supplies a reported result. The authors use the same fine-tuning sweep across the pretrained checkpoints in that comparison. As a consequence, source checkpoints are tested with the same opportunity to adjust the learning rate and duration on each target task.

Training from scratch starts with untrained parameters and has to learn visual features as well as the target task. The authors give it a wider recipe search than ordinary checkpoint adaptation. They vary training duration, learning rate, weight decay, the paired regularizers, and augmentation for ViT-B/32 and ViT-B/16 on Pets37 and Resisc45. The ranges differ by dataset and patch setting. For instance, the ViT-B/32 Pets37 grid runs from an epoch setting of 1k up to 300k. The ViT-B/32 Resisc45 grid includes schedules from 75 to 25k epochs. These are tested training budgets. The longest schedule in a grid does not necessarily provide that grid’s best accuracy.

The from-scratch search tests paired dropout and maximum stochastic depth probabilities of 0.0, 0.1, and 0.2. Its augmentation choices include stronger variants with 4 RandAugment layers. Extending the search in this way addresses the possibility that a pretrained checkpoint looks good against a weak scratch recipe simply because the scratch run needed a different schedule or stronger interventions. It also produces a spread of results over recipes. That spread matters to the authors because choosing and evaluating a setting is itself part of the practitioner’s cost.

Experiments and results

Image sources, target tasks, and the meaning of accuracy

The main pretraining sources are ImageNet-1k and ImageNet-21k. In its description of the datasets, the paper puts ImageNet-1k at about 1.3 million training images and 1000 object categories. It describes ImageNet-21k as containing approximately 14 million images and about 21,000 categories. In the matched-compute comparison it uses the figures 1.3M and 13M to describe the scale of the two training sources. ImageNet-1k is contained within ImageNet-21k. That relationship is useful for understanding what the larger source offers and becomes essential when deciding which images are safe to use for checkpoint selection. ImageNet Large Scale Visual Recognition Challenge

To control overlap with final downstream evaluation, the authors deduplicate ImageNet-21k against the downstream test sets. Their focused transfer panel includes CIFAR-100 and Oxford IIIT Pets, called Pets37, for natural image classification. Resisc45 represents specialized imagery, and Kitti-distance represents a task with a geometric component. These datasets come from the Visual Task Adaptation Benchmark, or VTAB. Some analyses use the full benchmark of 19 tasks. Its natural, specialized, and structured groups let the authors examine whether a source-data advantage appears on different types of visual problems.

The main metric is top-1 classification accuracy. A prediction counts as correct when the class receiving the highest score is the labeled class for the example. The name of the metric is shared across datasets, but each score measures performance on its own set of images and labels. For example, a source-validation score on ImageNet-21k and a downstream test score on Pets37 answer different questions. The former measures how well the source training task has been learned on its validation images. The latter measures what can be achieved on the target task after adaptation.

For most downstream datasets, the authors choose fine-tuning settings on validation data and report accuracy on the test split. ImageNet-1k has a naming complication. The official validation set supplies the reported final result, so the authors hold out 1% of the training set as a smaller selection split called minival for the applicable runs. They reserve 2% of CIFAR-100’s training split and 10% of Pets37’s training split for closely related selection purposes. On Resisc45 they use 60% of the training split for fitting, 20% for validation, and 20% for test metrics. Kitti-distance provides official validation and test splits. The special case of adapting ImageNet-21k checkpoints to ImageNet-1k calls for an independent selection set, discussed below.

How much data can a stronger recipe replace?

The first comparison places the best ImageNet-1k AugReg runs beside corresponding ViTs pretrained on plain ImageNet-21k. In this comparison, the larger source is described as 10x the size of the smaller one. The strongest recipes on ImageNet-1k bring accuracy to approximately the same level as using the larger source without the extra interventions. The matched architectures give this result a specific meaning. It shows how much an improved recipe can recover within the experiment, given a particular ViT family and a particular larger-data baseline. It says little by itself about how the same checkpoint will fare on a different target.

The comparison against JFT-300M asks how far the public dataset can go. The authors use longer training and selected AugReg settings on ImageNet-21k, then compare with published results for corresponding architectures pretrained on plain JFT-300M. They describe JFT-300M as having 25x more images in this comparison. The best public-data runs match or surpass the published private-data results for the corresponding ViTs in the paper’s comparison. The JFT-300M figures come from the original ViT work. This baseline therefore differs from the authors’ within-study experiments, in which the alternative ImageNet runs come from their unified pipeline. Vision Transformer

The compute condition is fundamental to both the claim and its practical meaning. Longer training consumes resources even if the original image collection remains the same size. The authors characterize the pretraining compute needed for similar accuracy as roughly comparable whether the route uses more data or better AugReg. For someone with access to public images and sufficient training compute, the result shows a way to reach a published accuracy range previously obtained with a much larger private dataset. A practitioner adapting a released checkpoint benefits from the recipe through access to its parameters and avoids repeating the pretraining runs.

The ImageNet transfer evaluation includes both a score for the selected ImageNet-1k checkpoint before adaptation and scores after fine-tuning the selected source checkpoints. The relevant groups are ImageNet-1k pretrained for 300 epochs and ImageNet-21k pretrained for 30 or 300 epochs. The authors choose representative checkpoints using their source validation scores. Their ImageNetV2 selection comparison also tests which candidates look strongest under independent validation. Keeping these routes distinct matters when reading the ImageNet-1k results. A score from direct source training and a score after adaptation to the same label space reveal different parts of the procedure, even though they are ultimately judged on the same official validation set.

Which source produces more transferable features?

The comparison on VTAB gives approximately the same pretraining compute to two source-data choices. The ImageNet-1k checkpoint receives 300 epochs, while the ImageNet-21k checkpoint receives 30 epochs. The longer schedule on the small source repeats examples more often. The larger source exposes the network to more distinct images within approximately the same budget. The chart shows the training data each setting draws on. The downstream accuracy result concerns the transfer of the resulting checkpoints.

Pretraining image counts for the matched-compute comparison on VTAB

The larger training source gives higher downstream accuracy across the task groups.

Pretraining image counts for the matched-compute comparison on VTABImageNet-1k, 300 epochs: 1.3ImageNet-1k, 300 epochs1.3ImageNet-21k, 30 epochs (this paper): 13ImageNet-21k, 30 epochs (this paper)13
The numbers
System or settingmillion training images
ImageNet-1k, 300 epochs1.3
ImageNet-21k, 30 epochs (this paper)13

ImageNet-21k pretraining delivers higher transfer accuracy across VTAB’s natural, specialized, and structured groups. The separation is clearer on those groups than on the ImageNet-1k validation results. This is consequential for checkpoint selection. If the only evaluation is on ImageNet-1k, two pretraining choices can look close even when one is consistently more useful across unfamiliar tasks. The full benchmark makes the diversity of the transfer evaluation part of the evidence. It allows the reader to see that the larger source’s advantage extends beyond recognition targets resembling ImageNet classes.

The longer ImageNet-21k schedule improves transfer further. It runs for 300 epochs, described by the authors as a 10x longer schedule than the short one on the same source. On a task such as flower recognition, which was already close to being solved, the absolute improvement is small. On the other tasks the authors describe the gains over the short schedule as substantial. They show the VTAB results in relation to each architecture’s inference time per step. That presentation helps distinguish the question of better pretraining for a given architecture from the decision to use a slower architecture with different capacity.

The upstream and downstream comparisons therefore support two different interpretations of data and augmentation. Suitable augmentation can bring one checkpoint close to another on a selected accuracy benchmark. Transfer across the VTAB categories still favors the source with more data under the matched-compute schedules. In this experiment, repeating and transforming a smaller set offers a way to improve a specific classifier. Broader image coverage is especially valuable when the eventual mix of target tasks is diverse.

Adapt a checkpoint or search from scratch

The scratch comparison centers on datasets of practical size and two Base architectures. Pets37 contains about 3000 training images and is relatively close to the imagery represented by ImageNet-1k. The authors describe Resisc45 at about 30,000 training images in the comparison. It contains satellite images, a substantially different visual domain from the two ImageNet sources. The contrast makes the test more informative than using two collections drawn from the same kind of natural imagery. If the benefit were confined to a target that looked very much like pretraining, Resisc45 would be a less favorable case for checkpoint reuse.

On Pets37, the extended scratch search falls well short of the test accuracy obtained from the pretrained checkpoints. The broad range of training durations and augmentation conditions helps show that the gap survives more than a cursory choice of settings. The paper displays this comparison in test error, where a lower value means that fewer examples are classified incorrectly. With pretraining already paid for, adapting the released checkpoint is both cheaper from the practitioner’s perspective and more accurate in the comparison.

On Resisc45, starting from scratch gets closer. The authors report that a heavy scratch search spending two orders of magnitude more compute can approach the performance of the transferred checkpoints, while still falling short. The result matters because the imagery differs substantially from the source domain. It demonstrates a transfer benefit in a specific specialized setting. The gap’s size and the strength of the scratch alternatives also differ from Pets37, which is a reason to read the two datasets individually as well as looking at their common direction.

The authors also examine what a user could expect when choosing settings with a limited budget. They simulate random search from the observed recipes. The figure shows the median outcome and a shaded region covering 90% of outcomes from 1000 random samples. At a given budget, scratch results can vary widely, reflecting sensitivity to the recipes that happen to be tried. The recommended checkpoints give useful results with few attempts in the authors’ data. In the same experiment, applying additional AugReg during transfer offers no benefit. That observation concerns the tested adaptation runs and sits alongside the much larger role of AugReg during pretraining and scratch training.

Measure deployment speed directly

The inference experiment relates accuracy to throughput. The authors time classifiers on an NVIDIA V100 and vary batch size to find each one’s best throughput in that setup. On the ImageNet-1k transfer comparison, some classifiers using Tiny variants are roughly as fast as larger configurations with patch size 32. The larger-patch configurations achieve better accuracy in those comparisons. This is useful because there are two plausible ways to seek speed within this family. One reduces capacity in the network. The other reduces the length of the input sequence by using larger patches.

These are measured operating points on the chosen hardware, with best-throughput batching. The reason the comparison is informative is that similar throughput is established by timing. The accuracy comparison can then answer what each architecture achieves at that measured speed. Parameter count would miss variation in the number of patch positions processed at a fixed resolution, which is one reason the authors treat speed and accuracy as separate measurements.

What the ablations show

Why the same augmentation can help or hurt

The main AugReg analysis compares each recipe with a reference run within an architecture and pretraining condition. The reference uses the basic preprocessing and leaves the extra image augmentation, dropout, and stochastic depth off. The heatmap expresses how each recipe changes upstream validation accuracy relative to that reference. For ImageNet-1k, the upstream comparison uses minival. The cells answer how much a recipe helps in its own setting. Comparing cell colors across datasets does not turn those cells into a common measure of absolute source accuracy.

On ImageNet-1k, the tested AugReg settings broadly improve on the reference. On ImageNet-21k with the 30-epoch schedule, most of the tested interventions reduce upstream accuracy, with the largest ViTs providing the main exceptions. With ImageNet-21k trained for 300 epochs, more configurations benefit, although the smaller ones can still lose accuracy. Reading the short and long schedules together shows that the direction of the effect depends on the training time available as well as on the source collection. Reading across architectures shows that a single recipe does not reliably produce the same direction of change throughout the family.

One reading of that pattern is that the extra difficulty created by augmentation and regularization can become a poor fit for a run with little time or capacity to absorb it. A short schedule on the larger collection already exposes the network to a broad range of examples. Strengthening the interventions under that schedule does not guarantee additional generalization and can lower the measured upstream score. The experiments establish this interaction in the measured accuracies. They do not directly trace which visual features an individual setting causes the network to learn or ignore.

Compare augmentation with the paired regularizers

The authors use two views to assess adding dropout and stochastic depth. In one, they take the best result with the pair enabled and compare it with the best result with the pair disabled for the relevant architecture and source condition. Both sides can take advantage of the augmentation grid. This comparison answers whether a user who has the opportunity to choose an augmentation policy gains anything by including the paired regularizers in the recipe. On ImageNet-21k, the best regularized setting usually fares worse than the best setting without the pair.

The appendix also compares the pair at specific augmentation choices. This makes it easier to see whether the outcome depends on which policy supplies the training examples. The regularizers help chiefly for larger ViTs given long training and tend to hurt across the smaller configurations on ImageNet-21k. The paper reports earlier experiments in which combining the two techniques at a peak drop setting of 0.1 worked best among their tested choices. In the main grid the intervention is still joint. A gain or loss assigned to that pair cannot be attributed specifically to dropout or specifically to stochastic depth.

Across the tested grid, adding image augmentation produces beneficial settings more often than adding the network regularizers. The policy grid gives grounds for that empirical comparison. Within it, some neighboring choices change Mixup while holding RandAugment fixed, and others change RandAugment while holding Mixup fixed. These local comparisons help locate successful recipes. The overall result is about the stronger evidence for using image augmentation across the tested situations. It is compatible with large, long-trained ViTs benefiting from network regularization in some settings.

See how well an upstream score selects a checkpoint

The checkpoint-selection analysis compares two procedures over 5 target datasets. The cheaper procedure ranks source checkpoints using upstream validation accuracy, then adapts the best candidate. The more expensive procedure adapts the candidates and uses validation on the target task to pick among them. The authors compare the resulting final test scores. This keeps selection of a source checkpoint distinct from selecting a learning rate or training duration for a single checkpoint. The cheaper procedure still uses the target validation set to tune the adaptation run itself.

In most of the tested scenarios, the upstream winner gives a final result comparable to that of the more expensive search. A few cases favor adapting more candidates before choosing. That makes upstream accuracy useful for screening among checkpoints, with the tradeoff visible in the exceptional cases. It also explains how the authors assign their recommended checkpoints. The ranking supplies a starting point whose utility can be checked on the target, without running the whole upstream sweep again.

The ranking test also exposes an evaluation flaw when the source is ImageNet-21k and the target is ImageNet-1k. Minival is held out of the ImageNet-1k training split, but that split is contained within ImageNet-21k. A checkpoint pretrained on the larger collection can thus have encountered examples from the small holdout before the adaptation experiment starts. The paper finds weak agreement between minival and final accuracy in this setting, especially for large ViTs trained on long schedules. The authors attribute the pattern to memorization of the overlapping images.

Using ImageNetV2 as the validation source improves agreement with the final score on ImageNet-1k’s official validation set. This preserves a useful distinction between the data that guides selection and the data that provides the reported result. It also points to a specific cause for the anomaly. The utility of minival depends on where the checkpoint came from, because holding out an example at the latest stage cannot take it out of earlier training. The authors report no comparable issue on the other datasets in the analysis.

Test reuse beyond a supervised classification head

The appendix takes a recommended ViT-B/32 checkpoint pretrained on ImageNet-21k into a contrastive image–text experiment. The ViT serves as a locked image tower, meaning its parameters stay fixed. A separate text tower, initialized from BERT-Base, learns in relation to the representations from that image tower. Contrastive training uses the relationship between image and text examples to make corresponding inputs easier to match. The authors train for 20 epochs on CC12M and compare the recommended visual checkpoint with counterparts that received too little or too much AugReg. BERT

They measure ImageNet-1k zero-shot classification and image–text retrieval. In this setting, zero-shot classification assesses the learned image–text system on image categories without a target-specific supervised classification fit. Retrieval tests its ability to find corresponding content across the two input types. Better upstream validation accuracy is associated with better zero-shot classification, and the recommended augmentation setting also gives better retrieval results than the comparison settings. The fixed image tower makes this a test of the features already present in the visual checkpoint under that particular contrastive setup.

This appendix supplies a different kind of evidence from VTAB. The VTAB runs adapt the visual classifier to target tasks, whereas the image–text runs keep the visual parameters fixed and learn through the text side of the system. A favorable result there suggests that the source recipe can affect the usefulness of the stored visual representations beyond their initial classification head. The narrow comparison, centered on one patch configuration and one image–text training setup, determines how far that observation can be extended.

Limitations

Limits the authors state

The study deliberately concentrates on standard Vision Transformers. It includes hybrids that use residual convolutional components, but it does not undertake an equivalent sweep of standalone ResNets or the newer ViT variants discussed in related work. Consequently, the observed relationship among augmentation, capacity, and schedule describes the tested architectures. The authors expect some findings to extend to other ViT families. Establishing that extension would require experiments in which those families receive similarly controlled training and evaluation.

The pretraining comparison is supervised. The paper treats self-supervised approaches as another promising route and leaves a systematic comparison for later work. The size of the data collection and the amount of AugReg required could interact differently with a different training objective. The evidence here establishes the tradeoffs for supervised ViT pretraining and the adaptation setups that follow it. The contrastive appendix uses the supervised visual checkpoints as inputs to a separate experiment and does not supply the omitted pretraining comparison.

Classification also dominates the evaluation. VTAB offers task diversity, including structured problems and specialized imagery, but the benchmark results are still expressed through classification accuracy. The authors identify detection, segmentation, and tracking as tasks for which a full extension of the study would be costly. Their image–text test provides evidence for one further way of using a checkpoint. It uses a single locked-image configuration and cannot answer whether the same recipes preserve all the properties a visual backbone needs for other tasks.

The authors qualify the data substitution claim explicitly. They do not expect the reported equivalence to persist as the source dataset becomes arbitrarily small. As an illustration from prior work, they cite an experiment in which heavy augmentation improves a ResNet50 trained on only 10% of ImageNet-1k without recovering the accuracy from training on the full collection. In their own work, they also leave open what could be achieved by applying AugReg and longer training on JFT-300M itself. The published plain JFT-300M result is a benchmark reached by some ImageNet-21k recipes, instead of a ceiling on the larger dataset’s performance. Unsupervised Data Augmentation for Consistency Training

Finally, the authors acknowledge the compute required for their sweep. The practical cost comparison assumes that users can reuse existing checkpoints and pass on much of the original search cost. Their release is intended to make that possible. The paper’s random-search analysis makes the benefit of a good starting point visible, while the authors describe the full cost of exploring recipes as difficult to quantify. The result is clearest for the user who already has access to suitable pretrained weights.

Limits visible in the experimental design

The two ImageNet collections differ in more than how many training images they contain. They differ in the breadth of their label sets and in the range of image content available for supervised learning. The approximately matched compute experiment compares two realistic choices of pretraining source. It cannot isolate what fraction of the transfer advantage comes from more images, a broader label inventory, or wider visual coverage. The appropriate claim is that the larger source as used here gives stronger transfers across the tested VTAB groups. A study designed to isolate the effect of sample count would have to control the other differences more tightly.

The evidence for scratch training is extensive within its scope. It tests the Base architectures at patch sizes 16 and 32 on two datasets. Their different sizes and domains make them informative contrasting cases. They do not determine where scratch training becomes competitive for all possible dataset sizes, architectures, or objectives. Likewise, the simulation samples from recipes the authors actually ran. It estimates sensitivity to choices within that search space, while leaving the cost and outcome of a fundamentally different search procedure open.

The AugReg experiment supports comparisons of recipes more directly than it isolates mechanisms. The paired regularizers switch on together. The augmentation grid changes Mixup and RandAugment in a restricted set of combinations. Better performance in the full grid can justify selecting one tested recipe over another, but finer conclusions about which component explains an effect require additional comparisons. Even the name of an intervention leaves a reproducibility detail unresolved unless the implementation is known. The authors’ choice of the original TensorFlow RandAugment is part of the setting in which the result holds.

The speed results are conditional on input resolution, implementation, hardware, and the choice to tune batching for throughput. At a given measured speed, the larger-patch variants perform better than the Tiny alternatives highlighted in the experiment. A system serving individual requests or running on different hardware could rank the same architectures differently. Similarly, the close agreement between upstream screening and exhaustive downstream checkpoint selection reflects the tested source candidates and targets. The observed outliers and the ImageNet overlap problem show why the ranking’s reliability depends on the evaluation setup.

What came after

Supervision and the source of reusable features

DINOv2 cites the study and takes up the problem of learning robust visual features without supervision. The connection is the question of which features will remain useful after the original training task. In the ViT study, the visual representation is learned through supervised classification and examined through supervised transfer, with an additional test using a locked image tower. DINOv2’s stated subject takes the same general interest in reusable visual features into the setting the authors had set aside, where the representation is learned without supervised labels. The citation and the work’s stated scope establish that connection. They leave open how any particular DINOv2 training choice relates to the earlier augmentation grid or to its ImageNet comparisons.

The distinction matters when interpreting what carries forward. The ViT study’s evidence about broad transfer is tied to its choice of source data, objective, schedules, and adaptation protocol. Later research that learns general features without supervision addresses another way of obtaining a useful starting point. Its relevance to the earlier paper is the common outcome under investigation, the usefulness of a visual representation beyond the conditions that produced it. A direct claim that the same augmentation or schedule effects hold under both objectives would need a comparison of those effects.

Cost after pretraining

The survey of parameter-efficient fine-tuning also cites the paper. Its subject concerns the cost of adapting pretrained systems through approaches that economize on the parameters involved in fine-tuning. The earlier ViT study had already treated adaptation as a separate budget from pretraining and had asked how many checkpoints a practitioner must try. The survey’s topic addresses a different contribution to that budget, the scope of the update within an adaptation run. Checkpoint selection determines how many candidates go through the process. Parameter-efficient fine-tuning concerns how that process updates a candidate.

The paper itself documents a further instance of checkpoint reuse in Segmenter. Its appendix points to Segmenter as an example of adopting its visual backbones for a task beyond the classification experiments. Semantic segmentation assigns categories to regions of an image, so the reuse extends the role of the backbone beyond producing a single category for an entire input. The study does not give a segmentation sweep or compare its augmentation recipes on that task. The documented connection is the reuse of the backbone, which is precisely the kind of downstream use that makes the quality and availability of pretrained checkpoints consequential.

Cite

Cite as Andreas Steiner, Alexander Kolesnikov, Xiaohua Zhai, Ross Wightman, Jakob Uszkoreit and Lucas Beyer. 2021. How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2106.10270 · arXiv 2106.10270

@misc{andreas2021how,
  title = {{How to train your ViT? Data, Augmentation, and Regularization in Vision Transformers}},
  author = {Andreas Steiner, Alexander Kolesnikov, Xiaohua Zhai, Ross Wightman, Jakob Uszkoreit and Lucas Beyer},
  year = {2021},
  doi = {10.48550/arxiv.2106.10270},
  eprint = {2106.10270},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2106.10270}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/andreas-2021-how-train-your-vit-data/

References

47 references, from the paper's own bibliography.

  1. Sara Atito, Muhammad Awais, and Josef Kittler. Sit: Self-supervised vision transformer. arXiv:2104.03602, 2021. OpenAlex ↗ · Scholar ↗
  2. Irwan Bello, William Fedus, Xianzhi Du, Ekin D. Cubuk, Aravind Srinivas, Tsung-Yi Lin, Jonathon Shlens, and Barret Zoph. Revisiting resnets: Improved training and scaling strategies. arXiv:2103.07579, 2021. our card
  3. James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs, 2018. OpenAlex ↗ · Scholar ↗
  4. Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, and Armand Joulin. Emerging properties in self-supervised vision transformers. arXiv:2104.14294, 2021. our card
  5. Soravit Changpinyo, Piyush Sharma, Nan Ding, and Radu Soricut. Conceptual 12M: Pushing web-scale image-text pre-training to recognize long-tail visual concepts. In CVPR, 2021. OpenAlex ↗ · Scholar ↗
  6. Gong Cheng, Junwei Han, and Xiaoqiang Lu. Remote sensing image scene classification: Benchmark and state of the art. Proceedings of the IEEE, 105(10):1865–1883, 2017. OpenAlex ↗ · Scholar ↗
  7. Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. RandAugment: Practical automated data augmentation with a reduced search space. In CVPR Workshops, 2020. our card
  8. Zihang Dai, Hanxiao Liu, Quoc V. Le, and Mingxing Tan. Coatnet: Marrying convolution and attention for all data sizes, 2021. OpenAlex ↗ · Scholar ↗
  9. Stéphane d'Ascoli, Hugo Touvron, Matthew Leavitt, Ari Morcos, Giulio Biroli, and Levent Sagun. Convit: Improving vision transformers with soft convolutional inductive biases. arXiv:2103.10697, 2021. OpenAlex ↗ · Scholar ↗
  10. Mostafa Dehghani, Anurag Arnab, Lucas Beyer, Ashish Vaswani, and Yi Tay. The efficiency misnomer. CoRR, abs/2110.12894, 2021. OpenAlex ↗ · Scholar ↗
  11. J. Deng, W. Dong, R. Socher, L. Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR, 2009. OpenAlex ↗ · Scholar ↗
  12. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: pre-training of deep bidirectional transformers for language understanding. In NAACL-HLT, 2019. our card
  13. Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv:2010.11929, 2020. our card
  14. A Geiger, P Lenz, C Stiller, and R Urtasun. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 32(11):1231–1237, 2013. OpenAlex ↗ · Scholar ↗
  15. Google. TensorFlow Datasets, a collection of ready-to-use datasets. https://www.tensorflow.org/datasets. OpenAlex ↗ · Scholar ↗
  16. 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, et al. Bootstrap your own latent: A new approach to self-supervised learning. arXiv:2006.07733, 2020. our card
  17. Kai Han, An Xiao, Enhua Wu, Jianyuan Guo, Chunjing Xu, and Yunhe Wang. Transformer in transformer. arXiv:2103.00112, 2021. OpenAlex ↗ · Scholar ↗
  18. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. our card
  19. Jonathan Heek, Anselm Levskaya, Avital Oliver, Marvin Ritter, Bertrand Rondepierre, Andreas Steiner, and Marc van Zee. Flax: A neural network library and ecosystem for JAX, 2020. OpenAlex ↗ · Scholar ↗
  20. Gao Huang, Yu Sun, Zhuang Liu, Daniel Sedra, and Kilian Q Weinberger. Deep networks with stochastic depth. In ECCV, 2016. our card
  21. Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015. our card
  22. Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Joan Puigcerver, Jessica Yung, Sylvain Gelly, and Neil Houlsby. Big transfer (BiT): General visual representation learning. In ECCV, 2020. OpenAlex ↗ · Scholar ↗
  23. Simon Kornblith, Jonathon Shlens, and Quoc V Le. Do better imagenet models transfer better? In CVPR, 2019. our card
  24. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In Peter L. Bartlett, Fernando C. N. Pereira, Christopher J. C. Burges, Léon Bottou, and Kilian Q. Weinberger, editors, Advances in Neural Information Processing Systems 25: 26th Annual Conference on Neural Information Processing Systems 2012. Proceedings of a meeting held December 3-6, 2012, Lake Tahoe, Nevada, United States, pages 1106–1114, 2012. our card
  25. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. Advances in neural information processing systems, 25, 2012. our card
  26. 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:2103.14030, 2021. our card
  27. Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations, 2019. our card
  28. Omkar M. Parkhi, Andrea Vedaldi, Andrew Zisserman, and C. V. Jawahar. Cats and dogs. In CVPR, 2012. OpenAlex ↗ · Scholar ↗
  29. Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In ICML, 2019. OpenAlex ↗ · Scholar ↗
  30. Tal Ridnik, Emanuel Ben-Baruch, Asaf Noy, and Lihi Zelnik-Manor. Imagenet-21k pretraining for the masses. arXiv:2104.10972, 2021. OpenAlex ↗ · Scholar ↗
  31. Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. IIJCV, 2015. our card
  32. Ali Sharif Razavian, Hossein Azizpour, Josephine Sullivan, and Stefan Carlsson. Cnn features off-the-shelf: An astounding baseline for recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, June 2014. OpenAlex ↗ · Scholar ↗
  33. Aravind Srinivas, Tsung-Yi Lin, Niki Parmar, Jonathon Shlens, Pieter Abbeel, and Ashish Vaswani. Bottleneck transformers for visual recognition. arXiv:2101.11605, 2021. OpenAlex ↗ · Scholar ↗
  34. Robin Strudel, Ricardo Garcia, Ivan Laptev, and Cordelia Schmid. Segmenter: Transformer for semantic segmentation. arXiv:2105.05633, 2021. our card
  35. Chen Sun, Abhinav Shrivastava, Saurabh Singh, and Abhinav Gupta. Revisiting unreasonable effectiveness of data in deep learning era. In Proceedings of the IEEE international conference on computer vision, pages 843–852, 2017. our card
  36. C. Szegedy, W. Liu, Y. Jia, P. Sermanet, S. Reed, D. Anguelov, D. Erhan, V. Vanhoucke, and A. Rabinovich. Going deeper with convolutions. In CVPR, 2015. OpenAlex ↗ · Scholar ↗
  37. Mingxing Tan and Quoc V. Le. Efficientnetv2: Smaller models and faster training. CoRR, abs/2104.00298, 2021. OpenAlex ↗ · Scholar ↗
  38. Ilya O. Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, and Alexey Dosovitskiy. Mlp-mixer: An all-mlp architecture for vision. CoRR, abs/2105.01601, 2021. our card
  39. Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Hervé Jégou. Training data-efficient image transformers & distillation through attention. arXiv:2012.12877, 2020. our card
  40. Hugo Touvron, Andrea Vedaldi, Matthijs Douze, and Herve Jegou. Fixing the train-test resolution discrepancy. In NeurIPS, 2019. OpenAlex ↗ · Scholar ↗
  41. Wenhai Wang, Enze Xie, Xiang Li, Deng-Ping Fan, Kaitao Song, Ding Liang, Tong Lu, Ping Luo, and Ling Shao. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. arXiv:2102.12122, 2021. OpenAlex ↗ · Scholar ↗
  42. Ross Wightman. Pytorch image models (timm): Vit training details. https://github.com/rwightman/pytorch-image-models/issues/252\#issuecomment-713838112, 2013. OpenAlex ↗ · Scholar ↗
  43. Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, and Lei Zhang. Cvt: Introducing convolutions to vision transformers. arXiv:2103.15808, 2021. our card
  44. Qizhe Xie, Zihang Dai, Eduard Hovy, Thang Luong, and Quoc Le. Unsupervised data augmentation for consistency training. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, 2020. our card
  45. Xiaohua Zhai, Joan Puigcerver, Alexander Kolesnikov, Pierre Ruyssen, Carlos Riquelme, Mario Lucic, Josip Djolonga, Andre Susano Pinto, Maxim Neumann, Alexey Dosovitskiy, Lucas Beyer, Olivier Bachem, Michael Tschannen, Marcin Michalski, Olivier Bousquet, Sylvain Gelly, and Neil Houlsby. A large-scale study of representation learning with the visual task adaptation benchmark, 2020. OpenAlex ↗ · Scholar ↗
  46. Xiaohua Zhai, Xiao Wang, Basil Mustafa, Andreas Steiner, Daniel Keysers, Alexander Kolesnikov, and Lucas Beyer. Lit: Zero-shot transfer with locked-image text tuning. CVPR, 2022. OpenAlex ↗ · Scholar ↗
  47. Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In ICLR, 2018. our card