The Locality Trade-off in Masked Patch Self-Distillation
Organizations: School of Computing, National University of Singapore · Nanyang Technological University
Abstract
Masked patch self-distillation is a key component of modern vision foundation models, including DINOv2 and DINOv3, yet its implications for local visual information remain unclear. We show that its semantic benefits can coexist with a scale-dependent locality cost. Using two annotation-free diagnostics, we distinguish recoverable local appearance from spatial correspondence. In smaller models, adding iBOT substantially weakens patch correspondence while largely preserving appearance decodability. In larger models, correspondence improves, but pixel and texture evidence becomes less linearly accessible in deep features. Thus, scaling changes the form of the locality cost rather than uniformly eliminating it. Our analysis of Gram anchoring further shows that preserving patch relations does not guarantee simultaneous improvements in both properties. These findings motivate evaluating and designing visual representations around the complementary demands of semantic abstraction, appearance preservation, and spatial correspondence. Our code is available at https://github.com/winci-ai/jea.
Figures & tables
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Backbone | Objective | Batch size | Memory (GB) | Time |
|---|---|---|---|---|
| ViT-S/16 | DINO | 1024 | 28 | 1 d 7 h |
| DINO +iBOT | 1024 | 100 | 2 d 5 h | |
| ViT-B/16 | DINO | 1024 | 47 | 3 d 1 h |
| DINO +iBOT | 1024 | 125 | 3 d 8 h | |
| ViT-L/16 | DINO | 1024 | 100 | 5 d 15 h |
| DINO +iBOT | 1024 | 129 | 6 d 5 h |
| Arch. | Metric | Better | DINO | DINO +iBOT | |
|---|---|---|---|---|---|
| ViT-S/16 | kNN top-1 | 70.88 | 71.27 | +0.39 | |
| VOC2012 Seg. mIoU | 53.13 | 56.02 | +2.89 | ||
| VOC2007 Det. mAP | 42.88 | 43.96 | +1.08 | ||
| RParis Hard mAP | 29.75 | 30.78 | +1.03 | ||
| ROxford Hard mAP | 13.34 | 12.03 | -1.31 | ||
| Copy strong mAP | 84.14 | 83.69 | -0.45 |
| Asset | Use in this paper | Credit / source | License or terms of use |
|---|---|---|---|
| ImageNet-1K | Self-supervised pretraining, -NN evaluation, and diagnostic image splits | Deng et al. [13] ; official access terms | Access provided for non-commercial research and educational use under ImageNet terms. ImageNet does not own the underlying image copyrights, which remain with the original owners. |
| PASCAL VOC 2007 / 2012 | VOC2007 object detection and VOC2012 semantic segmentation | Everingham et al. [17] , Everingham et al. [16] ; VOC challenge pages | The official database-rights statement notes that VOC contains Flickr images, whose use must respect the corresponding Flickr terms of use. |
| MS COCO | Copy-detection distractors and whitening images | Lin et al. [26] ; COCO terms of use | COCO annotations are released under CC BY 4.0; COCO images are subject to the Flickr terms and to the image-level license metadata provided by COCO. |
| Oxford5k / Paris6k | Image retrieval evaluation | Radenović et al. [30] ; Revisited Oxford / Paris benchmark | Public benchmark data and annotations used for academic evaluation. The project page does not list a standard open-source license for the images; we do not redistribute the raw images. |
| ADE20K | Similarity heatmaps and reference semantic masks | Zhou et al. [42] ; official terms of use | Images are provided for non-commercial research and education; copyright remains with their owners. The official terms specify BSD-3 terms for the annotations and software. |
| INRIA Copydays | Copy detection and local-to-global correspondence diagnostics | Douze et al. [15] ; Copydays project page | INRIA holds copyright on the dataset images and distributes them “as is” without express or implied warranties. Used here only as a research benchmark; raw images are not redistributed. |
| Asset | Use in this paper | Credit / source | License or terms of use |
|---|---|---|---|
| DINOv2 | Pretraining framework and ViT implementation | Oquab et al. [28] ; DINOv2 repository | Apache License 2.0 for the DINOv2 code and standard model weights, per the repository license. |
| MMSegmentation | Linear semantic segmentation evaluation | MMSegmentation repository | Apache License 2.0. |
| MMDetection | Frozen-backbone object detection evaluation | MMDetection repository | Apache License 2.0. |
| MMFlow | Frozen-backbone optical-flow evaluation and PWCNet implementation | MMFlow repository ; PWCNet paper [ 34 ] | Apache License 2.0 for the MMFlow toolbox. |
| MAE | Raw-pixel masked-modeling baseline for local-appearance decodability | He et al. [21] ; MAE repository | CC BY-NC 4.0, per the repository license. |
| SimMIM | Raw-pixel masked-modeling baseline for local-appearance decodability | Xie et al. [40] ; SimMIM repository | MIT License, per the repository license. |
Self-Supervised Visual Representation Learning
Self-supervised visual representation learning trains image, video, and 3D encoders on unlabeled data to produce transferable visual features.
See all 235 papers