Back to paper library
arXiv 2025Contrastive learningPaper notes

DINOv3

Trained into a Blur

Original paper

DINOv3

Paper authors

Oriane Siméoni · Huy V. Vo · Maximilian Seitzer …

Show all 26 authors

Oriane Siméoni · Huy V. Vo · Maximilian Seitzer · Federico Baldassarre · Maxime Oquab · Cijo Jose · Vasil Khalidov · Marc Szafraniec · Seungeun Yi · Michaël Ramamonjisoa · Francisco Massa · Daniel Haziza · Luca Wehrstedt · Jianyuan Wang · Timothée Darcet · Théo Moutakanni · Leonel Sentana · Claire Roberts · Andrea Vedaldi · Jamie Tolan · John Brandt · Camille Couprie · Julien Mairal · Hervé Jégou · Patrick Labatut · Piotr Bojanowski

Publication
Publication venue not yet verified
First submitted to arXiv
arXiv:2508.10104
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{contrastivelearningdinov32025,
  title = {{DINOv3}},
  author = {Oriane Siméoni and Huy V. Vo and Maximilian Seitzer and Federico Baldassarre and Maxime Oquab and Cijo Jose and Vasil Khalidov and Marc Szafraniec and Seungeun Yi and Michaël Ramamonjisoa and Francisco Massa and Daniel Haziza and Luca Wehrstedt and Jianyuan Wang and Timothée Darcet and Théo Moutakanni and Leonel Sentana and Claire Roberts and Andrea Vedaldi and Jamie Tolan and John Brandt and Camille Couprie and Julien Mairal and Hervé Jégou and Patrick Labatut and Piotr Bojanowski},
  year = {2025},
  eprint = {2508.10104},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.10104}
}
On this page

In 2023, DINOv2 proved that a vision model trained purely with self-supervised learning, with no annotations at all, could stand on equal footing with models like CLIP that are trained on image–text pairs. Its patch features were also especially useful. Freeze the backbone, attach one linear layer, and you could do segmentation and depth estimation.

Going by the experience of large language models, the next step was to scale the model and the data up another tenfold. Meta's team did exactly that, but after scaling up they ran into three problems.

First, how do you pick useful training data out of unannotated images? Second, the commonly used cosine learning-rate schedule requires knowing in advance how long training will run in total, and with this much data that number is hard to guess. Third, and this is the paper's central finding, the longer the model trains, the more accurate its classification gets, but the blurrier its patch features become.

This 67-page technical report has 26 authors. The lead authors are Oriane Siméoni, Huy V. Vo, Maximilian Seitzer, Federico Baldassarre and Maxime Oquab, mostly from Meta AI Research, with collaborators from WRI and Inria.

Defining the problem

Original Figure 5. On the left, (a) shows two images (sheep on a grassy slope, yellow flowers) with the cosine similarity between the CLS token and every patch feature at 200 thousand and 1 million training iterations; at 200 thousand the map is dark overall, and at 1 million large numbers of bright spots appear. On the right are two curves over training for ViT-g (b) and ViT-7B (c): the pink ImageNet linear classification line rises all the way, while the purple VOC segmentation mIoU peaks at about 200 thousand iterations and then slides steadily down, with ViT-7B ending up at around 82.
Original Figure 5, Siméoni et al., from PDF page 10, arXiv license, scholarly quotation.

This figure is where the whole paper starts. For both ViT-g and ViT-7B, ImageNet linear classification accuracy keeps rising as training goes on; but segmentation on VOC using patch features peaks at around 200 thousand iterations and then falls steadily. The 7B model falls further and ends up worse than early in training.

The authors drew the similarity maps of the patch features. Pick one patch and compute its similarity to every other patch. At 200 thousand iterations, the region that lights up is cleanly concentrated on the same object; from 600 thousand on, unrelated bright spots start popping up all over the image. At the same time, every patch's similarity to the CLS token keeps rising, and the patch features gradually lose the local information of "which small piece of the image I am," looking more and more like a summary of the whole image.

This phenomenon had already shown up faintly in DINOv2, and another study that scaled DINOv2 to 7B (Fan et al.) mentioned it too, but nobody had solved it. It directly takes the shine off "train longer, make the model bigger."

Solving the problem

Data

The authors collected about 17 billion images from public Instagram posts and then selected from them along three routes.

The first route is automatic balanced sampling. They run a five-level hierarchical k-means on DINOv2 features, with 200 million clusters at the bottom level and 25 thousand at the top, and then sample evenly across the clusters, ending up with 1.689 billion images, called LVD-1689M. The aim is to cover every kind of visual concept that appears on the web. The second route is retrieval, finding images in the pool that resemble downstream task datasets. The third route uses public datasets directly: ImageNet-1k, ImageNet-22k and Mapillary.

During training, 10% of the iterations use batches made up solely of ImageNet-1k, and the remaining batches mix the routes together. The ablations show that clustering alone and retrieval alone each have benchmarks they're good at, and only the mix covers both.

The 7B model and schedule-free training

The main model is a ViT with 6.7 billion parameters, 40 layers and an embedding dimension of 4096, with the patch size changed from DINOv2's 14 to 16. The positional encoding is switched to RoPE, and during training the coordinate range is randomly rescaled so the model adapts to different resolutions and aspect ratios.

The loss keeps DINOv2's combination: the image-level DINO loss, the patch-level iBOT loss, plus the KoLeo regularizer that spreads the features out in space:

LPre=LDINO+LiBOT+0.1 LKoLeo\mathcal{L}_{\mathrm{Pre}} = \mathcal{L}_{\mathrm{DINO}} + \mathcal{L}_{\mathrm{iBOT}} + 0.1\,\mathcal{L}_{\mathrm{KoLeo}}

The biggest change is dropping schedules. The learning rate, weight decay and the teacher's EMA momentum are all held constant, keeping only the initial warm-up. That way there's no need to decide in advance how long to train; as long as downstream performance keeps improving, training can just go on. The main training ran for 1 million iterations with a batch size of 4096 on 256 GPUs.

Gram anchoring

But keep training like that, and the patch features get blurry.

The authors' observation is that "learning good global features" and "maintaining local consistency between patches" are actually not strongly correlated. The iBOT loss is already there to look after the patches, but as training stretches on, DINO's global objective still gradually gains the upper hand.

Their solution is to constrain the similarity structure between patch features rather than the features themselves. An image has PP patches. L2-normalize each patch's features and arrange them into a matrix XX; XX⊤X X^{\top} is then the pairwise similarity between all patches, that is, the Gram matrix. The new loss requires the student's Gram matrix to stay close to the Gram matrix of an earlier model:

LGram=∥XSXS⊤−XGXG⊤∥F2\mathcal{L}_{\mathrm{Gram}} = \big\lVert X_S X_S^{\top} - X_G X_G^{\top} \big\rVert_F^2

XGX_G comes from the so-called Gram teacher, the teacher from early in training whose patch features were still clean. Only the structure of the similarities is required to stay the same, so individual features can still move freely and global learning isn't tied down.

In practice it takes very little effort. The first 1 million iterations train as usual, and only then is this loss added, in what is called the refinement stage, with the Gram teacher updated every 10 thousand iterations. The authors found that even when the features had already become badly blurred, this loss could pull dense-task performance back within 10 thousand iterations.

One more trick is to feed the Gram teacher its input image at twice the resolution, which gives a finer feature map, and then shrink that map back to the original size. That amounts to smoothing the features once, and this cleaner Gram matrix is used as the target.

SettingIN linearADE20k mIoUNYU RMSE ↓
No Gram88.250.30.307
Gram, 200k teacher88.053.60.285
Gram, 200k teacher, 2× res.88.055.70.281
Gram, 1M teacher, 2× res.88.154.90.290

Segmentation gains more than 5 mIoU, while classification barely moves. A Gram teacher from 100 thousand or 200 thousand iterations works about the same, but using a teacher already trained to 1 million iterations weakens the effect, because its own patch features are no longer clean.

Original Figure 10. Patch similarity maps for five photos (yellow flowers, Canada geese, an izakaya table, seals on a beach, sheep on grass) before and after adding high-resolution Gram anchoring, with 1024×1024 inputs. The middle row (without Gram) is full of scattered bright spots; in the bottom row (with it) the bright regions cleanly follow the petals, each goose, the plate of sashimi, and the groups of seals and sheep.
Original Figure 10, Siméoni et al., from PDF page 14, arXiv license, scholarly quotation.

High resolution and distillation

The main training uses 256×256 inputs. After that comes another 10 thousand iterations of training on large 512 and 768 images, and this step also needs Gram anchoring, or dense tasks get noticeably worse. Training never sees anything larger than 768, but the authors observed that the feature maps stay stable with inputs beyond 4K resolution.

The 7B model is too big; in practice few people can run it. The authors distill it into a whole family: ViT-S (21 million parameters), ViT-B (86 million), ViT-L (300 million), the custom ViT-S+ and ViT-H+ (800 million), plus ConvNeXt versions. During distillation the 7B model is a fixed teacher, so the students don't run into the blurring patch problem and don't need Gram. To save on the teacher's inference cost, they train several students at the same time, all sharing the results of a single teacher inference.

Discussion

Dense tasks

Original Figure 13. Patch features of six photos (a dinosaur skeleton, a bicycle and a garden, wooden barrels, a monkey in a tree, a rose garden, an antelope) projected with PCA onto three principal components and mapped to RGB. From left to right: the original image, SigLIP 2, PEspatial, DINOv2 and DINOv3. SigLIP 2 is almost colored noise; PEspatial and DINOv2 show object outlines but are still grainy; DINOv3 has the smoothest color patches, with the dinosaur, the bicycle, the barrels and the antelope all clearly separated from the background.
Original Figure 13, Siméoni et al., from PDF page 18, arXiv license, scholarly quotation.

Results with the backbone frozen and only a linear layer trained:

ModelADE20k ↑Cityscapes ↑NYU RMSE ↓
SigLIP 2 ViT-g42.764.80.494
DINOv2 ViT-g49.575.60.372
AM-RADIOv2.5 ViT-g53.078.40.340
DINOv3 ViT-7B55.981.10.309

AM-RADIO is a model distilled from SAM, CLIP and DINOv2 together, and its segmentation ability is backed by SAM's human mask annotations. DINOv3 uses no annotations at all and is still nearly 3 points higher on ADE20k, and 13 points higher than SigLIP 2, which is trained on images and text.

The same holds on heavier tasks. With the backbone completely frozen and only a 100-million-parameter Plain-DETR detection head trained, COCO mAP is 66.1, slightly higher than the best system of the time, which needed 2 billion trainable parameters; semantic segmentation on ADE20k is 63.0 mIoU, tying the best method.

Global tasks and the family

ImageNet linear classification is 88.4, 0.7 to 0.9 points below SigLIP 2 and Perception Encoder; ObjectNet is 79.0, slightly above SigLIP 2 and slightly below PE. On global tasks, a self-supervised model has finally caught up with models trained on tens of billions of image–text pairs.

The distilled ViT-L, against a SigLIP 2 of the same size, is about even on ImageNet ReaL (90.2 vs 90.1), but on ADE20k it's 54.9 vs 43.6. The largest, ViT-H+, has only 800 million parameters and is already on par with the 7B teacher on most benchmarks.

Weaknesses and cost

There's a very honest table in the appendix. On datasets that require reading text, such as traffic signs, logos and products, DINOv3 clearly trails PE, which is trained on images and text. On the logo dataset FlickrLogos-32, PE scores 99.0 and DINOv3 86.3; on the product dataset Stanford Online Products, it's 80.7 vs 65.2. Without text supervision, the model doesn't much care what's written in the image. RP2K, for retail product recognition, is the exception, with DINOv3 edging out PE 94.7 to 93.1.

The authors also used the same method to train a satellite-imagery version, trained on 493 million satellite images. Interestingly, on several high-resolution remote-sensing segmentation and detection benchmarks, the 7B model trained on ordinary web images actually beats the satellite-specific version.

Finally, the cost. The paper estimates that a full rerun of the 7B pretraining takes 61,440 H100 GPU hours and 47 MWh of electricity, about 18 tonnes of CO2 equivalent. But the whole project, from start to finish, used about 9 million GPU hours and emitted about 2,600 tonnes, more than 140 times that final training run. The paper's comparison is that this equals half the total emissions of one day of flights between Paris and New York.

The weights are public, but under Meta's own DINOv3 license rather than a standard open-source license, and you have to apply before downloading.

Conclusion

DINOv3 pushes self-supervised learning to the scale of 7B parameters and 1.7 billion images, mainly through three things: careful data selection, a schedule-free way of training that can keep going indefinitely, and this paper's most important piece, Gram anchoring.

The idea of Gram anchoring is neat. It doesn't dictate what the features look like; it only requires the similarity structure between patches to stay the way it was early on, when the model was still clean. Global features can keep getting stronger without sacrificing local features.

The result is a backbone you can freeze and use as is, far ahead on dense tasks and level with image–text models on global tasks. Of course, it also used up 9 million GPU hours.