<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>DINO | Federico Baldassarre</title><link>https://baldassarrefe.github.io/tags/dino/</link><atom:link href="https://baldassarrefe.github.io/tags/dino/index.xml" rel="self" type="application/rss+xml"/><description>DINO</description><generator>HugoBlox Kit (https://hugoblox.com)</generator><language>en-us</language><lastBuildDate>Thu, 14 Aug 2025 00:00:00 +0000</lastBuildDate><image><url>https://baldassarrefe.github.io/media/icon_hu_17b72d8c15e8386d.png</url><title>DINO</title><link>https://baldassarrefe.github.io/tags/dino/</link></image><item><title>DINOv3</title><link>https://baldassarrefe.github.io/publications/dinov3-2025/</link><pubDate>Thu, 14 Aug 2025 00:00:00 +0000</pubDate><guid>https://baldassarrefe.github.io/publications/dinov3-2025/</guid><description>&lt;h1 id="dinov3-"&gt;DINOv3 🦖🦖🦖&lt;/h1&gt;
&lt;p&gt;DINOv3 is a significant leap forward in self-supervised vision foundation models.
This major release sets a new standard, offering stunning &lt;strong&gt;high-resolution dense features&lt;/strong&gt; that are set to revolutionize various vision tasks.&lt;/p&gt;
&lt;p&gt;While we scaled both model size and training data, DINOv3&amp;rsquo;s true innovation lies in key architectural and training advancements.&lt;/p&gt;
&lt;h2 id="whats-inside-dinov3"&gt;What&amp;rsquo;s inside DINOv3?&lt;/h2&gt;
&lt;p&gt;DINOv3 is packed with features and techniques:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A powerful &lt;strong&gt;7B ViT&lt;/strong&gt; foundation model, complemented by smaller distilled models.&lt;/li&gt;
&lt;li&gt;Trained on a massive dataset of 1.7 billion curated images, remarkably &lt;strong&gt;without any annotations&lt;/strong&gt;, showcasing the power of self-supervision.&lt;/li&gt;
&lt;li&gt;The introduction of &lt;strong&gt;Gram anchoring&lt;/strong&gt;, a novel technique that effectively addresses feature map degradation, a common challenge when training models of this scale for extended periods.&lt;/li&gt;
&lt;li&gt;Achieving &lt;strong&gt;high-resolution adaptation&lt;/strong&gt; through the use of relative spatial coordinates and 2D RoPE, enabling exceptional performance on high-resolution inputs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/scaling-perf.png" target="_blank" rel="noopener" aria-label="Open image: Scaling performance of the DINOv3"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/scaling-perf.png" alt="Scaling performance of the DINOv3" loading="lazy"
width="1944" height="630"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;h3 id="dense-feature-degradation-and-gram-anchoring"&gt;Dense Feature Degradation and Gram Anchoring&lt;/h3&gt;
&lt;p&gt;As we scaled up model size, number of images, and training duration, we observed two phenomena:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Downstream classification accuracy continued to improve.&lt;/li&gt;
&lt;li&gt;Performance on dense tasks, which rely on rich, consistent feature maps, would rapidly drop.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example, see the comparison of ImageNet-1K classification accuracy &lt;em&gt;vs.&lt;/em&gt; Pascal VOC segmentation mIoU:&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/segdrop.png" target="_blank" rel="noopener" aria-label="Open image: Segdrop"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/segdrop.png" alt="Segdrop" loading="lazy"
width="1244" height="1122"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;From qualitative observations, we notice that early during training, dense features are nicely localized and consistent within object boundaries.
However, as training progresses, they become progressively more noisy.&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/feature-degradation.jpg" target="_blank" rel="noopener" aria-label="Open image: Feature map degradation"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/feature-degradation.jpg" alt="Feature map degradation" loading="lazy"
width="2358" height="1278"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;To overcome this roadblock, we introduce &lt;strong&gt;Gram anchoring&lt;/strong&gt;.
Our goal is to achieve consistency found in early training iterations while retaining the semantic richness developed during late training.
Therefore, we load an early checkpoint of the model being trained, and use it as a second teacher.
Instead of forcing the features of the student to match the teacher features perfectly, which would be a too strong constraint, we distill the high-resolution &lt;strong&gt;pairwise patch similarity&lt;/strong&gt;, i.e. the Gram matrix, from the teacher.
Critically, this still allows the student features to evolve freely and improve, enabling unprecedented performance.&lt;/p&gt;
&lt;p&gt;Upon introducing Gram anchoring, we qualitatively observe an improvement in the feature maps:&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/ducks-before-after.jpg" target="_blank" rel="noopener" aria-label="Open image: Ducks before and after Gram anchoring"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/ducks-before-after.jpg" alt="Ducks before and after Gram anchoring" loading="lazy"
width="2300" height="774"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;And quantitatively, we see a significant boost in performance on dense tasks:&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/gram-before-after.png" target="_blank" rel="noopener" aria-label="Open image: Performance before and after Gram anchoring"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/gram-before-after.png" alt="Performance before and after Gram anchoring" loading="lazy"
width="1330" height="612"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;h3 id="high-resolution-adaptation"&gt;High-Resolution Adaptation&lt;/h3&gt;
&lt;p&gt;Now that we can train the model for longer, we should also think about training it on high-resolution images.
For the longest part, we feed the model images of size $256{\times}256$, which we increase to $512{\times}512$ and $768{\times}768$ in the final training stages.&lt;/p&gt;
&lt;p&gt;Our &lt;strong&gt;constant-schedule training&lt;/strong&gt; approach allows us to spin off a model specifically for high-resolution adaptation at any point.
We seamlessly increase the input resolution while keeping Gram anchoring enabled.
In our implementation, we use &lt;strong&gt;relative spatial coordinates&lt;/strong&gt; in the range of $[0,1]^2$ to represent the position of each patch in the image for the 2D rotational positional encoding (RoPE).
As a consequence, images of higher resolution are simply treated as an interpolation of the patch coordinates, without special handling.&lt;/p&gt;
&lt;h2 id="how-well-does-it-work"&gt;How well does it work?&lt;/h2&gt;
&lt;h3 id="qualitative-visualization"&gt;Qualitative Visualization&lt;/h3&gt;
&lt;p&gt;Compared to other vision foundation models, both self-supervised and not, DINOv3 features are more consistent and semantically rich.
The quality of DINOv3&amp;rsquo;s feature maps is truly exceptional.&lt;/p&gt;
&lt;p&gt;In the crowded market scene below, we visualize the cosine similarity between the patches marked with a red cross and all other patches.&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/market.jpg" target="_blank" rel="noopener" aria-label="Open image: Crowded market scene"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/market.jpg" alt="Crowded market scene" loading="lazy"
width="2240" height="1682"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;Compared to other vision foundation models, both self-supervised and not, DINOv3 patch features are more consistent, artifact-free, with no unwanted spilling around the edges of objects.
Object contours look so precise, it appears like object segmentation is just one clustering step away!&lt;/p&gt;
&lt;p&gt;Below, we visualize the first three PCA components of the features as RGB:&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/pca-dinosaur-bike.jpg" target="_blank" rel="noopener" aria-label="Open image: Feature PCA dinosaur and bike"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/pca-dinosaur-bike.jpg" alt="Feature PCA dinosaur and bike" loading="lazy"
width="2446" height="828"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;After high-resolution adaptation, DINOv3 models generalize well to a wide range of resolutions, even higher than those seen during training.
Forget Full-HD, it&amp;rsquo;s time for &lt;strong&gt;dense features in 4K&lt;/strong&gt;!&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/high-res-dog.jpg" target="_blank" rel="noopener" aria-label="Open image: DINOv3 dense features in 4K"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/high-res-dog.jpg" alt="DINOv3 dense features in 4K" loading="lazy"
width="2016" height="466"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;h3 id="performance-evaluation"&gt;Performance Evaluation&lt;/h3&gt;
&lt;p&gt;Even with a frozen backbone, DINOv3 delivers massive performance gains across a variety of benchmarks.
Some examples include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;COCO detection&lt;/strong&gt;: achieving a state-of-the-art 66.1 mAP with a frozen backbone and detection model based on Plain-DETR. This is incredible!&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ADE20k segmentation&lt;/strong&gt;: a linear 55.9 mIoU, a significant +6 improvement over previous self-supervised methods, and 63.0 mIoU with a decoder on top.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;3D correspondence&lt;/strong&gt;: impressive 64.4 recall on NAVI.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Video tracking&lt;/strong&gt;: a strong 83.3 J&amp;amp;F on DAVIS, thanks to its ability to handle high-resolution inputs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Below, is an example of segmentation tracking on a video.
Object instances in the first frame of the video are segmented manually (thanks SAM 2!).
Subsequent frames are automatically segmented by propagating labels from the first frame based on patch similarity in the DINOv3 feature space.&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/ducks-tracking.jpg" target="_blank" rel="noopener" aria-label="Open image: Segmentation tracking example"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/ducks-tracking.jpg" alt="Segmentation tracking example" loading="lazy"
width="2572" height="864"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;h2 id="model-family"&gt;Model Family&lt;/h2&gt;
&lt;p&gt;DINOv3 comes with a versatile model family to suit various needs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The powerful &lt;strong&gt;ViT-7B base model&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;A range of ViT variants: ViT-S/S+/B/L/H+ with parameters ranging from 21M to 840M.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;ConvNeXt variants&lt;/strong&gt; optimized for efficient inference.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;text-aligned ViT-L (dino.txt)&lt;/strong&gt;, opening up exciting possibilities for multi-modal applications.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Also, by popular demand, we switched to &lt;strong&gt;patch size 16&lt;/strong&gt;!
No more patch size 14 and weird image sizes like $224{\times}224$ and $448{\times}448$.&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/family-flops.png" target="_blank" rel="noopener" aria-label="Open image: DINOv3 model family"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/family-flops.png" alt="DINOv3 model family" loading="lazy"
width="718" height="586"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;The DINOv3 recipe exhibits remarkable generalization beyond natural images.
We train a model from scratch on aerial images, setting a state of the art on geospatial benchmarks like canopy height estimation and land cover classification.
This demonstrates the pure magic of self-supervised learning: the same recipe, applied to a different domain, yields incredible results.&lt;/p&gt;
&lt;p&gt;
&lt;figure&gt;
&lt;a class="original-image-link" href="https://baldassarrefe.github.io/publications/dinov3-2025/satellite-tasks.jpg" target="_blank" rel="noopener" aria-label="Open image: Geospatial tasks"&gt;
&lt;img src="https://baldassarrefe.github.io/publications/dinov3-2025/satellite-tasks.jpg" alt="Geospatial tasks" loading="lazy"
width="2584" height="578"&gt;
&lt;/a&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;p&gt;We are committed to open-source and we release the DINOv3 models with a free commercial license.
Find everything you need to get started:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Training and evaluation code, adapters, and notebooks in the
.&lt;/li&gt;
&lt;li&gt;Pretrained backbones in this
compatible with the Transformers library.&lt;/li&gt;
&lt;li&gt;The official
.&lt;/li&gt;
&lt;li&gt;The
on arXiv.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="twitter-thread"&gt;Twitter thread&lt;/h2&gt;
&lt;blockquote class="twitter-tweet"&gt;&lt;p lang="en" dir="ltr"&gt;Say hello to DINOv3 🦖🦖🦖&lt;br&gt;&lt;br&gt;A major release that raises the bar of self-supervised vision foundation models.&lt;br&gt;With stunning high-resolution dense features, it’s a game-changer for vision tasks!&lt;br&gt;&lt;br&gt;We scaled model size and training data, but here&amp;#39;s what makes it special 👇 &lt;a href="https://t.co/VBkRuAIOCi"&gt;pic.twitter.com/VBkRuAIOCi&lt;/a&gt;&lt;/p&gt;&amp;mdash; Federico Baldassarre (@BaldassarreFe) &lt;a href="https://x.com/BaldassarreFe/status/1956027867860516867?ref_src=twsrc%5Etfw"&gt;August 14, 2025&lt;/a&gt;&lt;/blockquote&gt;
&lt;script async src="https://platform.x.com/widgets.js" charset="utf-8"&gt;&lt;/script&gt;</description></item><item><title>Back to the Features: DINO as a Foundation for Video World Models</title><link>https://baldassarrefe.github.io/publications/dino-world-2025/</link><pubDate>Tue, 15 Jul 2025 00:00:00 +0000</pubDate><guid>https://baldassarrefe.github.io/publications/dino-world-2025/</guid><description>&lt;p&gt;Given past frames, the model can predict future DINOv2 features autoregressively.
How well does it do? It depends on the objects in motion and the context provided.&lt;/p&gt;
&lt;p&gt;In the video below, the model can observe the taxi trajectory for long enough to predict that it will turn right.&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://baldassarrefe.github.io/publications/dino-world-2025/autoregressive_taxi_10.png"
alt="Autoregressive prediction of DINO-world with 10 frames of context. Top row: ground-truth video. Middle row: per-frame DINOv2 features. Bottom row: autoregressive predictions of DINO-world."&gt;&lt;figcaption&gt;
&lt;p&gt;Autoregressive prediction of DINO-world with 10 frames of context. Top row: ground-truth video. Middle row: per-frame DINOv2 features. Bottom row: autoregressive predictions of DINO-world.&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;On the contrary, when given a too few frames, the model predicts that the taxi will continue straight.
The blurry features towards the end are an artifact of the model&amp;rsquo;s uncertainty about the future due to the ambiguous context.&lt;/p&gt;
&lt;figure&gt;&lt;img src="https://baldassarrefe.github.io/publications/dino-world-2025/autoregressive_taxi_4.png"
alt="Autoregressive prediction of DINO-world with only 4 frames of context. Top row: ground-truth video. Middle row: per-frame DINOv2 features. Bottom row: autoregressive predictions of DINO-world."&gt;&lt;figcaption&gt;
&lt;p&gt;Autoregressive prediction of DINO-world with only 4 frames of context. Top row: ground-truth video. Middle row: per-frame DINOv2 features. Bottom row: autoregressive predictions of DINO-world.&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;hr&gt;
&lt;p&gt;&lt;span style="font-size: .8rem"&gt;An early version of this work, without the action-conditioned fine-tuning and the planning tasks,
was presented at the ICML 2025 Workshop on
.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>DINOv2 Meets Text: A Unified Framework for Image- and Pixel-Level Vision-Language Alignment</title><link>https://baldassarrefe.github.io/publications/dino-txt-cvpr-2025/</link><pubDate>Wed, 11 Jun 2025 00:00:00 +0000</pubDate><guid>https://baldassarrefe.github.io/publications/dino-txt-cvpr-2025/</guid><description>&lt;!-- Example of zero-shot segmentation using DINO.txt: --&gt;
&lt;!-- &lt;figure&gt;&lt;img src="https://baldassarrefe.github.io/publications/dino-txt-cvpr-2025/zero-shot-segmentation.png"
alt="Zero-shot segmentation using DINO.txt"&gt;&lt;figcaption&gt;
&lt;p&gt;Zero-shot segmentation using DINO.txt&lt;/p&gt;
&lt;/figcaption&gt;
&lt;/figure&gt;
--&gt;
&lt;h2 id="twitter-thread"&gt;Twitter thread&lt;/h2&gt;
&lt;blockquote class="twitter-tweet"&gt;&lt;p lang="en" dir="ltr"&gt;DINOv2 meets text at &lt;a href="https://x.com/hashtag/CVPR?src=hash&amp;amp;ref_src=twsrc%5Etfw"&gt;#CVPR&lt;/a&gt; 2025! Why choose between high-quality DINO features and CLIP-style vision-language alignment? Pick both with dino.txt 🦖📖&lt;br&gt;&lt;br&gt;We align frozen DINOv2 features with text captions, obtaining both image-level and patch-level alignment at a minimal cost. [1/N] &lt;a href="https://t.co/7BTwLxqXNG"&gt;pic.twitter.com/7BTwLxqXNG&lt;/a&gt;&lt;/p&gt;&amp;mdash; Federico Baldassarre (@BaldassarreFe) &lt;a href="https://x.com/BaldassarreFe/status/1933975376377892974?ref_src=twsrc%5Etfw"&gt;June 14, 2025&lt;/a&gt;&lt;/blockquote&gt;
&lt;script async src="https://platform.x.com/widgets.js" charset="utf-8"&gt;&lt;/script&gt;
&lt;h2 id="video-presentation"&gt;Video presentation&lt;/h2&gt;
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;
&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/qNsAgsvhbw4?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;
&lt;/div&gt;</description></item></channel></rss>