Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

DINOv2: Learning Robust Visual Features without Supervision

Curated web images yield strong self-supervised visual features

  • Problem Self-supervised visual features degrade when trained on uncurated web images. Nobody controls data quality or diversity, so the features usually lose quality.
  • Method DINOv2 builds a curated image set by picking web images that look like trusted seed images. It then trains a ViT-g with a student and teacher network, matching image-level and patch-level outputs.
  • Results A frozen ViT-g/14 reaches 86.5 linear top-1 on ImageNet-1k, compared to 86.2 for OpenCLIP ViT-G/14.

Why self-supervised features stall outside curated sets

Most efforts to build foundation-style visual encoders use text supervision, such as captions. Captions only approximate image content, and aligned text-image corpora are required, so fine pixel-level detail can be lost. Self-supervised learning avoids captions by learning from images alone, but most of its progress was made on ImageNet-1k, a small curated set.

Scaling self-supervised methods to uncurated data was tried, and the features usually lost quality. The authors trace this to a lack of control over data quality and diversity, which they treat as essential for good features. So they ask whether discriminative self-supervised training, such as iBOT, can work at scale when the data is curated.

Building the LVD-142M set from a web pool

The pipeline avoids metadata, text and pretrained encoders, and it relies on visual similarity between images. The uncurated pool is built from image links in crawled web pages, after removing unsafe URLs and post-processing images. Near-duplicates are removed with the copy detection pipeline of Pizzi et al. (2022), leaving 1.2B unique images.

Each image is embedded with a self-supervised ViT-H/16 pretrained on ImageNet-22k, and cosine similarity measures closeness. The uncurated pool is grouped with k-means, and each curated query image retrieves its nearest neighbors. The authors chose N = 4 neighbors per query, because larger N brought more images that were retrieved for several queries.

Rebalancing across concepts is handled by a naive clustering approach, which avoids overfitting to a few dominant modes. The curated seeds include ImageNet-22k, the ImageNet-1k train split, Google Landmarks and several fine-grained datasets. The retrieval ran on 20 nodes with 8 V100-32GB GPUs and took less than two days, producing a set of 142M images.

The training objective, term by term

The core idea is to train a student network to match a teacher network on different views of the same image, at both the image level and the patch level. The image-level term compares student and teacher prototype scores computed from class tokens over different crops, and the loss is \\(L_{\\text{DINO}} = -\\sum p_t \\log p_s\\). The teacher head is an exponential moving average of past student iterates, so the teacher changes more slowly than the student.

The patch-level term masks some input patches for the student but not for the teacher. The loss compares the student's outputs at masked positions with the teacher's outputs at the visible corresponding patches, written as \\(L_{\\text{iBOT}} = -\\sum_i p_{t,i}\\log p_{s,i}\\). Unlike the earlier iBOT design, the authors use two separate heads for the two objectives, because at scale sharing them worked worse.

For the teacher, the softmax-centering step is replaced by Sinkhorn-Knopp normalization run for 3 iterations, while the student keeps the softmax. A KoLeo regularizer is added on L2-normalized features, written as \\(L_{\\text{koleo}} = -\\frac{1}{n}\\sum_{i=1}^{n}\\log(d_{n,i})\\) with \\(d_{n,i}=\\min_{j\\neq i}\\|x_i - x_j\\|\\). Because the minus sign sits in front of the log, a larger nearest-neighbor distance within the batch gives a lower loss, which spreads the features out.

Making training practical at 1B parameters

The ViT-g backbone has 1.1B parameters, with an embedding dimension of 1536 across 24 heads, so each head is 64-dimensional. The authors reimplemented FlashAttention, which is tuned for head dimensions that are multiples of 64. Against the iBOT implementation, the DINOv2 code runs about 2× faster and uses about one third of the memory on the same hardware.

Large and small crops give token sequences of different lengths, which cannot be batched directly. The authors concatenate them into one long sequence and apply a block-diagonal attention mask, so attention cannot cross sequences. This gives the same output as separate forward passes, but with better compute efficiency.

Stochastic depth is implemented so that dropped residual branches are skipped rather than masked, which saves compute roughly in proportion to the drop rate. With the drop rate set to d = 40%, the authors report a large gain in compute and memory efficiency. The AdamW state needs four float32 replicas, about 16 GB for a billion-parameter model, so FSDP shards them across GPUs.

Weights and backbone gradients are communicated in float16, while MLP head gradients stay in float32 for stability. The authors estimate this cuts communication costs by approximately 50% compared with float32 all-reduce in DistributedDataParallel. They found FSDP mixed precision beat DDP with autocast in nearly every case they tried.

Reproducing DINOv2-g on A100-40GB GPUs is estimated at 22,016 GPU-hours. Under the paper's assumptions of 400W per GPU, a PUE of 1.1 and the stated carbon intensity, the estimated emission is 3.7 tCO2eq.

Frozen features against weakly supervised models

Linear probes on frozen features are the main test, so the backbone weights are not updated during evaluation. Over the best self-supervised baseline, iBOT ViT-L/16 trained on ImageNet-22k, the authors report a +4.2% gain on linear evaluation. The ViT-g/14 reaches 86.5 linear top-1 on ImageNet-1k, compared to 86.2 for OpenCLIP ViT-G/14, a margin the authors report as +0.3%.

On ImageNet-V2 the authors report +1.1% over EVA-CLIP under the same linear evaluation, which they read as better generalization. On iNaturalist 2018 a linear classifier on frozen ViT-g/14 features is +8.6% above OpenCLIP ViT-G/14, but Places205 is −2.3% lower. The authors read the Places205 result as scale and diversity helping domains that the curation did not target, and the gap as a limit on that benefit.

The best finetuned result reported is 88.9%, which the authors place 2.2 points below the state-of-the-art figure they cite. The authors take the modest gain from finetuning as a sign that the features already work well without it.

What the training ablations isolate

Starting from an iBOT baseline, cumulative changes raise ImageNet-1k k-NN top-1 from 72.9 to 82.0. Adding LayerScale and stochastic depth lowers the linear probe from 83.2 to 82.0, although the authors keep them for training stability. The ablations use the ViT-Large architecture on ImageNet-22k, so they show the effect of each change in that setup.

On ImageNet-1k linear evaluation, LVD-142M scores 85.8 against 85.9 for ImageNet-22k, so the curated set does not improve that benchmark. On Im-A the curated set scores 73.9 against 73.5, and on ADE-20k 47.7 against 46.6. The uncurated pool scores 83.3 on ImageNet-1k and 59.4 on Im-A, below both curated sets.

Removing the iBOT masked image modeling term drops ADE-20k from 47.1 to 44.2.

Distillation and the high-resolution phase

Smaller models are distilled from the frozen ViT-g rather than trained from scratch. The student uses the same loop, with the iBOT loss on two global crops and no masking or stochastic depth, and its EMA is kept as the final model. A distilled ViT-L/14 beats the scratch-trained ViT-L/14 on all 12 benchmarks in the comparison, reaching 86.3 on ImageNet-1k against 84.5.

Ten thousand iterations at high resolution at the end of training give results close to full high-resolution training, in the ViT-L/16 ImageNet-1k ablation.

Dense prediction results

With a linear classifier on frozen patch features, the authors reach 62.9 mIoU on ADE20K. That setup skips the efficiency changes from Sec. 5, and the segmentation training took 28 hours on 16 V100 GPUs.

On NYUd, a DPT decoder on frozen ViT-g/14 features reaches an RMSE of 0.279, against the 0.330 reference, and lower is better. The iBOT ViT-L features beat OpenCLIP ViT-G on depth, which the authors attribute to caption-based learning missing subtle patterns.

Geographic and income gaps

On Dollar Street, the ViT-g/14 reaches 67.4 on low-income households and 90.5 on high-income ones. The authors report a 31.7% gap between high-income and low-income households. Africa falls 25.7% below Europe, which the authors read as continued bias toward Western countries.

In the gender, skin tone and age probe, the frozen backbone with a linear classifier labels most images as Human across groups. Neither SEERv2 nor DINOv2 predicts Non-Human or Crime labels, except for two images with bars that resemble prison bars. This probe covers gender, skin tone and age only, so other attributes were not tested.

Paper info

Authors
Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve, Hu Xu, Hervé Jegou, Julien Mairal, Patrick Labatut, Armand Joulin, Piotr Bojanowski
Venue
arXiv · Preprint
First published
2023-4-14
Added
2026-11-11
Updated
2024-2-2
Version
v2
arXiv
2304.07193
Category
cs.CV
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Maxime Oquab, Timothée Darcet, Théo Moutakanni, Huy Vo, Marc Szafraniec, Vasil Khalidov, Pierre Fernandez, Daniel Haziza, Francisco Massa, Alaaeldin El-Nouby, Mahmoud Assran, Nicolas Ballas, Wojciech Galuba, Russell Howes, Po-Yao Huang, Shang-Wen Li, Ishan Misra, Michael Rabbat, Vasu Sharma, Gabriel Synnaeve et al. (2023). DINOv2: Learning Robust Visual Features without Supervision. arXiv:2304.07193v2. https://arxiv.org/abs/2304.07193v2

BibTeX
@misc{oquab2023dinov2,
  title = {{DINOv2: Learning Robust Visual Features without Supervision}},
  author = {Maxime Oquab and Timothée Darcet and Théo Moutakanni and Huy Vo and Marc Szafraniec and Vasil Khalidov and Pierre Fernandez and Daniel Haziza and Francisco Massa and Alaaeldin El-Nouby and Mahmoud Assran and Nicolas Ballas and Wojciech Galuba and Russell Howes and Po-Yao Huang and Shang-Wen Li and Ishan Misra and Michael Rabbat and Vasu Sharma and Gabriel Synnaeve and Hu Xu and Hervé Jegou and Julien Mairal and Patrick Labatut and Armand Joulin and Piotr Bojanowski},
  year = {2023},
  eprint = {2304.07193},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.07193v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up