Manuscript Offprint

arXiv:2610.33223

The Locality Trade-off in Masked Patch Self-Distillation

Xi Weng, Zhaoyu Liu, Lianyu Hu, Jin Song Dong

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

1 Introduction

Image

Seg. mask

DINO ViT-B

DINO iBOT_{iBOT} ViT-B

DINO ViT-L

DINO iBOT_{iBOT} ViT-L

Figure

Figure 1: Anchor-patch similarity heatmaps for DINO and DINO +iBOT_{+iBOT} on ADE20K examples, with semantic annotations shown for reference. Yellow boxes mark the anchor patches. For ViT-B, adding iBOT produces broader responses over the building and mountain, reducing distinctions associated with windows and rugged cliff structures. This effect is alleviated in ViT-L, where the +iBOT model also exhibits more spatially selective responses to these structures. The semantic masks do not resolve many of these within-region differences, illustrating why segmentation performance alone cannot characterize fine-grained local representations. Additional examples appear in Figure 10.

*corresponding author: dongjs@comp.nus.edu.sg

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Self-supervised learning has become a central approach to building general-purpose visual representations [5, 8–11, 20, 21, 24, 37–39]. From DINO [9] to DINOv2 [28] and DINOv3 [33], learning from unlabeled images has produced visual backbones that transfer across recognition, dense prediction, and geometric understanding. Their influence also extends to larger systems: DINOv2 contributes visual features to multimodal models such as Cambrian-1 [35] and serves as the backbone of Depth Anything V2 [41]. As these representations become shared components across applications, understanding which visual properties their training objectives preserve becomes increasingly important.

A key ingredient in this development is masked patch self-distillation. Introduced by iBOT [43] and adopted in DINOv2 and DINOv3, this objective trains masked student patches to predict teacher-generated targets. It extends self-distillation to patch tokens, enabling supervision at a finer spatial granularity. However, a patch-level objective does not necessarily preserve all forms of local evidence. Because its targets are learned representations rather than raw pixels, successful prediction may favor semantic consistency while becoming less sensitive to appearance differences within a semantic region. This raises a fundamental question: what does masked patch self-distillation preserve locally, and how does the answer change with model scale?

Figure 1 illustrates this question using images from ADE20K [42]. For ViT-B, DINO produces similarity responses that distinguish structures such as windows and rugged cliffs, whereas adding iBOT yields broader responses over the surrounding building or mountain. These differences can be obscured by semantic segmentation evaluation: human-annotated masks need not distinguish the visual structures contained within a labeled region. Interestingly, this qualitative loss of spatial specificity is alleviated in ViT-L, where the +iBOT model also exhibits responses that follow fine local structures. Yet sharper similarity maps alone cannot establish whether the underlying pixel and texture evidence remains recoverable.

To investigate this distinction, we compare DINO and DINO +iBOT_{+iBOT} across four backbone scales under matched training settings within each scale. The downstream results reveal a consistent semantic advantage alongside a more heterogeneous effect on local tasks. Adding iBOT generally improves tasks dominated by semantic understanding, while often reducing performance on tasks that require precise local distinctions. However, this pattern is not universal: on DAVIS video object tracking, the disadvantage observed in smaller models disappears and reverses slightly in larger models. Together with Figure 1, this suggests that a single notion of “local information” is insufficient to explain the effects of patch self-distillation.

We therefore introduce two complementary annotation-free diagnostics. Local Appearance Decodability measures how much pixel and texture evidence is linearly recoverable from frozen patch tokens. Local-to-Global Correspondence measures whether patches remain spatially distinguishable and matchable across views. These diagnostics reveal a scale-dependent dissociation. For ViT-S and ViT-B, iBOT substantially weakens correspondence while leaving appearance decodability largely unchanged or slightly improved. For ViT-L and ViT-H, correspondence is preserved or enhanced, but appearance decodability declines markedly in deep layers. The improved spatial specificity of larger models therefore does not imply that all forms of local evidence are preserved. Our results instead suggest that model scale changes which local properties are most affected by semantic patch supervision.

Finally, we examine Gram anchoring, introduced in DINOv3 [33] to stabilize dense features by regularizing pairwise patch similarities. We compare anchoring initialized from an earlier DINO +iBOT_{+iBOT} checkpoint with a variant initialized from DINO. The resulting changes again separate appearance from correspondence: the DINO-based anchor substantially improves correspondence in ViT-B, whereas in ViT-L it improves deep appearance decodability without consistently improving correspondence. These results suggest that the local properties encouraged by relational regularization depend on both the anchor representations and the model scale.

Our contributions are threefold:

• We characterize the scale-dependent locality cost of masked patch self-distillation, showing that its semantic benefits coexist with distinct changes in local visual abilities.

• We introduce two annotation-free diagnostics that separate local appearance decodability from spatial correspondence, revealing differences that downstream semantic evaluation and similarity visualizations alone cannot resolve.

• We analyze Gram anchoring through this distinction, showing that improvements in patch relations and recoverable appearance need not occur together.

References (43)

  • Natarajan, and Kamisetty R Rao
  • Self-supervised learning from images with a joint-embedding predictive architecture
  • data2vec: A general framework for self-supervised learning in speech, vision and language
  • BEiT: BERT Pre-Training of Image Transformers
  • Vicreg: Variance-invariance-covariance regularization for self-supervised learning
  • A naturalistic open source movie for optical flow evaluation
  • Cascade r-cnn: Delving into high quality object detection
  • Unsupervised learning of visual features by contrasting cluster assignments
  • Emerging properties in self-supervised vision transformers
  • A simple framework for contrastive learning of visual representations
  • An empirical study of training self-supervised vision transformers
  • Histograms of oriented gradients for human detection
  • Li, K. Li, and L. Fei-Fei
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Evaluation of gist descriptors for web-scale image search
  • The pascal visual object classes (voc) challenge
  • The pascal visual object classes challenge: A retrospective
  • Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography
  • Rankme: Assessing the downstream performance of pretrained self-supervised representations by their rank
  • Bootstrap your own latent - a new approach to self-supervised learning
  • Momentum contrast for unsupervised visual representation learning
  • Masked autoencoders are scalable vision learners
  • Ridge regression: Biased estimation for nonorthogonal problems
  • Understanding whitening loss in self-supervised learning
  • Principal component analysis: a review and recent developments
  • Microsoft coco: Common objects in context
  • A comparative study of texture measures with classification based on featured distributions
  • DINOv2: Learning robust visual features without supervision
  • The 2017 DAVIS challenge on video object segmentation (opens arXiv in a new tab)
  • Revisiting oxford and paris: Large-scale image retrieval benchmarking
  • The effective rank: A measure of effective dimensionality
  • Spreading vectors for similarity search
  • DINOv3
  • Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume
  • Advances in Neural Information Processing Systems, 37:87310–87356, 2024
  • Masked feature prediction for self-supervised visual pre-training
  • An investigation into whitening loss for self-supervised learning
  • Modulate your spectrum in self-supervised learning
  • Clustering properties of self-supervised learning
  • Simmim: A simple framework for masked image modeling
  • Depth anything v2
  • Scene parsing through ade20k dataset
  • iBOT: Image BERT pre-training with online tokenizer