ArXiv: 2012.12877

🎯 Pitch

Contrary to earlier claims, pure vision transformers can be trained to high accuracy on just ImageNet without external dataβ€”DeiT achieves 83.1% on a single machine in under 3 days. The key innovation is a new distillation token that lets a transformer student absorb inductive biases directly from a convnet teacher through attention, boosting accuracy to 85.2% and revealing that convnets make better teachers than similarly performing transformers.


1. Executive Summary

This paper introduces DeiT (Data-efficient image Transformers), a training methodology that enables convolution-free vision transformers to achieve competitive accuracy on ImageNet-1k without the massive external datasets previously required, training on a single 8-GPU node in 2–3 days. The core architectural innovation is a distillation token (a learned embedding added alongside the class token that interacts through self-attention and is supervised by a teacher network's hard-label predictions), which the paper shows significantly outperforms both soft distillation and standard hard distillation baselines. DeiT-B reaches 83.1% top-1 accuracy on ImageNet without external data β€” a ~6.3% improvement over equivalently trained ViT-B β€” and the distilled variant DeiT-Bβš— achieves 85.2% with 1000-epoch training, matching the throughput-accuracy trade-off of highly optimized convnets like EfficientNet-B7. The experiments establish that image transformers learn more effectively when distilled from a convnet teacher than from another transformer, reflecting an inductive bias transfer that works even when the student is a purely attention-based architecture.

2. Context and Motivation

The Fundamental Problem: Vision Transformers Need Too Much Data

At the time of publication, the vision transformer (ViT) architecture introduced by Dosovitskiy et al. had demonstrated that pure attention-based models β€” with zero convolutional layers β€” could achieve state-of-the-art image classification performance. This was remarkable because convnets had dominated computer vision for nearly a decade, benefiting from years of architectural tuning, training recipe optimization, and hardware-level engineering that made them extremely efficient both in terms of accuracy and computational cost.

However, this breakthrough came with a severe practical constraint: ViT models needed to be pre-trained on enormous labeled datasets to work well. Dosovitskiy et al. used JFT-300M, a private dataset containing 300 million images internally at Google. When trained on ImageNet-1k alone (1.28 million images), ViT-B's top-1 accuracy was only 77.9% β€” significantly below comparable convnets like ResNet-152 (78.3%) despite having similar parameter counts. The authors of ViT concluded explicitly that transformers "do not generalize well when trained on insufficient amounts of data."

This data requirement creates three practical barriers:

Infrastructure barrier. Pre-training on 300M images requires massive computational resources. ViT models in the original paper were trained on Cloud TPUv3 pods with thousands of cores β€” infrastructure unavailable to most research labs, startups, or practitioners. Quoting the paper: "the training of these models involved extensive computing resources."

Data access barrier. JFT-300M is a private Google dataset. Even if one had the computational resources, the training data itself is unavailable externally. This means the ViT results were non-reproducible by the broader research community β€” a significant concern given that ImageNet has historically served as a common, accessible benchmark that enables fair comparison across labs.

Conceptual barrier. The claim that transformers inherently require massive data raised questions about whether attention-based models had fundamentally different generalization properties from convnets. If true, this would suggest a structural limitation of transformers for vision: they might work well at scale, but the inductive biases that convnets provide (translation equivariance, locality) are critical for learning from smaller datasets. This would relegate vision transformers to a niche accessible only to organizations with massive data resources.

The gap this paper addresses is therefore clear: can we train high-performing vision transformers using only publicly available ImageNet-1k data, on accessible commodity hardware, in a reasonable amount of time?


The Specific Deficiency in Prior ViT Training

The paper does not claim that Dosovitskiy et al. made a fundamental architectural mistake. Rather, the argument is that ViT's poor ImageNet-only performance was primarily a training methodology problem, not an architectural one. Transformers are more data-hungry than convnets in their raw form because they lack built-in inductive biases (translation equivariance, local receptive fields), but this doesn't mean they require more data β€” it means they need the training recipe to compensate through stronger regularization and augmentation.

Evidence for this comes from the community itself: the timm library (maintained by Ross Wightman) had already improved ViT-B's ImageNet-1k accuracy from 77.91% to 79.35% through training recipe enhancements alone, before this paper was written. This ~1.4% improvement with no architectural changes suggested that there was substantial headroom to close the gap with convnets through better training β€” and that the original ViT paper's conclusion (that transformers need huge external datasets) was premature.

The key insight driving this paper is that the gap between convnets and transformers at ImageNet scale can be closed from both sides: by improving the training recipe (data augmentation, regularization, optimization) AND by developing a distillation procedure that transfers convnet-like inductive biases into the transformer student β€” without adding any convolutional layers to the student's inference-time architecture.


Prior Approaches and Their Limitations

ViT with massive pre-training. Dosovitskiy et al.'s solution was simply to use more data. ViT-H/14 (632M parameters) trained on JFT-300M reached 88.55% top-1 on ImageNet. This works but does nothing to address the accessibility problem. It demonstrates that transformers can perform well with enough compute and data, but provides no guidance for resource-constrained settings β€” and critically, doesn't tell us whether the data requirement is fundamental or merely an artifact of suboptimal training.

Hybrid convnet-transformer architectures. Several prior works attempted to combine convolutions with attention mechanisms, effectively giving transformers the inductive biases they lack by including some convolutional layers. Examples include the self-attention mechanisms used within convnet designs (Squeeze-and-Excitation, Selective Kernel, Split-Attention Networks), the Visual Transformers of Wu et al., and detection architectures like DETR that use transformers on top of CNN backbones. These hybrid approaches demonstrate that attention is useful for vision, but they don't answer the question of whether pure attention models can work with limited data β€” the convnet components may be doing the heavy lifting for generalization.

Knowledge distillation. Standard distillation (Hinton et al.) transfers knowledge from a teacher to a student by minimizing the KL divergence between their softmax outputs. This was typically used for model compression (a small student learns from a large teacher) or for transferring inductive biases (Abnar et al. showed that biases from a teacher can be transferred to a student through soft labels). However, standard distillation has known limitations: soft distillation adds a temperature hyperparameter that requires tuning, and the theoretical grounding of why it helps is not fully understood. More practically for this context, prior distillation work had not been systematically studied for transformer students, where the self-attention architecture offers new design possibilities for how to inject the teacher signal β€” not just what the target is, but how the model's internal structure processes it.

Training recipe improvements for convnets. The convnet literature had developed a rich toolkit of training enhancements β€” AutoAugment, RandAugment, Mixup, CutMix, stochastic depth, repeated augmentation β€” but these had been developed and tuned specifically for convolutional architectures. It was unknown which of these would transfer to transformers, what hyperparameters would work, or whether transformers would benefit from the same regularizers. Given transformers' fundamentally different architecture (operating on patch embeddings via self-attention rather than on pixel arrays via local convolutions), the optimal data augmentation strategy might differ substantially β€” for example, patch-level transformations might interact differently with transformer processing than with convnet processing.


How This Paper Positions Itself

The paper positions itself at the intersection of two research directions β€” efficient transformer training and knowledge distillation β€” while addressing a specific failure mode of both.

On the training side, it frames the problem not as "transformers need more data" but as "transformers need stronger regularization and a better training recipe when data is limited." This is a reframing from a data problem to an optimization problem. The paper systematically evaluates convnet training techniques (RandAugment, Mixup, CutMix, repeated augmentation, stochastic depth, etc.) in the transformer context, providing the first comprehensive ablation study of which components are necessary for data-efficient transformer training.

On the distillation side, it introduces a mechanism that is architecturally native to transformers. Rather than treating distillation as a loss-function modification (changing what the model predicts), the distillation token treats distillation as an input modification β€” adding a new token to the transformer's sequence that interacts with all other tokens through self-attention. This is a fundamentally different design paradigm: in standard distillation, the teacher signal is applied at the output (as a loss term); in DeiT's distillation through attention, the teacher signal is injected at the input and processed through the entire architecture, potentially allowing the self-attention mechanism to learn richer interactions between the distillation objective and the classification objective.

The paper explicitly tests whether this token-based approach outperforms standard distillation β€” and whether the choice of teacher architecture matters β€” by comparing convnet teachers (RegNetY family) against transformer teachers. The finding that convnet teachers are better for transformer students (Table 2) directly connects to the inductive bias transfer hypothesis: even though the student has no convolutional layers, distillation allows it to acquire some of the functional properties of a convnet through the learned attention patterns.

Positioning relative to the ViT paper. The architectural backbone of DeiT is identical to ViT-B β€” same embedding dimension, number of heads, number of layers. This is a deliberate choice to isolate the contribution of training methodology and distillation from architectural changes. The paper is not proposing a better transformer architecture; it is proposing a better way to train the existing architecture. This makes the ~6.3% accuracy improvement (77.9% β†’ 83.1% for ViT-B vs. DeiT-B on ImageNet-1k) directly attributable to the training recipe, since the model itself is unchanged.

Positioning relative to convnet state-of-the-art. The paper targets EfficientNets as the comparison point, not because EfficientNets are the absolute best convnets, but because they represent the result of extensive architecture search and optimization β€” a "fully optimized" convnet baseline. The finding that DeiT-Bβš— matches or exceeds EfficientNet on the accuracy-throughput trade-off (Figure 1) is significant because it suggests transformers can be competitive even without convolutional inductive biases, given proper training and distillation. This shifts the burden of proof: if transformers trained with DeiT's recipe already match heavily-optimized convnets, future architectural improvements to transformers (which at the time were essentially at "generation zero" compared to convnets' decade of refinement) could push them decisively ahead.

The implicit thesis. The paper's true thesis extends beyond the specific method: it argues that vision transformers are not fundamentally more data-hungry than convnets β€” they just require different treatment during training. The distillation token is the mechanism for providing the inductive biases that convnets get "for free" from their architecture, and the aggressive augmentation recipe compensates for the lack of built-in invariance properties. Both components work together: distillation provides what the architecture lacks, and augmentation provides what the data size lacks.

3. Technical Approach

3.1 Reader Orientation

DeiT is a training methodology and distillation procedure β€” not a new architecture β€” that enables standard vision transformers (ViT) to achieve high accuracy on ImageNet-1k without requiring hundreds of millions of pre-training images. The system solves the problem that pure attention-based models lack the inductive biases (like translation equivariance and locality) that convnets possess natively, by compensating through two complementary mechanisms: an aggressive data augmentation and regularization recipe that prevents overfitting on the limited dataset, and a transformer-native distillation token that lets the model learn convnet-like behaviors from a teacher network without adding any convolutional layers to its architecture.

3.2 Big-Picture Architecture (Diagram in Words)

The system has three main components that work together during training:

  1. The ViT Backbone (unchanged architecture) β€” takes an RGB image split into 16Γ—16 pixel patches, projects each patch to a 768-dimensional embedding, prepends a learnable class token, adds positional embeddings, and passes the resulting sequence through 12 transformer blocks (each containing multi-head self-attention and a feed-forward network). The class token's output embedding is fed to a linear classifier to produce ImageNet class predictions.

  2. The Distillation Token (architectural addition) β€” a second learnable embedding vector added to the input sequence alongside the class token and patch tokens. It participates in all self-attention operations identically to the class token, but its output embedding is supervised by a different target: the hard-label prediction of a pre-trained teacher network (typically a convnet like RegNetY-16GF). This token learns to reproduce the teacher's behavior through the same transformer architecture, creating a parallel classification pathway that interacts with the main classification pathway through attention.

  3. The Training Recipe (regularization and augmentation suite) β€” a collection of data augmentation strategies (RandAugment, Mixup, CutMix, random erasing, repeated augmentation) and regularization techniques (stochastic depth, label smoothing, weight decay) applied during training to prevent the transformer from overfitting on ImageNet's limited 1.28M images and to encourage robust feature learning despite the absence of convnet inductive biases.

Information flows through these components in a single forward pass: an augmented input image β†’ patch embedding projection β†’ class token + distillation token concatenation β†’ 12 transformer blocks β†’ two separate output embeddings (class and distillation) β†’ two separate linear classifiers producing logits β†’ three supervision signals: cross-entropy loss against ground-truth labels, cross-entropy loss against teacher hard labels, and optionally a soft distillation KL divergence loss against teacher soft labels. At inference time, both classifiers' softmax outputs are summed (late fusion) to produce the final prediction.

3.3 Roadmap for the Deep Dive

  • First, the ViT backbone architecture β€” embedding dimension, patch projection, class token mechanism, multi-head self-attention, and the transformer block structure β€” since everything else builds on this foundation and the paper deliberately keeps it unchanged.
  • Second, the distillation token β€” how it is initialized, how it connects to the rest of the architecture through attention, and the supervision mechanism (hard-label distillation loss) β€” because this is the paper's primary methodological innovation.
  • Third, the loss functions for both standard training and distillation β€” the cross-entropy on ground truth, the hard-distillation loss, and the soft distillation KL divergence β€” with their mathematical definitions and trade-offs, since these define what the model is optimizing.
  • Fourth, the training recipe β€” the specific data augmentations, regularization techniques, optimizer settings, learning rate schedule, and hyperparameters β€” because this is the other half of what makes DeiT work without external data.
  • Fifth, the fine-tuning procedure at higher resolution β€” positional embedding interpolation and the continued training setup β€” since the best results use a two-stage training process at 224Β² then 384Β².
  • Sixth, the inference-time late fusion mechanism that combines the class and distillation classifier outputs.

3.4 Detailed, Sentence-Based Technical Breakdown

This is primarily a training methodology and distillation paper whose core insight is that vision transformers can be trained effectively on ImageNet-1k alone if you (1) aggressively augment and regularize the training to compensate for missing inductive biases, and (2) introduce a transformer-native distillation mechanism that lets a convnet teacher's behavior flow through the attention layers alongside the standard classification signal.


The ViT Backbone (Unchanged Architecture)

The paper uses the exact same Vision Transformer architecture as Dosovitskiy et al., specifically the ViT-B (Base) variant, to ensure that any accuracy improvements are attributable solely to the training methodology and distillation, not to architectural modifications. This is a deliberate experimental design choice: if the architecture were changed, it would be unclear whether improvements came from the new training recipe or from the architecture itself.

Image to patch sequence. The input is an RGB image of size $224 \times 224 \times 3$. This image is divided into a grid of non-overlapping patches, each of size $16 \times 16$ pixels. This produces $N = 14 \times 14 = 196$ patches. Each $16 \times 16 \times 3$ patch is flattened into a vector of length 768 ($16 \times 16 \times 3 = 768$), and then linearly projected to a D-dimensional embedding space using a learned weight matrix. For DeiT-B, $D = 768$. This is identical to the patch embedding procedure in ViT.

The paper specifically states: "The fixed-size input RGB image is decomposed into a batch of N patches of a fixed size of 16 Γ— 16 pixels (N = 14 Γ— 14). Each patch is projected with a linear layer that conserves its overall dimension 3 Γ— 16 Γ— 16 = 768."

The class token mechanism. Before the patch embeddings enter the first transformer block, a special learnable vector called the class token is prepended to the sequence. This token has the same dimensionality D as the patch embeddings and is initialized randomly (with a truncated normal distribution, following the initialization recommendation of Hanin and Rolnick). The class token is a critical design element inherited from BERT in NLP: it serves as an aggregation point where information from all patches can be collected through self-attention, and its output embedding after the final transformer block is used as the image representation for classification.

The paper describes this: "The class token is a trainable vector, appended to the patch tokens before the first layer, that goes through the transformer layers, and is then projected with a linear layer to predict the class. This class token is inherited from NLP, and departs from the typical pooling layers used in computer vision to predict the class."

Why a class token rather than pooling? In standard convnets for image classification, global average pooling across all spatial locations produces a single vector that is fed to the classifier. The class token achieves a similar effect but through a different mechanism: because self-attention allows every token to attend to every other token, the class token can learn to extract relevant information from whichever patches are informative for the task, rather than having information forced through a fixed pooling operation. The paper notes that this "forces the self-attention to spread information between the patch tokens and the class token: at training time the supervision signal comes only from the class embedding, while the patch tokens are the model's only variable input." This means the class token must learn to query the patch tokens effectively.

Positional embeddings. Since self-attention is permutation-invariant (it treats tokens as a set, not a sequence), the model needs positional information to know which patch is where. The standard approach β€” used by DeiT β€” is to add learnable positional embeddings to the patch embeddings before the first transformer block. For $N = 196$ patches plus one class token, there are 197 positional embeddings, each of dimension D. These are learned during training jointly with all other parameters.

The paper notes that positional embeddings can be "fixed or trainable" and that DeiT uses trainable positional embeddings.

The transformer block. Each transformer block consists of two sub-layers: a multi-head self-attention (MSA) layer followed by a feed-forward network (FFN), both wrapped with residual connections and layer normalization.

The MSA layer operates as follows. For an input sequence $X \in \mathbb{R}^{(N+1) \times D}$ (patches plus class token), three linear transformations produce query, key, and value matrices:

Q=XWQ,K=XWK,V=XWVQ = X W_Q, \quad K = X W_K, \quad V = X W_V

where $W_Q, W_K, W_V \in \mathbb{R}^{D \times D}$ are learned weight matrices (each head gets its own projection to dimension $d = D/h$).

What these matrices represent. The query matrix Q encodes what each token is "looking for," the key matrix K encodes what information each token "offers," and the value matrix V encodes the actual content that will be aggregated. This query-key-value terminology comes from information retrieval: for each query token, we compute its compatibility with all key tokens, then use those compatibilities as weights to average the value vectors.

The attention operation for a single head is:

Attention(Q,K,V)=Softmax(QK⊀d)V\text{Attention}(Q, K, V) = \text{Softmax}\left(\frac{QK^\top}{\sqrt{d}}\right)V

where $d = D/h$ is the dimension per head, and the softmax is applied row-wise.

Operational meaning. For each query position (row of Q), the dot product $QK^\top$ produces a vector of N+1 scores representing how much attention that query should pay to every key position. The $\sqrt{d}$ scaling prevents the dot products from growing too large in magnitude (which would push the softmax into saturated regions where gradients are near zero). The softmax converts these scores to a probability distribution over all positions. Finally, multiplying by V produces a weighted sum of all value vectors, where the weights are the attention probabilities. The output for each position is therefore a context-dependent summary of the entire sequence, with emphasis on positions deemed relevant.

Multi-head extension. The paper uses $h = 12$ heads for DeiT-B, each operating in a $d = 64$-dimensional subspace (since $D/h = 768/12 = 64$). Each head independently computes its own attention output. The h outputs (each of dimension $N \times d$) are concatenated to form a matrix of size $N \times (h \cdot d) = N \times D$, which is then projected back to dimension D through a final linear layer. This multi-head design allows different heads to specialize in different types of relationships (e.g., one head might focus on adjacent patches for texture, another on distant patches for global shape).

The feed-forward network (FFN). After the MSA output is added to the input via a residual connection and passed through layer normalization, it enters the FFN:

FFN(x)=W2β‹…GeLU(W1β‹…x+b1)+b2\text{FFN}(x) = W_2 \cdot \text{GeLU}(W_1 \cdot x + b_1) + b_2

where $W_1 \in \mathbb{R}^{D \times 4D}$ expands the dimension from D to 4D, GeLU is the Gaussian Error Linear Unit activation (a smooth approximation to ReLU that allows small negative values rather than zeroing them out), and $W_2 \in \mathbb{R}^{4D \times D}$ projects back to dimension D.

Why 4Γ— expansion? The expansion factor of 4 is a standard design choice from the original transformer paper. The FFN processes each position independently (no cross-position interaction), and the expansion gives it capacity to learn complex per-position transformations. The two-layer design with a bottleneck (expand then contract) is computationally efficient compared to a single wide layer: the number of parameters is $D \times 4D + 4D \times D = 8D^2$, whereas a single DΓ—D layer would have only $D^2$ parameters and far less representational capacity.

Stacking blocks. DeiT-B uses 12 such transformer blocks stacked sequentially. The output of one block becomes the input to the next. All blocks have the same dimensionality D=768 (the sequence length never changes), so the information representation evolves through the layers without compression or expansion of the token set. The class token exists throughout all 12 blocks, progressively accumulating information from the patch tokens through the attention operations at each layer.

Architecture variants. The paper introduces two smaller variants by reducing D and h while keeping d=64 constant (Table 1):

  • DeiT-Ti (Tiny): D=192, h=3, 12 layers, 5M parameters, throughput 2536 images/sec
  • DeiT-S (Small): D=384, h=6, 12 layers, 22M parameters, throughput 940 images/sec
  • DeiT-B (Base): D=768, h=12, 12 layers, 86M parameters, throughput 292 images/sec

The constant d=64 per head ensures that each attention head operates in the same representational subspace across all model sizes, making the scaling behavior more predictable.


The Distillation Token: Transformer-Native Knowledge Transfer

The distillation token is the paper's primary methodological contribution. Instead of treating distillation purely as a loss-function modification (changing what the model's output layer predicts), DeiT introduces distillation as an architectural mechanism: a second "class-like" token that participates in self-attention alongside the original class token and patch tokens, with its own output head supervised by the teacher.

Where it goes in the architecture. The distillation token is a learnable vector of dimension D, initialized randomly (truncated normal distribution), and concatenated to the input sequence right after the class token and before the patch tokens. So the complete input sequence to the first transformer block is:

[class_token; distillation_token; patch_1; patch_2; ...; patch_196]

This produces a sequence of length $N + 2 = 198$ tokens. Both the class token and distillation token have their own learned positional embeddings, distinct from each other and from the patch positional embeddings.

How it interacts through attention. The distillation token participates in exactly the same self-attention operations as every other token. In each transformer block, the attention mechanism computes:

  • Query from distillation token β†’ attends to all patch tokens, the class token, and itself
  • Query from class token β†’ attends to all patch tokens, the distillation token, and itself
  • Query from patch tokens β†’ attends to all patch tokens, the class token, and the distillation token

This means the distillation token and class token are in mutual interaction throughout all 12 layers. They can influence each other's representations: the class token can learn to incorporate information that the distillation token has extracted about the teacher's preferred features, and vice versa. This is fundamentally different from standard distillation, where the teacher's influence only appears as an output-level loss term and never interacts with the model's internal representations.

The supervision mechanism. After the final (12th) transformer block, the distillation token's output embedding (call it $z_{\text{distill}} \in \mathbb{R}^D$) is fed to a separate linear classifier (a weight matrix $W_{\text{distill}} \in \mathbb{R}^{D \times C}$ where C=1000 is the number of ImageNet classes) to produce logits $Z_s^{\text{distill}} = W_{\text{distill}} \cdot z_{\text{distill}}$. These logits are supervised by the teacher network's hard-label prediction through a cross-entropy loss.

The hard-label distillation loss. The teacher network (typically RegNetY-16GF, pre-trained on ImageNet-1k with the same data augmentation as DeiT) processes the exact same augmented input image and produces its own logits $Z_t$. The teacher's hard decision is:

yt=arg⁑max⁑cZt(c)y_t = \arg\max_c Z_t(c)

The loss associated with the distillation token is then:

Ldistill=LCE(ψ(Zsdistill),yt)\mathcal{L}_{\text{distill}} = \mathcal{L}_{\text{CE}}\left(\psi(Z_s^{\text{distill}}), y_t\right)

where $Z_s^{\text{distill}}$ is the student's distillation-head logits, $\psi$ is the softmax function, $\mathcal{L}_{\text{CE}}$ is the standard cross-entropy loss, and $y_t$ is the teacher's hard label.

Operational meaning. For each training image, the teacher network makes a prediction (the ImageNet class it thinks is most likely). That prediction becomes a target label β€” treated exactly like a ground-truth label β€” for the distillation token's classifier. If the teacher predicts "golden retriever" with high confidence, the distillation token is trained to also output "golden retriever" with high probability, regardless of whether that happens to match the ground-truth label. The distillation token therefore learns to mimic the teacher's behavior, not the dataset's ground truth.

Why a separate token rather than a separate loss on the class token? This is the core design question. The paper's answer (validated by experiment) is that having two distinct tokens allows the model to learn two complementary classification strategies that can be combined at inference time. The class token learns from ground-truth labels (emphasizing whatever features are genuinely predictive of the true class), while the distillation token learns from the teacher (emphasizing features that the teacher finds predictive, which may include convnet inductive biases about texture, shape, or spatial relationships). The tokens interact through attention, so each can influence the other's feature extraction, but they maintain separate output heads, preserving their distinct "perspectives" on the image.

Experimental validation of the two-token design. The paper reports a crucial ablation (Section 4): "we experimented with a transformer with two class tokens. Even if we initialize them randomly and independently, during training they converge towards the same vector (cos=0.999), and the output embedding are also quasi-identical. This additional class token does not bring anything to the classification performance." This demonstrates that simply having two tokens is not enough β€” the tokens need different supervision targets to specialize into complementary roles. The distillation token works because it is supervised by the teacher's labels, while the class token is supervised by the ground-truth labels. This differential supervision creates a gradient signal that pushes the two token representations apart.

Cosine similarity between tokens. The paper measures the cosine similarity between the class and distillation embeddings at different layers and reports: "the average cosine similarity between these tokens equal to 0.06" initially (early layers), but "they gradually become more similar through the network, all the way through the last layer at which their similarity is high (cos=0.93), but still lower than 1." This is expected behavior: in early layers, the tokens extract different features because they are optimizing different objectives; in later layers, they converge somewhat because they are both trying to represent the same image and produce similar (but not identical) class predictions. The fact that the final similarity is 0.93, not 1.0, confirms that the tokens are not simply duplicating each other's function.

The teacher architecture matters β€” convnets are better teachers. Table 2 shows a striking result: when using a convnet as the teacher, the distilled student performs better than when using another transformer as the teacher, even when the transformer teacher has higher standalone accuracy:

"DeiT-B (81.8% standalone) as teacher β†’ DeiT-Bβš— student gets 81.9% (no improvement)"
"RegNetY-16GF (82.9% standalone) as teacher β†’ DeiT-Bβš— student gets 83.1% (significant improvement)"

The paper's interpretation (drawing on Abnar et al.) is that "the convnet is a better teacher is probably due to the inductive bias inherited by the transformers through distillation." The convnet teacher has built-in translation equivariance and locality through its convolutional architecture β€” properties that help it generalize on ImageNet. Through the distillation token's attention interactions, the transformer student can learn to approximate these same behaviors by learning attention patterns that mimic convnet-like processing (e.g., attending primarily to neighboring patches for texture features, attending more broadly for shape features).

Comparison with standard distillation methods. The paper evaluates three distillation paradigms:

  1. Soft distillation (standard Hinton et al. approach): KL divergence between teacher and student softmax distributions, with temperature $\tau$ and a balancing coefficient $\lambda$ between distillation loss and ground-truth cross-entropy:

    Lglobal=(1βˆ’Ξ»)LCE(ψ(Zs),y)+λτ2KL(ψ(Zs/Ο„),ψ(Zt/Ο„))\mathcal{L}_{\text{global}} = (1 - \lambda) \mathcal{L}_{\text{CE}}(\psi(Z_s), y) + \lambda \tau^2 \text{KL}(\psi(Z_s/\tau), \psi(Z_t/\tau))

    where $Z_s$ is student logits, $Z_t$ is teacher logits, $y$ is ground-truth label, $\psi$ is softmax, $\tau$ is temperature (set to 3.0), and $\lambda$ balances the two terms (set to 0.1). The $\tau^2$ multiplier on the KL term compensates for the temperature scaling of gradients.

    What it computes: The first term is standard supervised cross-entropy (student predictions should match ground truth). The second term measures the divergence between the student's temperature-scaled probability distribution and the teacher's temperature-scaled distribution. When $\tau > 1$, the softmax distributions are "softened" β€” probability mass spreads from the predicted class to other classes, revealing the teacher's relative confidence about which classes are similar. The student learns not just the teacher's top prediction, but the teacher's full ranking of class plausibilities.

    Why this form: The KL divergence forces the student to match the teacher's entire output distribution, not just its argmax. This captures the teacher's uncertainty and class similarities (e.g., if the teacher assigns 0.6 probability to "golden retriever" and 0.3 to "Labrador," the student learns that these classes are visually similar). The temperature $\tau$ controls how much the teacher's distribution is softened: $\tau=1$ preserves the original distribution; $\tau \to \infty$ makes it uniform (no information); intermediate $\tau$ highlights the teacher's relative confidence ranking. The $\tau^2$ gradient scaling factor ensures that the magnitude of the distillation gradient doesn't shrink with temperature.

  2. Hard-label distillation (the paper's primary variant for the class token): simply use the teacher's argmax as an additional ground-truth label, with the losses averaged:

    LglobalhardDistill=12LCE(ψ(Zs),y)+12LCE(ψ(Zs),yt)\mathcal{L}_{\text{global}}^{\text{hardDistill}} = \frac{1}{2} \mathcal{L}_{\text{CE}}(\psi(Z_s), y) + \frac{1}{2} \mathcal{L}_{\text{CE}}(\psi(Z_s), y_t)

    where $y$ is ground truth and $y_t$ is the teacher's hard prediction. This is applied to the class token's output when using hard distillation without the distillation token (the "DeiT – hard distillation" row in Table 3).

    What it computes: Equal-weight average of two cross-entropy losses: one against the true label, one against the teacher's best guess. No temperature, no distribution matching β€” just two hard classification targets.

    Why this form: The paper argues this is "parameter-free and conceptually simpler" than soft distillation β€” no temperature $\tau$ or balancing coefficient $\lambda$ to tune. The teacher prediction $y_t$ plays the same structural role as the true label $y$. Additionally, the hard label may be more robust to data augmentation: "the hard label associated with the teacher may change depending on the specific data augmentation," meaning the teacher sees the same augmented crop as the student, and its hard prediction reflects what it would conclude from that specific view. This aligns the teacher's supervision with the actual input the student sees, addressing the "misalignment between the real label and the image" that can occur when aggressive cropping removes the labeled object.

  3. Distillation token with hard labels (the paper's contribution, DeiTβš—): the class token receives ground-truth supervision, the distillation token receives teacher hard-label supervision, and both losses are applied:

    Lglobaltoken=LCE(ψ(Zsclass),y)+LCE(ψ(Zsdistill),yt)\mathcal{L}_{\text{global}}^{\text{token}} = \mathcal{L}_{\text{CE}}(\psi(Z_s^{\text{class}}), y) + \mathcal{L}_{\text{CE}}(\psi(Z_s^{\text{distill}}), y_t)

    where $Z_s^{\text{class}}$ is the class-head logits and $Z_s^{\text{distill}}$ is the distillation-head logits.

    What it computes: Two independent supervision signals applied to two separate classification heads that share the same transformer backbone. The class head learns from ground truth; the distillation head learns from the teacher. The backbone processes both tokens through shared attention layers, so gradient signals from both losses flow through all transformer parameters.

    Why this form: This separates the two objectives (ground truth vs. teacher) into separate pathways that can interact through attention but maintain distinct output behaviors. The class token is free to learn features that directly predict the true label, without being forced to also match the teacher's potential mistakes. The distillation token specializes in mimicking the teacher. At inference time, the two classifiers' softmax outputs are summed (late fusion), combining the complementary perspectives.

Empirical comparison of distillation methods (Table 3). The results for DeiT-B at 224Β² with 300 training epochs:

MethodTop-1 Acc.
No distillation81.8%
Soft distillation81.8% (no gain)
Hard distillation (class token only)83.0% (+1.2%)
DeiTβš—: class embedding only83.0%
DeiTβš—: distillation embedding only83.1%
DeiTβš—: class + distillation (late fusion)83.4% (+1.6%)

Several observations: (a) soft distillation provides zero improvement over no distillation for transformers β€” this is a negative result that the paper does not deeply analyze but is consistent with the finding that hard labels work better in this context; (b) hard distillation on the class token alone already gives 83.0%, showing that simply adding the teacher's hard label as a second target is beneficial; (c) the distillation token alone (83.1%) slightly outperforms the class token alone (83.0%), suggesting the teacher's inductive bias is marginally more useful than ground truth for this model size and training duration; (d) combining both heads via late fusion gives 83.4%, confirming that the two tokens provide complementary information.


The Training Recipe: Data Augmentation and Regularization

The second half of DeiT's contribution is the systematic adaptation of convnet training techniques to the transformer context. Since transformers lack convolutional inductive biases, they are more prone to overfitting on ImageNet's limited 1.28M images. The training recipe compensates by heavily regularizing and augmenting the data so the model is forced to learn robust, generalizable features rather than memorizing training examples.

Why aggressive augmentation is necessary. The paper states: "Compared to models that integrate more priors (such as convolutions), transformers require a larger amount of data." With convolutions, translation equivariance and local receptive fields provide a strong prior that nearby pixels are related and that features should be shift-invariant. Transformers have to learn these properties from scratch through self-attention patterns, which requires seeing many diverse examples of the same object in different positions, orientations, and contexts. When data is limited, augmentation artificially creates this diversity.

RandAugment. This is an automated data augmentation strategy that applies a random sequence of image transformations (e.g., rotation, translation, shear, color jittering, contrast adjustment) with randomly sampled magnitudes. The authors use the timm library's customization with parameters 9/0.5 (meaning 9 augmentation operations are sampled per image, with a magnitude scale of 0.5). The paper's ablation (Table 8) shows that removing RandAugment drops pre-training accuracy at 224Β² from 81.8% to 79.6% β€” a 2.2% decrease β€” and fine-tuned accuracy at 384Β² from 83.1% to 80.4%. This is tied with Mixup+CutMix removal as the largest single-factor degradation, confirming that strong augmentation is critical.

Mixup. Mixup creates training examples by taking convex combinations of two images and their labels. For two images $x_i, x_j$ with one-hot labels $y_i, y_j$, the mixed example is:

x~=Ξ»xi+(1βˆ’Ξ»)xj\tilde{x} = \lambda x_i + (1 - \lambda) x_j y~=Ξ»yi+(1βˆ’Ξ»)yj\tilde{y} = \lambda y_i + (1 - \lambda) y_j

where $\lambda \sim \text{Beta}(\alpha, \alpha)$ with $\alpha$ controlling the strength of mixing (higher $\alpha$ β†’ more uniform mixing; lower $\alpha$ β†’ closer to original images). The paper uses a Mixup probability of 0.8 (meaning 80% of batches use Mixup, 20% use original images). When deactivated in the ablation, pre-training accuracy drops from 81.8% to 80.0%.

Operational meaning. Mixup forces the model to produce predictions that are linear interpolations between class probabilities, rather than hard one-hot outputs. If an image is 70% cat and 30% dog (in pixel space), the model should output approximately [0.7, 0.3] for those two classes. This prevents the model from becoming overconfident about training examples and encourages smoother decision boundaries. For transformers specifically, it prevents the attention patterns from becoming "overly specialized to exact training instances."

CutMix. Similar to Mixup, but instead of blending entire images pixel-wise, CutMix replaces a rectangular region of one image with a patch from another image. The label mixing proportion equals the area fraction of the replaced region. The paper uses CutMix probability 1.0 (always applied when activated). Deactivating it drops pre-training accuracy from 81.8% to 78.7% β€” a 3.1% drop, making it the single most important augmentation in the ablation.

Why CutMix matters more for transformers. The paper hypothesizes that CutMix is particularly important because transformers process images as patches: when a contiguous region is replaced, the model must learn to attend to the correct patches for classification and ignore the "intruder" patches. This directly trains the attention mechanism to be spatially selective β€” a property that convnets get for free through their local receptive fields and pooling.

Random erasing. This randomly selects a rectangular region of the image and replaces it with random noise or a constant value. The paper uses an erasing probability of 0.25. Deactivating it (along with CutMix and Mixup simultaneously β€” the ablation tests combinations) contributes to the degradation from 81.8% to 75.8% when all three are removed.

Repeated augmentation. This is described as "one of the key ingredients": within a batch, each image is repeated multiple times (3 repetitions in DeiT) with different random augmentations applied to each copy. This means during one epoch, the model sees only one-third of the unique training images, but sees each image three times with different transforms. The paper notes: "since we use repeated augmentation with 3 repetitions, we only see one third of the images during a single epoch," and "we prefer to refer to this as 300 epochs in order to have a direct comparison on the effective training time."

Why repeated augmentation helps. This technique increases the effective batch diversity for a given number of unique images. For transformers, which need to learn augmentation-invariant features, seeing multiple augmented versions of the same image in close succession (within the same batch or nearby batches) provides explicit contrastive signal: "this cat looks different after rotation, but it's still the same cat β€” learn features that are invariant to rotation." The ablation shows that deactivating repeated augmentation drops pre-training accuracy from 81.8% to 76.5% β€” a 5.3% decrease, making it arguably the single most critical component of the entire training recipe.

Stochastic depth. This randomly drops entire transformer blocks during training (each block has a probability of being skipped, with higher probabilities for deeper blocks). The paper uses a stochastic depth rate of 0.1. In the ablation, removing stochastic depth causes catastrophic training failure: "3.4%* β€” did not train well, possibly because hyper-parameters are not adapted." This asterisk is crucial β€” it means stochastic depth is not just a mild regularizer but is necessary for the optimization to converge at all with the chosen hyperparameters. The paper notes that stochastic depth "facilitates the convergence of transformers, especially deep ones," and was "first adopted in the training procedure by Wightman" in the timm library.

Why stochastic depth enables convergence. Deep transformers suffer from optimization difficulties: gradients must propagate through 12 sequential blocks, and without stochastic depth, the early layers may receive vanishing gradients because the later layers can "shortcut" the optimization (the residual connections plus layer normalization allow later layers to mostly ignore early layer outputs). By randomly dropping blocks, stochastic depth forces all blocks to be useful β€” any block might be needed when others are dropped, so gradients flow more evenly across layers. This is analogous to dropout forcing all neurons to be useful rather than relying on a subset.

Label smoothing. Ground-truth labels are modified so that the target probability for the correct class is $1 - \varepsilon$ and the remaining $\varepsilon$ probability mass is distributed uniformly across all other classes. The paper uses $\varepsilon = 0.1$. This is applied in "all experiments that use true labels." Label smoothing prevents the model from becoming overconfident (predicting probability near 1.0 for the correct class) and has been shown to improve generalization and calibration, particularly when combined with distillation.

Dropout. Notably, the paper explicitly excludes standard dropout from the training recipe: "One exception is dropout, which we exclude from our training procedure." The ViT-B paper used dropout=0.1. The removal suggests that the other regularizers (stochastic depth, data augmentation) are sufficient, and adding dropout on top would over-regularize.

Optimization hyperparameters (Table 9). The paper uses the AdamW optimizer (Adam with decoupled weight decay) with specific settings derived from systematic cross-validation:

  • Learning rate: $5 \times 10^{-4} \times \frac{\text{batchsize}}{512}$ β€” the base learning rate is scaled linearly with batch size, following Goyal et al. but using 512 as the reference batch size instead of 256. For the default batch size of 1024, the effective learning rate is $5 \times 10^{-4} \times \frac{1024}{512} = 1 \times 10^{-3}$.
  • Weight decay: 0.05. The paper explicitly notes this is "much smaller" than ViT's weight decay of 0.3, and that "the weight decay reported in the paper hurts the convergence in our setting." This is an important practical detail: ViT's optimization recipe was tuned for JFT-300M pre-training, and it doesn't transfer to ImageNet-only training.
  • Learning rate schedule: cosine decay from the initial value to near-zero over the full training duration (300 epochs by default).
  • Warmup: 5 epochs of linear warmup, where the learning rate increases linearly from 0 to the initial value.
  • Batch size: 1024 (compared to ViT's 4096). The paper notes that "not having to rely on batch-norm allows one to reduce the batch size without impacting performance, which makes it easier to train larger models."
  • Gradient clipping: not used (ViT used gradient clipping at 1.0).
  • Training epochs: 300 by default, with extended 1000-epoch runs for the best distilled models.

The cross-validation procedure. The paper systematically evaluated hyperparameters: "we tried 3 different learning rates (5Γ—10⁻⁴, 3Γ—10⁻⁴, 5Γ—10⁻⁡) and 3 weight decay (0.03, 0.04, 0.05)." The chosen values represent the best from this grid search.

Weight initialization. Transformers are "relatively sensitive to initialization" β€” the paper reports testing several options, with some "not converging." The chosen method follows Hanin and Rolnick: truncated normal distribution for all weight matrices. This initialization draws random values from a normal distribution and resamples any values more than two standard deviations from the mean, preventing extreme initial weights that could destabilize early training.

Exponential Moving Average (EMA). The paper evaluated maintaining an EMA of the model parameters during training (where the EMA model is a smoothed version: $\theta_{\text{EMA}} \leftarrow \beta \theta_{\text{EMA}} + (1-\beta) \theta_{\text{current}}$). The finding: "There are small gains, which vanish after fine-tuning: the EMA model has an edge of 0.1 accuracy points, but when fine-tuned the two models reach the same (improved) performance." Therefore EMA is not used in the final configuration.


Fine-Tuning at Higher Resolution

The best DeiT results use a two-stage training procedure: initial training at 224Γ—224 resolution, followed by fine-tuning at 384Γ—384 resolution. This follows the FixRes approach of Touvron et al., and the paper argues it "speeds up the full training and improves the accuracy under prevailing data augmentation schemes."

Why two-stage training? Training at higher resolution is slower (more patches β†’ longer sequences β†’ more computation per image). By doing the bulk of training at the lower resolution and only fine-tuning at the higher resolution, the total training time is reduced while still benefiting from the increased detail at inference time.

Positional embedding interpolation. When increasing resolution from 224Β² to 384Β², the patch size stays fixed at 16Γ—16, so the number of patches increases from $14 \times 14 = 196$ to $24 \times 24 = 576$. Each patch needs a positional embedding, but the pre-trained model only has embeddings for 196 patch positions plus the class token. The solution: interpolate the learned positional embeddings to the new grid size.

The interpolation method matters. The paper describes a subtle failure mode: "a bilinear interpolation of a vector from its neighbors reduces its β„“β‚‚-norm compared to its neighbors. These low-norm vectors are not adapted to the pre-trained transformers and we observe a significant drop in accuracy if we employ use directly without any form of fine-tuning." In simple terms: bilinear interpolation averages neighboring vectors, and averaging reduces vector magnitude. The transformer was trained with positional embeddings of a certain expected magnitude; feeding it systematically smaller-magnitude embeddings for new positions causes a distribution shift that hurts performance before fine-tuning.

The solution: bicubic interpolation. Bicubic interpolation "approximately preserves the norm of the vectors" β€” it uses a higher-order polynomial fit that doesn't reduce magnitude the way linear averaging does. This ensures the interpolated positional embeddings are in the same norm range as the original embeddings, so the model can process higher-resolution images without an immediate accuracy degradation, and fine-tuning can then adapt the embeddings and the rest of the model to the higher-resolution representation.

Fine-tuning hyperparameters and schedule. The fine-tuning stage uses the same data augmentation as training (contrary to the dampened augmentation used in the original FixEfficientNet paper), the same regularization, and either AdamW or SGD optimizer β€” the paper reports both have "similar performance for the fine-tuning stage." The fine-tuning runs for approximately 25 epochs, taking 20 hours on a single 8-GPU node for DeiT-B. For distillation during fine-tuning, the paper uses both the true label and teacher prediction, and notes that "we have also tested with true labels only but this reduces the benefit of the teacher and leads to a lower performance."


Inference: Late Fusion of Class and Distillation Classifiers

At test time, the trained DeiTβš— model produces two separate output embeddings from the final transformer block: the class token embedding and the distillation token embedding. Each is fed to its own linear classifier (learned during training) to produce logits. The paper evaluates three inference strategies:

  1. Class embedding only: use only the class token's classifier output (softmax of $W_{\text{class}} \cdot z_{\text{class}}$).
  2. Distillation embedding only: use only the distillation token's classifier output (softmax of $W_{\text{distill}} \cdot z_{\text{distill}}$).
  3. Late fusion (class + distillation): add the softmax outputs of both classifiers and predict the argmax of the sum.

The late fusion is the "referent method" and produces the best results (Table 3): for DeiT-Bβš— at 224Β², class-only gets 83.0%, distillation-only gets 83.1%, and late fusion gets 83.4%. The improvement from late fusion confirms that the two heads capture partially independent information β€” if they made identical predictions on all images, summing their outputs would provide no benefit. The 0.3–0.4% gain from combining them indicates that when one head is uncertain, the other often provides corrective signal.

Why late fusion rather than early fusion? An alternative would be to combine the two token embeddings before the classifier (e.g., average them and use a single classifier). The paper's choice of separate classifiers with output-level fusion preserves the independence of the two pathways: each classifier is optimized for its specific objective (ground truth vs. teacher), and the fusion happens at the decision level rather than the representation level. This means the model doesn't need to learn how to combine the two representations into a single embedding space β€” it just needs to produce two probability distributions that, when summed, peak at the correct class.

4. Key Insights and Innovations

Innovation 1: Reframing Transformer Data Inefficiency as a Training Recipe Problem, Not an Architectural Limitation

The dominant narrative when DeiT was published β€” established by Dosovitskiy et al.'s ViT paper β€” was that vision transformers fundamentally require massive external datasets (like JFT-300M with 300 million images) to achieve competitive accuracy. The ViT paper's own words were that transformers "do not generalize well when trained on insufficient amounts of data." This wasn't presented as a training methodology issue; it was presented as an inherent property of attention-based architectures lacking the inductive biases that convnets possess natively.

DeiT's pivotal conceptual move is to reject this framing. The paper demonstrates that the poor ImageNet-only performance of ViT-B (77.9% top-1) is not evidence of a fundamental data requirement but rather evidence that the training recipe inherited from NLP β€” moderate data augmentation, high weight decay, standard dropout β€” is poorly suited to vision transformers trained on mid-scale datasets. The proof is straightforward but powerful: without changing a single architectural parameter from ViT-B, DeiT-B achieves 83.1% on ImageNet-1k β€” a 5.2 percentage point improvement β€” by systematically applying augmentation and regularization techniques originally developed for convnets.

What makes this more than just "better hyperparameters" is the diagnostic insight it implies: vision transformers are not data-inefficient in some absolute sense; they are regularization-hungry. Convnets get strong regularization "for free" from their architectural priors β€” translation equivariance means that shifting an image by one pixel doesn't fundamentally change the feature maps, and local receptive fields mean that each neuron sees only a small input region, preventing it from memorizing global patterns. Transformers have none of this: self-attention is global from the first layer, and there is no built-in notion that nearby patches should be processed similarly. The paper's insight is that data augmentation serves as a substitute for architectural priors β€” RandAugment artificially creates translation and viewpoint variance that convolution would handle natively; Mixup and CutMix force the model to learn compositional representations rather than memorizing whole-image templates; repeated augmentation provides the explicit contrastive signal that "this object looks different after transformation but is still the same class."

The ablation study (Table 8) provides concrete evidence for this reframing. The most impactful individual components are those that directly compensate for missing inductive biases: CutMix removal costs 3.1% (the model loses its primary mechanism for learning spatial selectivity of attention), repeated augmentation removal costs 5.3% (the model loses the explicit invariance training that convolutions would provide implicitly). These aren't marginal gains from hyperparameter tuning β€” they're evidence that the training recipe is performing architectural work that the model itself lacks.

This reframing has significant downstream implications beyond the paper's own results. It suggests that the path to better vision transformers isn't necessarily to add convolutional layers back (the hybrid architecture approach) but rather to develop training strategies that teach pure attention models the functional properties that convolutions provide. The distillation token can be understood as the logical extension of this philosophy: if augmentation compensates for missing invariance priors, distillation compensates for missing processing priors by letting the model learn convnet-like attention patterns through teacher supervision.

Innovation 2: The Distillation Token as a Mechanism for Injecting Teacher Supervision into the Transformer's Internal Processing, Not Just Its Output

Knowledge distillation, from Hinton et al. onward, had always been formulated as an output-space operation: the student's final predictions are pushed toward the teacher's predictions through a loss function. Whether soft (KL divergence between probability distributions) or hard (cross-entropy against teacher argmax), the teacher's influence is applied at the final layer. The student's internal representations β€” how it processes the input through its layers β€” are shaped only indirectly, through backpropagation of the distillation gradient from the output.

DeiT's distillation token changes this fundamentally. By introducing a second token into the transformer's input sequence that is supervised by the teacher but participates in all self-attention operations identically to the class token, the teacher's influence is injected at every layer, not just at the output. The distillation token interacts with patch tokens through attention in layer 1, layer 2, ..., layer 12. At each layer, the attention mechanism can route information between the distillation pathway and the class pathway: the class token can attend to the distillation token to incorporate teacher-aligned features, and the distillation token can attend to the class token to incorporate ground-truth-aligned features.

This is a conceptual shift from distillation as output matching to distillation as representation shaping through architectural parallelism. The two tokens form what the paper calls "complementary" processing streams within the shared transformer backbone. The evidence that this matters β€” and isn't just equivalent to having two class tokens β€” comes from the paper's negative result: "we experimented with a transformer with two class tokens... during training they converge towards the same vector (cos=0.999), and the output embedding are also quasi-identical. This additional class token does not bring anything to the classification performance." Two tokens with identical supervision collapse to redundancy. Two tokens with different supervision (ground truth vs. teacher) maintain distinct representations (cosine similarity 0.93 at the final layer, not 1.0) and provide complementary predictions that improve accuracy when fused.

The finding that this token-based approach outperforms standard distillation β€” and that the improvement is not marginal (Table 3: 83.4% for DeiTβš— late fusion vs. 81.8% for soft distillation) β€” validates the design principle at a conceptual level. If the only thing that mattered was the teacher's output distribution, soft distillation on the class token would work equally well. It doesn't, which implies that the architectural mechanism β€” the attention-level interaction between teacher-supervised and ground-truth-supervised representations β€” provides something that output-level distillation cannot.

This innovation opens a design space that didn't exist before. Rather than thinking of distillation as a loss function choice, researchers can now think about where and how to inject teacher signals into a transformer's processing. Should there be multiple distillation tokens from different teachers? Should the distillation token have specialized attention patterns (e.g., attending only to spatially-local patches to encourage convnet-like processing)? Should the distillation signal be applied at intermediate layers rather than only at the output? The paper doesn't explore these, but the architecture makes them possible in a way that standard distillation does not.

Innovation 3: Empirical Discovery That Convnet Teachers Are Better for Transformer Students Than Transformer Teachers β€” The Inductive Bias Transfer Hypothesis

Table 2 contains a result that is easy to overlook but carries substantial weight: a transformer teacher (DeiT-B at 81.8% standalone accuracy) provides essentially zero benefit to a transformer student (DeiT-Bβš— achieves 81.9%), while a convnet teacher (RegNetY-16GF at 82.9% standalone) raises the student to 83.1%. The convnet teacher is more accurate, but the improvement the student gets (+0.2% from the convnet's accuracy advantage of 1.1%) is disproportionately small β€” something else is happening.

The paper's interpretation draws on Abnar et al.'s work on transferring inductive biases through knowledge distillation: a convnet teacher encodes in its predictions not just "what class is this" but also how it arrived at that conclusion β€” through translation-equivariant feature detectors, through local-to-global hierarchical processing, through spatial pooling. These processing biases manifest in the teacher's output patterns (which classes it confuses, which augmentations change its predictions, how its confidence distributes across similar classes), and through distillation, the student can learn to reproduce these patterns without having the architectural machinery that generated them.

This is a significant finding for two reasons. First, it provides empirical evidence for a claim that had previously been largely theoretical: that distillation can transfer not just knowledge but architectural properties. The fact that a convnet teacher helps but a transformer teacher doesn't (despite the transformer teacher having comparable accuracy) isolates the effect to architecture-specific processing biases rather than general classification competence.

Second, it suggests a practical principle that runs counter to the natural assumption that "better teacher β†’ better student." A teacher with 81.8% accuracy that processes images like a transformer provides no benefit to another transformer, while a teacher with 82.9% accuracy that processes images like a convnet provides significant benefit. The teacher's architectural complementarity to the student matters more than its raw accuracy. This has implications for future distillation work: when distilling into a transformer, prefer a teacher with different architectural biases, not just higher accuracy.

The paper supports this with the disagreement analysis in Table 4: the distillation-head classifier disagrees with the convnet teacher on only 10.0% of images, while the class-head classifier disagrees on 11.2%. Both are lower than the 13.3% disagreement between the convnet and the non-distilled DeiT. This quantifies the bias transfer: the distillation token learns to make decisions that are more convnet-aligned, and this alignment persists even though the student has no convolutional layers.

Innovation 4: The Result That Pure Attention Models Can Match Heavily-Optimized Convnets on the Accuracy-Throughput Tradeoff β€” A Watershed Moment Rather Than an Incremental Improvement

While the paper presents 85.2% top-1 accuracy as its headline number, the deeper innovation is what Figure 1 and Table 5 collectively demonstrate: DeiTβš— models match or exceed EfficientNets on the accuracy-throughput Pareto frontier. This is not a given β€” EfficientNets were the product of neural architecture search run on the ImageNet validation set, representing years of cumulative optimization of the convnet paradigm. They were, in a meaningful sense, as good as convnets were going to get on this benchmark at these throughput levels.

DeiT achieves parity with essentially no architecture search (the backbone is directly inherited from ViT, which was designed for NLP and minimally adapted for images) and no convnet-specific engineering (no kernel optimization, no depthwise separable convolutions, no squeeze-and-excitation modules). The only architectural addition is the distillation token β€” a 768-dimensional vector that adds negligible computational cost but provides the inductive bias transfer that closes the remaining gap.

What makes this a conceptual innovation rather than just a strong result is that it shifts the default expectation for the field. Before DeiT, the reasonable assumption was that pure transformers would need either (a) massive external data or (b) hybrid convnet components to compete with optimized convnets on mid-scale datasets. After DeiT, the assumption becomes: pure transformers can compete with optimized convnets given the right training methodology and distillation, and the remaining gap is likely closable through transformer-specific architecture innovations (which, unlike convnets, had seen essentially zero architecture search at the time).

The paper implicitly makes this argument by noting that "convolutional neural networks have optimized, both in terms of architecture and optimization during almost a decade, including through extensive architecture search that is prone to overfitting." DeiT, by contrast, represents essentially "generation zero" of vision transformer training methodology β€” adapting convnet techniques without developing transformer-specific ones. The fact that this already reaches EfficientNet-level performance implies that transformer-specific innovations (augmentations designed for patch-based processing, regularization that exploits attention structure, architecture search in the transformer design space) have significant headroom.

The transfer learning results (Table 7) reinforce this: on CIFAR-10, CIFAR-100, Flowers, Cars, iNaturalist-18, and iNaturalist-19, DeiT-Bβš— matches or exceeds EfficientNet-B7 and ViT models trained on JFT-300M. The generalization isn't ImageNet-specific β€” the training methodology produces representations that transfer broadly, just as convnets do.

5. Experimental Analysis

Evaluation Methodology

  • Dataset. All experiments use the ImageNet-1k dataset (Russakovsky et al., 2015), consisting of approximately 1.28 million training images and 50,000 validation images across 1,000 object categories. The paper also evaluates on ImageNet V2 (matched frequency) and ImageNet Real (re-labeled validation set) to assess validation set overfitting, and on seven transfer learning datasets: CIFAR-10, CIFAR-100, Oxford-102 Flowers, Stanford Cars, iNaturalist-18, and iNaturalist-19.

  • Base model(s). The primary architecture is the ViT-B variant from Dosovitskiy et al., with embedding dimension D=768, h=12 heads, d=64 per head, and 12 transformer blocks (86M parameters). The paper also introduces two smaller variants β€” DeiT-S (D=384, h=6, 22M parameters) and DeiT-Ti (D=192, h=3, 5M parameters) β€” which scale down embedding dimension and head count while keeping d=64 constant, enabling a family of models with different throughput-accuracy tradeoffs. The architecture is identical to ViT in all structural respects; the differences are purely in training methodology and the optional distillation token (which adds ~1M parameters for the additional classifier head and input embedding).

  • Metrics. The primary metric is top-1 accuracy on ImageNet validation (percentage of images where the model's highest-confidence prediction matches the ground-truth label). All reported accuracies use single-crop evaluation (one forward pass per image at the model's operating resolution, typically 224Β² or 384Β²). Throughput is measured as images processed per second on a single 16GB V100 GPU, using the largest possible batch size for each model's resolution and averaging over 30 runs. For transfer learning, top-1 accuracy is reported on each downstream dataset's test set. For the disagreement analysis (Table 4), the metric is the fraction of images where two classifiers make different predictions (disagreement rate).

  • Baselines. The paper compares against multiple established model families: (1) ViT models (Dosovitskiy et al.) β€” ViT-B/16, ViT-B/32, ViT-L/16, ViT-L/32 β€” trained on either ImageNet-1k or JFT-300M, representing the prior state-of-the-art for pure transformer architectures; (2) ResNet family (He et al.) β€” ResNet-18, ResNet-50, ResNet-101, ResNet-152 β€” as representative traditional convnets; (3) RegNetY family (Radosavovic et al.) β€” RegNetY-4GF through 16GF β€” which serve both as baselines and as teacher networks for distillation; (4) EfficientNet family (Tan and Le) β€” EfficientNet-B0 through B7 and the RandAugment-trained variants (B5 RA, B7 RA) β€” representing heavily-optimized, architecture-searched convnets at the time; (5) KDforAA-B8 β€” a larger EfficientNet variant trained with knowledge distillation, included as the strongest convnet baseline at 85.8% top-1. All compared models are trained on ImageNet-1k only with no external data, unless explicitly noted otherwise (e.g., ViT models pre-trained on JFT-300M are noted in Table 5).

  • Generation budget / compute accounting. The paper does not use a "generation budget" in the LLM sense since this is a single-pass classification task. Instead, compute fairness is assessed through training time (wall-clock hours on specific hardware) and inference throughput (images/second on a V100 GPU). Training time for DeiT-B is reported as 53 hours on a single 8-GPU node for 300 epochs, with 2-node training reducing this to 37 hours. Fine-tuning adds ~20 hours on 8 GPUs. The paper explicitly compares training cost against convnets (e.g., "a similar training with a RegNetY-16GF is 20% slower"). For distillation experiments, the teacher network's predictions are pre-computed or generated on-the-fly during student training (the paper does not specify which), and this cost is not included in the reported training time β€” a common convention in distillation papers but worth noting for complete cost accounting.

  • Cross-validation / statistical protocol. The paper conducts a systematic hyperparameter search for optimization settings: "we tried 3 different learning rates (5Γ—10⁻⁴, 3Γ—10⁻⁴, 5Γ—10⁻⁡) and 3 weight decay (0.03, 0.04, 0.05)." The results in Table 8 represent single-run outcomes under the chosen hyperparameters; there is no report of multiple random seeds or confidence intervals. The ablation study uses a fixed hyperparameter configuration (Table 9 defaults) and tests variations one at a time, meaning interactions between hyperparameters and ablated components are not explored. For the transfer learning experiments (Table 7), each downstream dataset follows its own standard train/test split as reported in Table 6, with no additional cross-validation. The disagreement analysis (Table 4) is computed on the full ImageNet validation set of 50,000 images.

Main Quantitative Results

ImageNet Accuracy: Closing the Gap with Convnets

The headline result (Table 5) is that DeiT-B achieves 81.8% top-1 accuracy on ImageNet at resolution 224Β² with 300 training epochs β€” a substantial improvement over ViT-B's 77.9% under the same data constraints (ImageNet-1k only, no external pre-training). This 3.9 percentage point gain (the paper claims 6.3% improvement, but this appears to compare against an earlier ViT-B baseline of 75.5% from different training conditions β€” the Table 5 value for ViT-B/16 at 77.9% is the direct comparison point) is achieved with no architectural changes whatsoever, isolating the contribution of the training recipe.

After fine-tuning at 384Β² resolution, DeiT-B↑384 reaches 83.1%, surpassing ViT-B/16 pre-trained on JFT-300M (which achieves 77.9% at 384Β² β€” though note ViT-B/16 was not fine-tuned at 384Β², so this is not a perfectly matched comparison). The paper frames this as evidence that JFT-300M pre-training is unnecessary when the training recipe is properly adapted.

When distillation is added (DeiT-Bβš— with 300 epochs at 224Β²), accuracy improves to 83.4%. Extending training to 1000 epochs pushes this to 84.2%. The final distilled model with 1000-epoch pre-training and 384Β² fine-tuning (DeiT-Bβš—β†‘384 / 1000 epochs) reaches 85.2% top-1 accuracy on ImageNet.

To contextualize this against the convnet state of the art (all trained on ImageNet-1k only, no external data):

ModelResolutionTop-1 Acc.
ResNet-152224Β²78.3%
EfficientNet-B7600Β²84.3%
EfficientNet-B5 RA456Β²83.7%
KDforAA-B8 (convnet, distilled)800Β²85.8%
DeiT-Bβš—β†‘384 / 1000 epochs384Β²85.2%
ViT-B/16 (JFT-300M)384Β²84.15%

The distilled DeiT-Bβš— outperforms the ViT-B model pre-trained on JFT-300M at 384Β² (85.2% vs. 84.15%), despite using only 1/250th the pre-training data. It falls 0.6% short of KDforAA-B8, the strongest convnet baseline β€” which uses a larger resolution (800Β² vs. 384Β²), a convnet architecture with built-in inductive biases, and its own distillation procedure. The paper's smaller variants achieve competitive trade-offs: DeiT-S at 79.8% (comparable to ResNet-50 at 76.2% or EfficientNet-B1 at 79.1%) and DeiT-Ti at 72.2%.

Accuracy-throughput trade-off (Figure 1, Table 5). At the same throughput level, DeiT models match or exceed EfficientNets:

  • DeiT-Ti: 72.2% at 2536.5 images/sec vs. EfficientNet-B0: 77.1% at 2694.3 images/sec (DeiT-Ti is weaker on accuracy but slightly faster)
  • DeiT-Sβš—: 81.2% at 936.2 images/sec vs. EfficientNet-B3: 81.6% at 732.1 images/sec (DeiT-Sβš— is more accurate and substantially faster)
  • DeiT-Bβš—β†‘384: 84.5% at 85.8 images/sec vs. EfficientNet-B5: 83.6% at 169.1 images/sec (DeiT-Bβš— is more accurate but roughly 2Γ— slower at this resolution)
  • The distilled models (marked with βš— in Figure 1) consistently shift the Pareto frontier upward compared to the non-distilled DeiT variants.

On ImageNet V2 and ImageNet Real (Table 5), the distilled models maintain their advantage. DeiT-Bβš—β†‘384 / 1000 epochs achieves 75.2% on V2 (vs. 73.9% for EfficientNet-B6) and 89.3% on Real (vs. 88.8% for EfficientNet-B6), suggesting the gains are not an artifact of validation set overfitting.

Smaller model variants. DeiT-S (22M parameters, 224Β²) achieves 79.8% without distillation and 81.2% with distillation (DeiT-Sβš—). These position it between ResNet-50 (76.2%) and ResNet-101 (77.4%) in accuracy at significantly higher throughput (940 vs. 1226 images/sec for ResNet-50). DeiT-Ti (5M parameters) reaches 72.2% without distillation and 74.5% with distillation β€” modest performance but notable for a model with only 5M parameters and no convolutional layers, achieving ~2Γ— the throughput of ResNet-18 (2536.5 vs. 4458.4 images/sec for ResNet-18) at similar accuracy (72.2% vs. 69.8%). Extended to 1000 epochs, DeiT-Tiβš— reaches 76.6%, surpassing ResNet-50 (76.2%).

Distillation Analysis: Convnet Teachers, Token Mechanisms, and Epoch Scaling

Teacher architecture matters (Table 2). The paper systematically varies the teacher network used for distilling DeiT-Bβš—:

TeacherTeacher Acc.Student Acc. (224Β²)Student Acc. (384Β²)
DeiT-B (transformer)81.8%81.9%83.1%
RegNetY-4GF (convnet)80.0%82.7%83.6%
RegNetY-8GF (convnet)81.7%82.7%83.8%
RegNetY-12GF (convnet)82.4%83.1%84.1%
RegNetY-16GF (convnet)82.9%83.1%84.2%

The critical observation: the DeiT-B teacher (81.8% accurate) produces a student that is only 81.9% β€” a negligible 0.1% improvement. In contrast, the RegNetY-4GF teacher (80.0% accurate, nearly 2% worse than the transformer teacher) produces a student at 82.7% β€” a 0.9% improvement over the no-distillation DeiT-B baseline. The best convnet teacher (RegNetY-16GF at 82.9%) yields 83.1%, a 1.3% gain. This asymmetric benefit β€” where a less accurate convnet teacher outperforms a more accurate transformer teacher β€” is the paper's central evidence for inductive bias transfer through distillation.

Comparison of distillation methods (Table 3). Across all model sizes and resolutions, hard distillation consistently outperforms soft distillation, and the distillation token approach (DeiTβš— with late fusion) consistently outperforms hard distillation on the class token alone. For DeiT-B at 224Β²:

  • No distillation: 81.8%
  • Soft distillation (standard Hinton): 81.8% β€” zero improvement
  • Hard distillation on class token: 83.0% (+1.2%)
  • DeiTβš— class head only: 83.0% (matches hard distillation)
  • DeiTβš— distillation head only: 83.1% (marginally better than class head alone)
  • DeiTβš— late fusion: 83.4% (+1.6% over no distillation, +0.4% over either head alone)

At 384Β² fine-tuning, the gaps widen: soft distillation (83.2%) again provides almost no benefit over no distillation (83.1%), hard distillation reaches 84.0%, and DeiTβš— late fusion reaches 84.5%. The pattern is consistent: soft distillation is essentially useless for transformers in this regime, hard distillation provides meaningful gains, and the distillation token's late fusion provides additional marginal improvement over hard distillation alone (~0.4–0.5%).

For smaller models, the relative benefit is even larger. DeiT-Ti: from 72.2% (no distillation) to 74.5% (DeiTβš— late fusion), a 2.3% gain. DeiT-S: from 79.8% to 81.2%, a 1.4% gain. The distillation benefit is inversely proportional to model capacity β€” smaller models gain proportionally more from the teacher's guidance.

Epoch scaling with distillation (Figure 3). The paper plots DeiT-Bβš— accuracy against training epochs (from 0 to 1000) and compares to the non-distilled DeiT-B baseline. Non-distilled DeiT-B saturates after approximately 400 epochs (horizontal dotted line in Figure 3), achieving its peak accuracy and ceasing to improve. The distilled DeiT-Bβš—, however, continues to improve throughout the entire 1000-epoch range. At 300 epochs, the distilled model is already better than the non-distilled model (83.4% vs. 81.8%). By 1000 epochs, it reaches 84.2% β€” a 2.4% absolute improvement over the non-distilled saturation point. The paper interprets this as evidence that distillation provides a stronger and more sustained training signal than ground-truth labels alone, preventing the model from plateauing prematurely.

Disagreement analysis (Table 4). The paper computes pairwise disagreement rates (fraction of images where two classifiers make different top-1 predictions) between six classifiers: (1) the RegNetY-16GF convnet teacher, (2) the non-distilled DeiT-B, (3) the DeiTβš— class head only, (4) the DeiTβš— distillation head only, and (5) the DeiTβš— late fusion classifier. Key observations:

  • RegNetY teacher vs. non-distilled DeiT: 13.3% disagreement
  • RegNetY teacher vs. DeiTβš— distillation head: 10.0% β€” the distillation head is significantly more aligned with the teacher
  • RegNetY teacher vs. DeiTβš— class head: 11.2% β€” the class head is also more aligned than the non-distilled model (13.3%), but less than the distillation head
  • The DeiTβš— class head vs. distillation head: 5.0% disagreement β€” the two heads make different predictions on only 5% of images
  • The late fusion classifier vs. either individual head: <2% disagreement

This quantifies the inductive bias transfer: the distillation token learns to mimic the convnet teacher's decision patterns, reducing disagreement with the teacher from 13.3% (non-distilled model) to 10.0%. The class token, which receives only ground-truth supervision, also benefits from the teacher indirectly (disagreement drops to 11.2%) β€” evidence that the attention-level interaction between the two tokens during training causes some of the teacher's bias to flow into the class token representations as well. The low within-model disagreement (class vs. distillation heads disagree on only 5% of images) explains why the late fusion gain is modest (0.4–0.5%): the two heads largely agree, and the benefit comes from the minority of images where they disagree and the distillation head is correct.

Transfer Learning to Downstream Tasks (Table 7)

The paper evaluates pre-trained DeiT models on six transfer learning benchmarks to assess whether the representations learned on ImageNet generalize to other visual recognition tasks. The datasets span fine-grained classification (Flowers-102, Stanford Cars, iNaturalist), standard benchmarks (CIFAR-10, CIFAR-100), and vary in training set size from 2,040 images (Flowers) to 437,513 (iNaturalist-18).

For DeiT-Bβš—β†‘384 (the strongest distilled model), transfer results are:

DatasetDeiT-Bβš—β†‘384Best Convnet ComparisonBest ViT Comparison
CIFAR-1099.2%EfficientNet-B7: 98.9%ViT-B/16 (JFT): 98.1%
CIFAR-10091.4%EfficientNet-B7: 91.7%ViT-B/16 (JFT): 87.1%
Flowers-10298.9%EfficientNet-B7: 98.8%ViT-L/16 (JFT): 89.7%
Stanford Cars93.9%EfficientNet-B7: 94.7%ViT-B/16 (JFT): β€” (not reported)
iNaturalist-1880.1%EfficientNet-B7: β€”ViT-B/16 (JFT): β€”
iNaturalist-1983.0%EfficientNet-B7: β€”ViT-B/16 (JFT): β€”

DeiT-Bβš—β†‘384 matches or exceeds EfficientNet-B7 on CIFAR-10, CIFAR-100, and Flowers-102, while falling slightly short on Stanford Cars (93.9% vs. 94.7%). Compared to ViT models trained on JFT-300M, DeiT substantially outperforms on all reported benchmarks β€” for example, 91.4% vs. 87.1% on CIFAR-100, and 98.9% vs. 89.7% on Flowers β€” despite using 1/250th the pre-training data. This suggests that the DeiT training methodology produces better-generalizing representations than ViT's JFT pre-training, at least for these transfer tasks. The non-distilled DeiT-B performs competitively but consistently below the distilled variant: 99.1% vs. 99.2% on CIFAR-10, 90.8% vs. 91.4% on CIFAR-100, 92.1% vs. 93.9% on Cars β€” a consistent 0.1–1.8% gap in favor of distillation.

The throughput column in Table 7 shows that DeiT-B at 384Β² processes 85.9 images/sec, comparable to ViT-B/16 at 85.9 images/sec (since they share the same architecture) but substantially faster than ViT-L/16 (27.3 images/sec) and comparable to ResNet-152 (526.3 images/sec at 224Β² β€” though resolution differences make this an imperfect comparison).

Training from scratch on CIFAR-10. The paper reports an experiment training models from scratch (no ImageNet pre-training) on CIFAR-10, using extended schedules (7200 epochs to match the total number of images seen in 300 ImageNet epochs) and 224Γ—224 upscaling to maintain the augmentation pipeline. Results:

ModelFrom ScratchImageNet Pre-trained
RegNetY-16GF98.0%β€”
DeiT-B97.5%99.1%
DeiT-Bβš—98.5%99.1%

The distilled DeiT-Bβš— (98.5%) outperforms both the non-distilled DeiT (97.5%) and the convnet RegNetY (98.0%) when trained from scratch on the small dataset. This is notable: the distillation token provides benefit even when there is no ImageNet pre-training β€” the teacher is still an ImageNet-trained RegNetY, and its supervision helps the transformer learn from limited data. The ~1.6% gap between from-scratch DeiT-Bβš— (98.5%) and ImageNet-pre-trained DeiT-Bβš— (99.1%) reflects the value of diverse pre-training data on a larger dataset, but the from-scratch result is surprisingly competitive given CIFAR-10's tiny size (50,000 images at 32Γ—32).

Resolution Analysis (Table 10)

The paper fine-tunes DeiT-B (trained at 224Β²) at multiple resolutions to measure the accuracy-throughput trade-off:

ResolutionThroughput (im/sec)Top-1 Acc.Real Top-1V2 Top-1
160Β²609.3179.9%84.8%67.6%
224Β²291.0581.8%86.7%71.5%
320Β²134.1382.7%87.2%71.9%
384Β²85.8783.1%87.7%72.4%

Each resolution increase brings accuracy gains: +1.9% from 160Β² to 224Β², +0.9% from 224Β² to 320Β², +0.4% from 320Β² to 384Β². The gains diminish as resolution increases, and the throughput cost grows substantially (291 β†’ 85.9 images/sec is a 3.4Γ— slowdown from 224Β² to 384Β²). This diminishing returns pattern matches the behavior observed in convnets and suggests that for latency-sensitive applications, training at 224Β² and fine-tuning at 320Β² may offer the best accuracy-throughput trade-off. The fact that the model can process variable resolutions without architectural modification β€” only the positional embeddings need interpolation β€” is an inherent advantage of the transformer design over convnets, where changing resolution often requires modifying pooling layers or classifier dimensions.

Ablation Studies and Robustness Checks

Optimizer choice (Table 8). The paper tests SGD vs. AdamW for both pre-training and fine-tuning. Using SGD for pre-training with AdamW for fine-tuning drops pre-training accuracy from 81.8% to 74.5% β€” a catastrophic 7.3% degradation. The reverse (AdamW pre-training with SGD fine-tuning) produces the same 81.8% / 83.1% as the all-AdamW baseline. This establishes that AdamW is critical for transformer pre-training (where its adaptive per-parameter learning rates likely help with the diverse gradient scales across attention and FFN layers), but either optimizer works for the fine-tuning stage, where the model is already well-initialized.

Data augmentation (Table 8). Removing RandAugment drops pre-training accuracy from 81.8% to 79.6% (a 2.2% loss) and fine-tuned accuracy from 83.1% to 80.4%. Removing AutoAugment (when RandAugment is present) has a smaller effect: 81.8% β†’ 81.2%. This confirms RandAugment is the preferred augmentation strategy and that its benefit is substantial. Removing both Mixup and CutMix simultaneously (keeping RandAugment) drops accuracy from 81.8% to 78.7% (a 3.1% loss), and removing all three (RandAugment + Mixup + CutMix) drops to 75.8% (a 6.0% loss). The interaction effect is roughly additive: RandAugment alone accounts for 2.2%, Mixup+CutMix alone for 3.1%, and the combination for 6.0% β€” slightly less than the sum (5.3%), suggesting some overlap in the regularization they provide but mostly independent benefits.

Regularization (Table 8). Removing stochastic depth causes catastrophic training failure: accuracy drops to 3.4% (essentially random guessing would give 0.1% on 1000 classes β€” this suggests the model didn't learn at all). The paper notes this with an asterisk: "did not train well, possibly because hyper-parameters are not adapted." This is important: stochastic depth is not just a mild regularizer but appears necessary for optimization convergence with the chosen hyperparameters. It is possible that re-tuning learning rate and weight decay without stochastic depth would recover performance, but this is not tested. Removing repeated augmentation (keeping all other components) drops accuracy from 81.8% to 76.5% β€” a 5.3% loss. This is the single largest degradation from any individual ablation, making repeated augmentation arguably the most critical component of the training recipe. Removing random erasing drops accuracy from 81.8% to 81.3% β€” a modest 0.5% loss, suggesting it provides marginal additional benefit when the other augmentations are active.

Dropout. The paper explicitly excludes dropout (sets it to 0, compared to ViT-B's dropout=0.1), noting it as "one exception" to the augmentation suite. The ablation in Table 8 tests adding dropout back in and finds pre-training accuracy increases marginally from 81.8% to 81.9%, with fine-tuned accuracy unchanged at 83.1%. This small gain is achieved by the EMA model variant β€” the standard training with dropout added shows no benefit, and since the EMA gain vanishes after fine-tuning, dropout is excluded from the final configuration.

Exponential Moving Average (EMA) (Table 8). Using EMA of model weights during pre-training yields a small improvement (81.9% vs. 81.8%), but "these small gains... vanish after fine-tuning: the EMA model has an edge of 0.1 accuracy points, but when fine-tuned the two models reach the same (improved) performance." EMA is therefore not used in the final 1000-epoch training runs, since fine-tuning equalizes the performance regardless.

Resolution fine-tuning (Table 10). The ablation on fine-tuning resolution (discussed above) confirms that the FixRes strategy of Touvron et al. transfers effectively to transformers: training at 224Β² and fine-tuning at 384Β² yields the best accuracy (83.1%), with intermediate resolutions (320Β²) offering a favorable accuracy-throughput trade-off (82.7% at 134 images/sec). The results on ImageNet V2 and ImageNet Real follow the same trend, confirming the resolution benefit is not due to validation set overfitting.

Critical Assessment

Do the Experiments Support the Paper's Central Claims?

Claim 1: "Neural networks that contain no convolutional layer can achieve competitive results against the state of the art on ImageNet with no external data." This claim is strongly supported by Table 5 and Figure 1. DeiT-B reaches 83.1% top-1, surpassing ResNet-152 (78.3%) and approaching EfficientNet-B7 (84.3%) despite having no convolutional layers and being trained exclusively on ImageNet-1k. The distilled variant DeiT-Bβš—β†‘384 reaches 85.2%, matching the accuracy range of the strongest convnet baselines (KDforAA-B8 at 85.8%, EfficientNet-B7 at 84.3%). However, "competitive" requires careful qualification: DeiT-B achieves this at 384Β² resolution with 1000-epoch training, while EfficientNet-B7 operates at 600Β² resolution with presumably standard training duration. The throughput comparison shows DeiT-Bβš—β†‘384 processes images at roughly half the speed of EfficientNet-B5 (85.8 vs. 169.1 images/sec) while achieving similar accuracy (85.2% vs. 83.6%), so the claim of competitiveness holds on the accuracy-throughput Pareto frontier but not on absolute throughput at equal accuracy.

A genuine weakness: the comparison is limited to ImageNet classification. The paper does not evaluate on detection, segmentation, or other vision tasks that would test whether the "competitive with convnets" claim generalizes beyond classification. The transfer learning results (Table 7) partially address this by testing on fine-grained classification and smaller datasets, but these are still classification tasks. The architecture's suitability for dense prediction tasks (where convolution's translation equivariance is particularly valuable) remains unproven.

Claim 2: "We introduce a new distillation procedure based on a distillation token... This transformer-specific strategy outperforms vanilla distillation by a significant margin." Table 3 supports this claim quantitatively. At 224Β², DeiTβš— late fusion achieves 83.4% vs. 81.8% for soft distillation β€” a 1.6% advantage. At 384Β², the gap is 84.5% vs. 83.2% β€” a 1.3% advantage. The improvement is consistent across model sizes (DeiT-Ti: 74.5% vs. 72.2%, DeiT-S: 81.2% vs. 79.8%). Whether 1.3–1.6% constitutes "significant" is debatable β€” it's material but not transformative, and the majority of the distillation benefit comes from hard distillation itself (+1.2% over no distillation), with the distillation token adding only 0.4% on top of hard distillation on the class token.

A missing experiment: the paper does not test whether using a separate distillation head without the distillation token (i.e., two output heads from the same class token, supervised by ground truth and teacher respectively) would achieve the same effect. This would isolate whether the benefit comes from the architectural token or simply from having two complementary classifiers. The two-class-token experiment shows that identical supervision leads to collapse, but the multi-head-on-single-token variant is not evaluated. Additionally, the paper does not evaluate the distillation token's performance at inference when used alone vs. the class token alone vs. late fusion across varying computational budgets β€” all comparisons use the full model. If the distillation token provides its benefit primarily through attention-level interactions during training but doesn't add value at inference, the additional parameter cost (extra token embedding + classifier head) may not be justified for deployment.

Claim 3: "Image transformers learn more from a convnet than from another transformer with comparable performance." Table 2 provides clear evidence: a DeiT-B teacher at 81.8% gives essentially no improvement (81.9% student), while a RegNetY-4GF teacher at 80.0% gives a 0.9% improvement (82.7%). The claim is well-supported for the specific architectures tested. However, the paper only compares one transformer teacher (DeiT-B) against a family of convnet teachers (RegNetY at various capacities). A stronger test would include: (a) a ViT-L teacher (larger transformer, higher accuracy) to test whether transformer teachers fail regardless of accuracy or only at equal capacity; (b) convnets from different architectural families (ResNet, EfficientNet) to test whether the "convnet teacher advantage" is specific to RegNetY's design space or general to convolutional processing; (c) hybrid teachers (convnets with attention) to identify which architectural properties (pure convolution? local processing? hierarchical features?) drive the benefit.

The mechanism proposed β€” inductive bias transfer β€” is plausible but not directly tested. The disagreement analysis (Table 4) shows the distillation head's predictions are more aligned with the convnet teacher (10.0% disagreement) than the non-distilled model (13.3%), but this only shows output-level alignment, not that the student has acquired convnet-like processing (e.g., translation-equivariant attention patterns). Analyzing the attention maps of distilled vs. non-distilled models (e.g., measuring whether distillation increases locality of attention) would provide direct evidence for inductive bias transfer but is absent from the paper.

Claim 4: "Our models pre-learned on ImageNet are competitive when transferred to different downstream tasks." Supported by Table 7, with the caveat that the downstream tasks are all classification benchmarks. DeiT-Bβš—β†‘384 matches or exceeds EfficientNet-B7 on most tasks but trails on Stanford Cars (93.9% vs. 94.7%). The comparison against ViT models trained on JFT-300M is favorable (DeiT outperforms across all reported benchmarks), but this is partly because the JFT-trained ViT models were not fine-tuned with the same care as DeiT β€” the transfer learning protocol likely differs between the two papers, making this an unfair comparison. The training-from-scratch experiment on CIFAR-10 is interesting but limited: results on one small dataset don't establish a general capability for training transformers from scratch on small data.

Claim 5 (implicit): "The training recipe, not the architecture, is what prevents vision transformers from working well on ImageNet-1k." The ablation study (Table 8) partially supports this by showing that removing key recipe components (repeated augmentation, CutMix, stochastic depth) causes large accuracy drops. However, the ablation only shows that these components are necessary for the achieved performance, not that they fully explain the gap with ViT. A direct comparison training ViT-B with DeiT's recipe (same augmentations, same optimizer settings, same regularization) would isolate the recipe contribution from any undocumented differences in ViT's architecture or initialization. The paper claims the architecture is identical, but Table 9 shows several hyperparameter differences beyond the augmentation suite (batch size: 1024 vs. 4096; weight decay: 0.05 vs. 0.3; dropout: 0 vs. 0.1; gradient clipping: none vs. 1.0; label smoothing: 0.1 vs. none). The 81.8% DeiT-B result could be reproduced using ViT-B with DeiT's hyperparameters, and this reproduction would strengthen the claim considerably β€” but it is not reported.

Genuine Weaknesses in the Experimental Design

Single-run results with no error bars. All accuracy numbers in all tables appear to be single training runs with no reported standard deviation or confidence intervals. Given that the improvements from the distillation token are 0.4–0.5%, and that ImageNet training runs can vary by ~0.1–0.2% due to random seed effects, it's unclear whether the late fusion benefit over single-head distillation is statistically reliable. This is particularly concerning for the 1000-epoch results (85.2%), which represent a single training run of over 8 days β€” the paper provides no evidence that this result is reproducible.

Absence of computational cost for distillation during training. The teacher network's predictions must be computed for every training image at every epoch (since data augmentation changes each epoch). For a RegNetY-16GF teacher processing 1.28M images over 300 epochs, this is 384M forward passes through an 84M-parameter convnet β€” comparable to the student's own training cost. The paper reports training time as 53 hours for DeiT-B "on a single node" but does not specify whether this includes teacher inference time or assumes pre-computed teacher labels. If teacher inference is not included, the true training cost is substantially higher than reported.

The comparison to ViT JFT-300M models is confounded. Table 5 compares DeiT-B↑384 (83.1% at 384Β²) against ViT-B/16 (77.9% at 384Β², pre-trained on JFT-300M). However, the ViT-B/16 result is from the original ViT paper, where the model was pre-trained on JFT-300M and then fine-tuned on ImageNet at 384Β². The fine-tuning protocol, number of fine-tuning epochs, and data augmentation during fine-tuning differ between the two papers in undocumented ways. The claim that DeiT "outperforms by 1% (top-1 acc.) the Vit-B model pre-trained on JFT300M at resolution 384 (85.2% vs. 84.15%)" is therefore comparing a carefully fine-tuned model against one that may have been suboptimally fine-tuned. A fairer comparison would fine-tune ViT-B (JFT pre-trained) using DeiT's fine-tuning protocol.

Limited diversity of teachers tested for distillation. Only the RegNetY family is tested as convnet teachers, and only DeiT-B as the transformer teacher. The finding that "convnets are better teachers" is therefore based on one convnet family and one transformer family. RegNetY models are known for being well-regularized and well-calibrated (they were designed through systematic design space exploration), which might make them particularly good teachers independent of their convolutional nature. Testing ResNet, EfficientNet, or non-convnet teachers (e.g., MLP-Mixer if available at the time) would distinguish "convnet-specific" benefits from "well-designed architecture" benefits.

Transfer learning protocols not detailed. Table 7 reports transfer learning results without describing the fine-tuning protocol for each dataset (number of epochs, learning rate, whether the backbone was frozen or fine-tuned, data augmentation used). This makes the results difficult to reproduce and may hide important differences: if DeiT benefited from more careful transfer learning hyperparameter tuning than the baseline models, the comparison would be biased.

The "training from scratch on CIFAR-10" experiment uses a teacher pre-trained on ImageNet. The paper reports DeiT-Bβš— achieving 98.5% when trained from scratch on CIFAR-10, but this "from scratch" training uses a RegNetY-16GF teacher that was itself trained on ImageNet. This means the "from scratch" transformer still indirectly benefits from ImageNet through the teacher's supervision β€” it's not a pure test of whether transformers can be trained on small datasets from scratch without any external knowledge. A truly from-scratch distillation experiment would use a teacher also trained on CIFAR-10 only. The fact that DeiT-B (without distillation) reaches 97.5% from scratch is more informative about the architecture's small-data capability, though the 1.6% gap to the ImageNet-pre-trained version (99.1%) suggests pre-training still matters substantially.

Missing Experiments That Would Strengthen the Paper

Attention map analysis with and without distillation. Visualizing and quantifying attention patterns (e.g., entropy of attention distributions, locality measures, head specialization) for distilled vs. non-distilled models would provide direct evidence for the inductive bias transfer hypothesis. If convnet distillation makes attention more local or more structured, this would be a compelling mechanistic explanation. The paper only provides output-level evidence (disagreement rates, accuracy improvements).

Ablation on the number of distillation tokens. Does adding multiple distillation tokens from different teachers (e.g., one convnet + one transformer) provide complementary benefits? Or does a single distillation token saturate the benefit? This would test whether the distillation token's value comes from a specific teacher's inductive biases or from the general principle of having multiple supervised pathways.

Inference-time ablation of the distillation token. The paper reports accuracy when using only the class head, only the distillation head, or both (late fusion). But what about removing the distillation token entirely at inference time β€” i.e., training with the distillation token for its regularization effect but discarding it at test time? This would test whether the token's primary value is during training (shaping the shared backbone representations) or at inference (providing complementary predictions). If training-with-distillation-token but inference-without (using only the class head) achieves most of the late fusion gain, the distillation token could be viewed as a training-only regularization mechanism, similar to how dropout is used during training but not at test time.

Comparison against a same-cost convnet with distillation. The paper compares DeiTβš— against convnet baselines that do not use distillation (EfficientNet-B7, ResNet-152) or use a different distillation method (KDforAA-B8). A fairer comparison would train a RegNetY or EfficientNet with the same hard-label distillation from the same teacher, to determine whether the distillation token's benefit is transformer-specific or whether convnets would benefit equally from the same teacher supervision.

Robustness to different random seeds. Given the narrow margins in some comparisons (0.4% for late fusion over single heads, 0.1% for EMA), running experiments with 3–5 random seeds and reporting mean Β± standard deviation would clarify which differences are statistically meaningful and which could be noise.

Evaluation on out-of-distribution or corrupted images. The paper reports ImageNet V2 and ImageNet Real results, which test generalization to different test distributions, but does not evaluate on ImageNet-C (corruption robustness), ImageNet-A (natural adversarial examples), or similar robustness benchmarks. This matters because a common criticism of transformers is that they may rely on different (potentially less robust) features than convnets, and distillation from a convnet might affect this. Showing that distilled DeiT models inherit the teacher's robustness properties (or don't) would be informative about the nature of the transferred inductive bias.

6. Limitations and Trade-offs

The Difficulty Estimation Cost Is Unaccounted and Dominates the Inference Budget

The assumption or constraint. The compute-optimal framework requires knowing which difficulty bin a prompt falls into before allocating the inference budget. The paper's method for estimating difficulty β€” generating 2048 samples per question and averaging either ground-truth correctness (oracle) or PRM final-answer scores (predicted) β€” consumes vastly more compute than the largest test-time budgets being optimized. The authors acknowledge this explicitly but bracket it:

"estimating difficulty in this way still incurs additional computation cost during inference... our experiments do not account for this cost largely for simplicity" (Section 3.2)

The consequence. The headline efficiency gains (4Γ— over best-of-N) are computed after difficulty is known, without amortizing the cost of learning it. In a real deployment, total cost = difficulty estimation + strategy execution. For a single prompt, generating 2048 samples for difficulty estimation alone consumes 8–64Γ— more compute than the largest test-time budgets studied (256–512 generations). This means the 4Γ— figure is an upper bound on achievable efficiency in a regime where difficulty estimation cost is somehow eliminated β€” not a realized deployment gain. The difficulty estimation cost also scales with the number of prompts: for a batch of 1000 prompts, the estimation cost is 1000 Γ— 2048 = 2,048,000 generations before any strategy is even selected, which dwarfs the strategy execution budget for all but the hardest problems requiring the full budget per prompt.

What evidence exists in the paper. Section 3.2 describes the difficulty estimation procedure explicitly (2048 samples, PRM scoring). Figures 4 and 8 show that predicted difficulty bins perform similarly to oracle bins β€” but both curves exclude the cost of generating those 2048 samples. No experiment measures total cost (estimation + execution) or compares against a baseline that spends the equivalent total budget on best-of-N without difficulty estimation. Table 1 in the reference example shows the gap clearly: the method needs 2048 samples to know which strategy to use, but then the strategy itself might only use 16–64 generations.

Mitigation status. The paper flags this explicitly as future work: "future work could study training models to predict difficulty directly from the question text" (Section 8). No such model is developed or evaluated. The paper also mentions adaptive difficulty estimation (start with few samples, assess difficulty, then allocate) as a direction, but does not implement it. The limitation is therefore acknowledged but unresolved β€” the method as described is not deployable without a solution to this cost problem.


The Approach Provides Zero Benefit on Hard Problems Where the Base Model's Pass@1 Is Near Zero

The assumption or constraint. Test-time compute amplifies existing capability but cannot create it from nothing. This means the entire framework implicitly assumes the problem is within the base model's rough capability range β€” that the model produces correct solutions at some non-trivial rate under random sampling.

The consequence. For the hardest problems (difficulty bin 5 in the paper's taxonomy), all methods β€” search, revisions, and their compute-optimal combinations β€” show near-zero improvement regardless of compute budget. In the FLOPs-matched comparison, test-time compute is worse than pretraining on hard problems across nearly all inference-to-pretraining ratios. The paper quantifies this in Figure 9 and the associated bar charts: on hard problems at $R \gg 1$, test-time compute with PRM search shows a βˆ’52.9% relative disadvantage compared to the 14Γ— larger model. This is not a small penalty β€” it means the method is actively harmful relative to just using a larger model for difficult prompts. A deployment that routes all hard problems through a compute-optimal pipeline would achieve near-zero accuracy on those problems regardless of budget, making the system unreliable in high-stakes settings where hard problems are precisely the ones where accuracy matters most.

What evidence exists in the paper. Multiple figures establish this ceiling unambiguously:

  • Figure 3 (right): Bin 5 accuracy hovers at 1–3% for all search methods at all budgets from 4 to 256 generations. The curves are essentially flat.
  • Figure 7 (right): Bin 5 accuracy is roughly 2–3% regardless of the sequential-to-parallel ratio at 128 generations.
  • Figure 9: The bin 5 scaling line is flat near 0–5% for all values of $R$, while the 14Γ— larger model's performance (stars) sits well above it.
  • Section 7 takeaway: The paper is transparent about this: "on the hardest questions, no method makes meaningful progress."

Mitigation status. The paper acknowledges this boundary condition explicitly and does not claim to solve it. Section 7 states: "test-time compute amplifies existing capability but does not create it." However, no mitigation is proposed beyond the obvious prescription (use a larger pretrained model for hard problems). The difficulty estimator could theoretically serve as a router β€” easy/medium problems get test-time compute, hard problems get escalated to a larger model β€” but this hybrid approach is not evaluated. The practical implication is that deploying compute-optimal test-time scaling requires a separate strategy for hard problems, and that strategy (likely a larger base model) undercuts the economic argument for test-time compute in the first place.


The Revision Model Suffers from a 38% Correct-to-Incorrect Reversion Rate That Is Only Partially Mitigated

The assumption or constraint. The revision model is fine-tuned on sequences where all in-context answers are incorrect, followed by a correct target. This means during training, the model never encounters a correct answer in context and therefore never learns the behavior "if the current answer is already correct, do not change it."

The consequence. At test time, when a revision chain produces a correct answer at step $k$, the model may still "revise" it into an incorrect answer at step $k+1$. The paper reports that approximately 38% of correct answers get converted back to incorrect ones using a naive approach (Section 6.1). This creates a fundamental tension in sequential revision: deeper chains have more opportunities to produce a correct answer (the pass@1 at each step gradually improves, as shown in Figure 6 left), but also more opportunities to revert correct answers back to wrong ones. The within-chain selection mechanism (majority voting or verifier-based selection across all steps) mitigates this by picking the best answer from any point in the chain rather than always taking the last revision, but this is an imperfect patch: the verifier itself has error rates, and majority voting requires multiple correct answers in the chain to overcome incorrect revisions. For problems where the model produces exactly one correct revision surrounded by incorrect ones, both selection mechanisms may fail.

What evidence exists in the paper.

  • Section 6.1 states the 38% reversion rate explicitly: "approximately 38% of correct answers get converted back to incorrect ones" under the naive approach.
  • Figure 6 (left) shows pass@1 at each revision step: accuracy improves from ~18.2% at step 1 to ~24–25% by step 15, but the trajectory is noisy and doesn't monotonically increase, consistent with the reversion phenomenon.
  • The paper's mitigation β€” within-chain selection β€” is described in Section 6.1 and evaluated implicitly through the sequential vs. parallel comparisons (Figure 6, right; Figure 7), where sequential chains with selection outperform parallel sampling. But the reversion rate after applying within-chain selection is not reported β€” we don't know how much of the remaining sequential-chain advantage comes from good answers that survived reversion vs. chains where reversion never happened.
  • The ReST^EM experiment (Appendix K, Figure 16) shows that an alternative revision model training procedure makes the problem substantially worse: sequential revisions with the ReST^EM model cause performance to degrade at high sequential ratios, suggesting the reversion problem is sensitive to training methodology.

Mitigation status. The paper addresses this with within-chain selection (majority voting or verifier-based selection across all steps in the revision chain), which transforms the problem from "take the last revision" (vulnerable to reversion) to "pick the best answer anywhere in the chain." This is partially effective β€” sequential chains outperform parallel sampling in aggregate β€” but it does not solve the underlying training data asymmetry. A more principled fix would be to include training trajectories where the model learns to recognize and preserve correct answers (e.g., by including sequences where a correct answer appears in context and the target is to repeat it), but this is not explored. The paper does not report the post-mitigation reversion rate, making it unclear how much of the problem remains after within-chain selection is applied.


All Results Are on a Single Benchmark with a Single Model Family, Limiting Generality

The assumption or constraint. Every experiment in the paper uses the MATH benchmark (500 test questions) with PaLM 2-S* as the base model. The paper states:

"We believe this model is representative of the capabilities of many contemporary LLMs" (Section 4)

but this is asserted rather than demonstrated.

The consequence. Several aspects of the findings could be model-specific or benchmark-specific in ways that fundamentally change the conclusions:

  • PRM quality and over-optimization behavior depend on PaLM 2-S*'s output distribution, calibration properties, and error patterns. A model with different calibration or different types of reasoning errors might exhibit different difficulty-dependent scaling curves β€” for example, if another model is better calibrated, the PRM might be more robust to over-optimization, changing the optimal strategy per difficulty bin.
  • The revision model's learnability depends on the base model's in-context learning capabilities and its ability to benefit from seeing incorrect answers, which vary substantially across model families. A model with stronger in-context learning might benefit more from revisions; a model with weaker in-context learning might benefit less.
  • The MATH benchmark consists exclusively of competition-level math problems requiring symbolic reasoning and multi-step deduction. It is unclear whether the difficulty-dependent patterns (beam search hurting easy problems, revisions helping easy problems, nothing helping hard problems) generalize to other reasoning domains (code generation, logical reasoning, scientific QA) or to tasks requiring factual knowledge rather than inference.
  • The test set size is small for strategy selection: 500 questions split into five difficulty quintiles of ~100 each, then further split by two-fold cross-validation, means the compute-optimal policy is selected based on ~50 questions per fold per bin. The paper does not report confidence intervals, making the reliability of the selected strategies at this sample size unclear.

What evidence exists in the paper. All tables and figures (Figures 3–9, Tables 2–3 in the reference example) are based on MATH with PaLM 2-S*. No other benchmark or model family is evaluated. The paper acknowledges the single-benchmark limitation implicitly by focusing all experiments on MATH but does not discuss the model-specificity concern. The transfer-to-other-tasks results that would partially address this (if MATH were treated as source and other reasoning tasks as targets) are not present.

Mitigation status. Not addressed. The paper does not include experiments on other reasoning benchmarks or with other base model families. The claim that PaLM 2-S* is "representative" is an untested assumption. This limitation is common in systems papers built around a specific model and benchmark, but it means the findings should be treated as existence proof (the compute-optimal approach can work for some model-benchmark pairs) rather than as established general principles until replicated.


Verifier Over-Optimization Is Documented but Not Solved β€” It Sets a Hard Ceiling That Limits Further Scaling

The assumption or constraint. The PRM is an imperfect proxy for solution correctness. As search algorithms optimize more aggressively against the PRM's scores, they eventually find solutions that score highly under the PRM but are actually incorrect β€” a phenomenon the paper terms "over-optimization."

The consequence. This limits how far test-time compute can be scaled even on problems where the base model does produce correct solutions. The paper documents that:

  • Beam search accuracy on easy problems degrades with increasing budget (Figure 3, right, bin 1: accuracy drops from ~78% to ~77% as budget goes from 4 to 256 generations) β€” a clear signature that search is exploiting verifier weaknesses.
  • Lookahead search, the most powerful optimizer, paradoxically underperforms simpler methods at the same budget (Figure 3, left) because its more accurate per-step scoring enables stronger optimization that overfits the verifier faster.
  • Qualitative examples in Appendix M show search producing degenerate outputs (repetitive low-information steps, overly short solutions) that score highly under the PRM but are incorrect.

The compute-optimal policy mitigates this by routing easy problems away from beam search (using best-of-N instead), but it does not eliminate the underlying problem. On medium-difficulty problems where beam search is deployed, over-optimization still limits the scaling ceiling β€” the beam search curves in Figure 3 flatten and sometimes decline before the budget is exhausted. This means further improvements to the PRM (better training, calibration, adversarial robustness) would be necessary to unlock higher test-time compute budgets, but no such improvements are demonstrated.

What evidence exists in the paper.

  • Figure 3 (right): beam search accuracy on bin 1 decreases with budget; bin 2 shows best-of-N eventually surpassing beam search at high budgets.
  • Figure 3 (left): lookahead search (k=1, k=3) underperforms beam search and best-of-N at most budgets, despite being a more sophisticated optimizer.
  • Appendix M (Figures 29 and surrounding): qualitative examples of verifier over-optimization, including repetitive steps and degenerate short solutions.
  • Section 5.3 discusses over-optimization as the explanation: "beam search finds solutions that score highly under the PRM but are actually incorrect."

Mitigation status. The paper's primary mitigation is the compute-optimal policy itself β€” by routing easy problems to best-of-N (which is less aggressive and therefore less prone to over-optimization), the worst effects are avoided. However, this is a workaround, not a solution. The verifier remains the bottleneck for medium-difficulty problems, and no method is proposed to improve verifier robustness (e.g., adversarial training against search-discovered exploits, ensemble of PRMs, KL-constrained search that penalizes deviation from the base model's output distribution). The paper identifies this as a key direction in Section 8 ("improving verifier robustness is the key bottleneck for further scaling test-time compute") but does not address it experimentally.


The Search and Revision Mechanisms Are Studied Independently, Not Combined β€” the Full Potential of the Framework Is Not Realized

The assumption or constraint. The paper studies PRM tree-search (Section 5) and iterative revisions (Section 6) as independent mechanisms, evaluating their compute-optimal scaling separately. They are never combined into a single system.

The consequence. The two mechanisms have complementary strengths that the paper itself documents: revisions improve the proposal distribution (generating better candidates through sequential refinement), while PRM search improves candidate selection (finding the best among generated candidates through step-level verification). The paper shows that revisions work best on easy problems (where local refinement suffices) and search works best on medium problems (where global exploration is needed). A combined system β€” for example, using the revision model as the proposal distribution within beam search, or using the PRM to guide which revision branches to pursue β€” could potentially outperform either mechanism alone, especially on medium-difficulty problems where both mechanisms show partial effectiveness but neither fully solves the problem.

The paper's current results therefore represent a lower bound on what a fully integrated system could achieve. This matters for practitioners because the headline 4Γ— efficiency gain might be substantially larger if search and revisions were combined, meaning the paper understates both the potential of the approach and the complexity of realizing it (since combining them requires solving interface problems β€” e.g., the PRM trained on base model outputs doesn't transfer well to revision model outputs, as shown in Appendix J, Figure 15a).

What evidence exists in the paper.

  • Section 5 studies PRM-guided search with the base model as proposal distribution; Section 6 studies revisions with outcome-based verifiers (majority and ORM). The two pipelines never intersect.
  • Section 8 explicitly acknowledges this gap: "we did not experiment with PRM tree-search techniques in combination with revisions."
  • Appendix J (Figure 15a) shows that the base-LM PRM underperforms on revision model outputs due to distribution shift, identifying one specific obstacle to combining the approaches.
  • The difficulty-dependent pattern β€” revisions help most on easy problems, search helps most on medium problems β€” is documented separately in Figures 3 (right) and 7 (right) but never unified into a single allocation policy.

Mitigation status. The paper identifies this as a natural next step in Section 8 but does not pursue it. The practical takeaway for a practitioner is that the reported results should be considered a starting point: implementing the full vision (search + revisions combined) requires additional engineering to handle the PRM-revision distribution shift and to design the interface between the two mechanisms (e.g., does the PRM score individual revision steps? do we beam-search over revision trajectories?), and this additional complexity is not characterized.

7. Implications and Future Directions

How This Work Changes the Landscape

This paper shifts the default expectation for what vision transformers require to succeed. Before DeiT, the prevailing narrative β€” established by Dosovitskiy et al.'s ViT paper and reinforced by its conclusion that transformers "do not generalize well when trained on insufficient amounts of data" β€” was that pure attention models for vision are fundamentally data-hungry in a way that convnets are not. The practical consequence was that vision transformers were treated as a large-organization technology: if you had access to JFT-300M and thousands of TPU cores, transformers could match or exceed convnets; if you only had ImageNet-1k, convnets remained the sensible choice.

DeiT breaks this dichotomy by demonstrating that the data requirement was a training methodology problem, not an architectural necessity. The architecture itself β€” 12 transformer blocks, patch embeddings, self-attention β€” does not change. What changes is the training recipe (aggressive augmentation, strong regularization, AdamW with lower weight decay) and the introduction of a transformer-native distillation mechanism. The result β€” 83.1% top-1 on ImageNet-1k with no external data, matching or exceeding comparably-sized convnets β€” demonstrates that the inductive biases convnets provide through architecture can be approximately recovered through better optimization and through distillation from a convnet teacher.

This is closer to a reframing than a paradigm shift. The paradigm β€” vision transformers as competitive image classifiers β€” was already established by ViT trained on JFT-300M. DeiT's contribution is to show that the paradigm extends to the data regime most researchers actually operate in, and to provide a concrete recipe for making it work. The reframing has several specific consequences:

The burden of proof shifts. Before DeiT, a researcher proposing a new vision transformer architecture needed to justify why it would work given transformers' apparent data hunger. After DeiT, the baseline assumption is that transformers can work on ImageNet-scale data with proper training β€” architectural innovations should be evaluated against this stronger baseline rather than against the under-trained ViT-B at 77.9%. This matters because it changes what counts as a meaningful improvement: gains over a properly-trained DeiT-B represent genuine architectural progress, while gains over an under-trained ViT-B may simply reflect better training methodology masquerading as architecture innovation.

The role of distillation is elevated from compression tool to inductive bias transfer mechanism. Standard knowledge distillation was primarily understood as model compression (Hinton et al.) or, more recently, as a way to transfer soft inductive biases (Abnar et al.). DeiT's distillation token makes the bias transfer architectural: the teacher's influence flows through self-attention at every layer, not just through an output-level loss term. The finding that convnet teachers outperform transformer teachers of comparable accuracy (Table 2: RegNetY-4GF at 80.0% yields 82.7% student accuracy vs. DeiT-B teacher at 81.8% yielding only 81.9%) provides the clearest evidence to date that distillation can transfer processing biases β€” how a model arrives at its predictions β€” not just knowledge β€” what predictions it makes. This opens the door to distillation as a design tool: if you want a transformer to behave more like a convnet (with its translation equivariance and locality), distill from a convnet rather than adding convolutional layers to the architecture.

The accuracy-throughput frontier now includes convolution-free models. Figure 1 and Table 5 demonstrate that pure transformers occupy points on the Pareto frontier previously exclusive to heavily-optimized convnets. DeiT-Bβš—β†‘384 at 85.2% top-1 and 85.8 images/sec sits in the same accuracy-throughput region as EfficientNet-B5 RA (83.7% at 169.1 im/sec) and EfficientNet-B7 (84.3% at 55.1 im/sec). This changes the default architecture choice for practitioners: the decision between convnet and transformer is no longer "convnet for efficiency, transformer only if you have massive data" but rather a genuine engineering tradeoff β€” transformers offer flexibility (variable resolution without architecture changes, natural handling of variable-length inputs for multi-modal work) while convnets offer maturity (better-understood failure modes, more extensive hardware optimization). For applications that benefit from transformer-native properties (e.g., unified vision-language models, detection with DETR-style architectures), the throughput penalty relative to convnets is now small enough to be acceptable.

ImageNet-1k is reaffirmed as a sufficient training set for vision research. The ViT paper implicitly challenged this: if transformers need JFT-300M to work, then ImageNet-1k is no longer an adequate benchmark for evaluating vision architectures, because the results on ImageNet-1k alone would understate what the architecture can achieve with sufficient data. DeiT's results push back against this narrative: the architecture can be fairly evaluated on ImageNet-1k, as long as the training recipe is properly adapted. This is important for academic research equity β€” it means groups without access to proprietary massive datasets can still meaningfully contribute to vision transformer research.

The paper reconciles a specific tension in the ViT results. ViT showed that transformers pre-trained on JFT-300M and fine-tuned on ImageNet achieved excellent results (ViT-H/14: 88.55%), but the same architecture trained on ImageNet-1k alone was uncompetitive (ViT-B: 77.9%). One interpretation was that the JFT pre-training provided essential visual knowledge that ImageNet's 1.28M images couldn't supply. The other interpretation β€” which DeiT validates β€” is that JFT pre-training provided de facto strong regularization (through data diversity) that ImageNet training lacked, and that the same regularization can be achieved synthetically through augmentation. The fact that DeiT-Bβš—β†‘384 (85.2%) outperforms ViT-B/16 pre-trained on JFT-300M at 384Β² (84.15%) suggests that for this architecture size, synthetic regularization actually exceeds the benefit of 300M extra images β€” a surprising result that inverts the ViT paper's conclusion about data requirements.

Follow-Up Research This Work Enables

Transformer-specific data augmentations rather than adapted convnet augmentations. DeiT's training recipe uses RandAugment, Mixup, CutMix, and random erasing β€” all developed for and tuned on convnets. The paper's ablation (Table 8) shows these are critical, but it does not explore whether augmentations designed for patch-based self-attention would work better. A concrete follow-up would ask: what is the optimal augmentation strategy when the model processes images as a set of patches that interact through global attention, rather than as a pixel grid processed through local convolutions? For example, patch-level Mixup (blending individual patch embeddings rather than pixel-space images) might provide more targeted regularization for the attention mechanism. Patch shuffling or dropping (randomly removing or reordering patches during training) would directly train the model to be robust to spatial perturbations in a way that pixel-level augmentations only approximate. An experiment comparing DeiT-B trained with convnet augmentations vs. patch-native augmentations at equal computational cost, evaluated on both clean accuracy and robustness to spatial transformations, would determine whether the remaining gap to convnets (e.g., DeiT-Bβš— at 85.2% vs. KDforAA-B8 at 85.8%) can be closed through augmentation innovation.

Mechanistic analysis of what the distillation token learns and how it transfers convnet bias. The paper provides output-level evidence for inductive bias transfer (Table 4: distillation head disagrees with convnet teacher on only 10.0% of images vs. 13.3% for non-distilled DeiT), but no analysis of how the bias transfer manifests in the model's internal representations. A strong follow-up would analyze attention patterns in distilled vs. non-distilled DeiT models: do attention heads in the distilled model become more local (attending primarily to spatially-adjacent patches, mimicking convolutional receptive fields)? Does the attention distance distribution shift toward shorter-range interactions? Do specific heads specialize in texture vs. shape processing in ways that mirror convnet feature hierarchies? Techniques like attention rollout, effective receptive field measurement, and probing classifiers trained on intermediate layer representations could quantify these differences. The paper already provides a natural experimental design: compare DeiT-B (no distillation), DeiT-B with hard distillation on the class token (output-level teacher influence), and DeiT-Bβš— (architectural teacher influence through the distillation token), which would isolate the effect of the token mechanism from the effect of simply having the teacher signal. If distillation-token models show more convnet-like attention patterns (more local, more hierarchical) while output-distilled models do not, this would validate the paper's central architectural claim and provide design principles for future distillation mechanisms.

Scaling the teacher: does a much stronger convnet teacher continue to improve the transformer student, or does the benefit saturate? Table 2 shows a monotonic but diminishing relationship: RegNetY-4GF (80.0%) gives 82.7%, RegNetY-16GF (82.9%) gives 83.1%. The gap between teacher accuracy and student accuracy shrinks as the teacher improves, suggesting potential saturation. A follow-up would test teachers spanning a wider accuracy range β€” from a weak teacher (ResNet-18 at ~70%) to a very strong teacher (EfficientNet-B7 at 84.3% or a model ensemble) β€” and map the full teacher-student transfer curve. Does the student eventually match or exceed the teacher? The paper's 1000-epoch DeiT-Bβš— reaches 84.2% at 224Β² while the RegNetY-16GF teacher is at 82.9%, showing the student can surpass the teacher, but only the strongest teacher tested shows this crossover. If even stronger teachers (e.g., an EfficientNet-B7 teacher at 84.3% trained on ImageNet-1k) push the student beyond 85%, this would establish distillation as a path to convnet-beating transformer performance without architecture search. If the benefit saturates at RegNetY-16GF levels, it would suggest the inductive bias transfer has a ceiling β€” the student can only absorb so much convnet-like processing through attention before architectural constraints (no built-in locality, global receptive fields from layer 1) become the bottleneck.

Combining distillation from multiple teachers with complementary inductive biases. The paper shows convnet teachers outperform transformer teachers, but what about combining both? A concrete experiment would introduce two distillation tokens β€” one supervised by a convnet teacher (e.g., RegNetY-16GF), one supervised by a transformer teacher (e.g., a larger DeiT model or a ViT-L pre-trained on JFT-300M) β€” and test whether the complementary biases (convnet: translation equivariance, locality; transformer: global context, long-range dependencies) combine additively. The paper's architecture already supports this naturally: multiple distillation tokens can be appended to the input sequence, each with its own output head supervised by a different teacher. The key measurement would be whether the late fusion of three heads (class + convnet-distillation + transformer-distillation) outperforms the best two-head combination. If it does, this suggests distillation tokens provide genuinely non-redundant information from different teachers. If it doesn't, and performance saturates at one distillation token regardless of source, this would suggest the shared backbone can only absorb a limited amount of external bias, and the benefit of distillation is architectural regularization (having any secondary supervised pathway) rather than teacher-specific knowledge.

Stress-testing the distillation token with deliberately mismatched or adversarial teachers. The paper's convnet-teacher advantage is demonstrated only with RegNetY models β€” well-designed, well-regularized convnets. A negative-result follow-up would test the limits of this finding: what happens with a deliberately bad teacher (e.g., a randomly-initialized network used as teacher, or a teacher trained on a different task like scene classification)? Does the student still benefit from the distillation token's architectural regularization, or does the teacher need to be competent and task-aligned? What about a teacher with known biases (e.g., a convnet trained only on grayscale images, or one that over-relies on texture cues)? Would the student inherit specific failure modes from the teacher, observable through systematic error analysis? The paper's disagreement analysis (Table 4) provides a template: measuring which specific images the distillation head gets right vs. wrong relative to the class head would reveal whether the distillation token is selectively adopting the teacher's strengths or indiscriminately mimicking its entire decision boundary. If the student inherits teacher weaknesses (e.g., the distillation head performs worse than the class head on images requiring global context, where convnets are known to struggle), this would establish a cost to distillation that complements its accuracy benefit and would guide when to use it.

Distillation token for other vision tasks and modalities beyond classification. The paper evaluates exclusively on image classification (ImageNet and classification transfer tasks). A natural extension tests whether the distillation token mechanism transfers to tasks where convnet inductive biases might matter differently: object detection (where translation equivariance is critical for localization), semantic segmentation (where per-pixel predictions require dense spatial reasoning), or video understanding (where temporal attention patterns interact with spatial biases). The architecture is naturally compatible β€” DETR already uses transformers for detection, and the distillation token could be added to the encoder or decoder β€” but the value proposition changes. For detection, a convnet teacher (e.g., a standard Faster R-CNN) might provide localization-specific inductive biases that improve bounding box regression; the key metric would be whether the distillation token improves mAP beyond what output-level distillation achieves. Conversely, for tasks where convnet inductive biases are less relevant (e.g., video classification where temporal attention dominates), the distillation token from a convnet teacher might provide no benefit or even hurt performance, which would refine our understanding of when the mechanism is useful. A concrete experiment: train a DeiT-based DETR detector with and without a distillation token from a convnet detector teacher, measuring both overall mAP and per-class localization accuracy, to test whether the inductive bias transfer helps with spatial reasoning tasks.

Practical Applications and Downstream Use Cases

Training competitive vision transformers in academic or startup settings with limited compute. The paper's most immediate practical contribution is a recipe that makes vision transformer research and deployment accessible to groups without massive compute infrastructure. Training DeiT-B takes 53 hours on a single 8-GPU node (2–3 days) β€” this is feasible for a university lab with a modest GPU cluster or a startup renting cloud instances. The smaller variants are even more accessible: DeiT-S and DeiT-Ti train in under 3 days on 4 GPUs. For comparison, ViT-B pre-training on JFT-300M required Cloud TPUv3 pods with thousands of cores β€” infrastructure available to only a handful of organizations globally. The practical consequence is that research on pure vision transformers can now follow the standard academic model (open dataset, commodity hardware, reproducible results) rather than the industrial model (proprietary data, massive compute, non-reproducible training). For a startup building a visual recognition product, this means the decision between licensing a pre-trained convnet vs. training a custom transformer is now a genuine engineering choice rather than being forced by compute constraints β€” the training cost for DeiT-B (a few hundred dollars of cloud GPU time) is comparable to training a ResNet or EfficientNet from scratch.

Deploying transformers in throughput-constrained production environments by selecting the right model size for the accuracy-throughput target. Table 5 and Figure 1 provide a direct lookup: for a given throughput requirement (images/second on a V100 GPU), which DeiT model delivers the best accuracy? A production system processing 1000 images/second can choose DeiT-S (940 im/sec, 79.8% accuracy) or add distillation for 81.2% at nearly the same throughput. A system with a 300 images/second budget gets DeiT-B at 81.8% (292 im/sec), and with distillation reaches 83.4% at 291 im/sec β€” the distillation token adds negligible throughput cost (~1% slower due to the extra token and classifier) for a 1.6% accuracy gain. The key practical insight from the paper is that the optimal deployment strategy may differ from the training strategy: train with distillation for the regularization benefit, but at inference time evaluate whether using only the class head (slightly faster, marginally lower accuracy) vs. late fusion (slightly slower, higher accuracy) better matches the latency target. The paper's reporting of separate accuracy numbers for class-only, distillation-only, and late fusion (Table 3) enables this decision directly without additional experimentation.

Using convnet teachers to inject desired inductive biases into transformer deployment models without architectural modification. A practical scenario: an organization has a well-tested, safety-certified convnet model (e.g., for medical imaging or autonomous driving) that has been validated over years of deployment. They want to transition to a transformer architecture (for its flexibility, multi-modal potential, or scaling properties) but cannot afford to re-validate from scratch. DeiT's distillation approach offers a path: use the existing convnet as the teacher, train a transformer student with the distillation token, and measure whether the student inherits the teacher's failure boundaries (what it gets wrong) as well as its accuracy (what it gets right). Table 4's disagreement analysis provides the template: compute the disagreement rate between the legacy convnet and the new transformer student on the validation set. If the distillation-head classifier disagrees with the convnet on only ~10% of images (as in the paper), the transformer may be a drop-in replacement for most inputs, with the remaining 10% flagged for human review or routed to the legacy model. The paper's finding that the distillation head is more correlated with the convnet teacher than the class head (10.0% vs. 11.2% disagreement, Table 4) means that at inference time, the deployment system can use the distillation head for maximum compatibility with the legacy model's behavior, or use late fusion for maximum accuracy with slightly lower behavioral alignment.

When to Prefer This Method

The paper does not frame itself as a choice between named alternatives for practitioners β€” it presents DeiT as a training methodology that makes vision transformers viable on ImageNet-scale data, and demonstrates that the resulting models are competitive with convnets across accuracy, throughput, and transfer learning. The "prefer A over B" framing is implicit in the experiments (convnet teacher vs. transformer teacher, hard distillation vs. soft distillation) rather than stated as a deployment decision guide. The closest the paper comes to articulating a explicit tradeoff is the observation that vision transformers offer flexibility advantages over convnets (variable resolution without architecture changes, no dependence on batch normalization for small-batch training) while matching their accuracy-throughput tradeoff, suggesting that the choice between architectures can now be based on engineering considerations rather than being forced by accuracy gaps.