Emerging Properties in Self-Supervised Vision Transformers

Mathilde Caron, Hugo Touvron, Ishan Misra, Hervé Jégou, Julien Mairal, Piotr Bojanowski, Armand Joulin

2021 · ICCV

Emerging Properties in Self-Supervised Vision Transformers

Problem

Framing

Self-supervised vision transformers had unclear behavior and weaker evidence than convnet pipelines on dense visual structure. DINO closes this with a teacher–student self-distillation objective that makes ViTs learn object-aware attention maps and strong frozen features, reaching 78.3% k-NN top-1 on ImageNet.

Currently Used Methods

Foundational

Proposed Method

Architecture

DINO uses identical student and teacher backbones, usually ViT-S or ViT-B, with separate parameters and projection heads. Both networks process multiple augmented views; the student sees all crops, the teacher only global crops. The teacher weights follow an EMA of the student.

Verified architecture: teacher–student self-distillation with two image views, softmax outputs, centering on the teacher branch, stop-gradient, and EMA teacher updates.

Loss / Objective

The objective matches student predictions to sharpened, centered teacher targets across views.

L=xVxV,xxH(Pt(x),Ps(x))\mathcal{L} = \sum_{x \in \mathcal{V}} \sum_{x' \in \mathcal{V}', x \neq x'} H\left(P_t(x'), P_s(x)\right) Ps(x)(i)=exp(gθ(x)(i)/τs)k=1Kexp(gθ(x)(k)/τs),Pt(x)(i)=exp((gξ(x)(i)c(i))/τt)k=1Kexp((gξ(x)(k)c(k))/τt)P_s(x)^{(i)} = \frac{\exp\left(g_{\theta}(x)^{(i)} / \tau_s\right)}{\sum_{k=1}^{K} \exp\left(g_{\theta}(x)^{(k)} / \tau_s\right)}, \qquad P_t(x)^{(i)} = \frac{\exp\left((g_{\xi}(x)^{(i)} - c^{(i)}) / \tau_t\right)}{\sum_{k=1}^{K} \exp\left((g_{\xi}(x)^{(k)} - c^{(k)}) / \tau_t\right)}

Algorithm

The teacher and center follow moving-average updates.

ξmξ+(1m)θ\xi \leftarrow m\,\xi + (1-m)\,\theta cλc+(1λ)1Bi=1Bgξ(xi)c \leftarrow \lambda c + (1-\lambda)\, \frac{1}{B} \sum_{i=1}^{B} g_{\xi}(x_i)

Training Procedure

Evaluation

Datasets

Metrics

Headline results

Results table

Table 3: Image retrieval excerpt for DINO with ResNet-50 features

MethodArch.Param.ROxfRPar
DINORN502375.367.5

Qualitative dense behavior

Page 7 shows two evaluation artifacts: a DAVIS-2017 video-object-segmentation table and qualitative attention maps from different ViT heads. The maps localize distinct objects or parts without mask supervision.

Verified evaluation page: DAVIS-2017 segmentation results table above qualitative multi-head attention maps that highlight object regions and parts.

Ablations

Method Strengths and Weaknesses

Strengths

Weaknesses

Suggestions from the authors

Links

Prior Papers

Further Papers