[Paper Review] What DINO saw: ALiBi positional encoding reduces positional bias in Vision Transformers
The paper demonstrates that DINOv2-like ViTs exhibit strong positional biases across features, and introduces ALiBi-based finetuning (ALiBi-Dv2) to produce homogeneous features that preserve semantics while reducing bias, improving segmentation and weakly supervised tasks.
Vision transformers (ViTs) - especially feature foundation models like DINOv2 - learn rich representations useful for many downstream tasks. However, architectural choices (such as positional encoding) can lead to these models displaying positional biases and artefacts independent of semantic content. This makes zero-shot adaption difficult in fields like material science, where images are often cross-sections of homogeneous microstructure (i.e. having no preferred direction). In this work, we investigate the positional bias in ViTs via linear probing, finding it present across a range of objectives and positional encodings, and subsequently reduce it by finetuning models to use ALiBi relative positional encoding. We demonstrate that these models retain desirable general semantics and their unbiased features can be used successfully in trainable segmentation of complex microscopy images.
Motivation & Objective
- Identify and quantify positional biases in ViT features across self-supervised models.
- Demonstrate that ALiBi-based finetuning can remove positional bias while preserving semantic content.
- Show that ALiBi-Dv2 maintains or improves segmentation performance on benchmarks (VOC, ADE20K).
- Demonstrate benefits of homogeneous features for trainable segmentation in materials microscopy images.
Proposed method
- Perform linear probes to map ViT features to 2D ramp functions and quantify positional bias per channel.
- Fine-tune a DINOv2 checkpoint with 2D-aware ALiBi positional encodings using cylindrical boundaries and normalization for length-generalization, freezing the original embeddings as training targets.
- Compare ALiBi-Dv2 against NoPE and other baselines on semantic segmentation benchmarks (VOC07, VOC12, ADE20K) and on trainable segmentation for microscopy images.
- Evaluate feature homogeneity via PCA visualisation, cosine similarity and k-means decomposition across multiple datasets.
- Apply ALiBi-Dv2 features to weakly supervised tasks (k-means clustering) and trainable segmentation to assess practical impact.

Experimental results
Research questions
- RQ1Do ViT features contain linear, easily decodable positional biases across different architectures and self-supervised objectives?
- RQ2Can ALiBi positional encodings produce homogeneous features without sacrificing semantic content?
- RQ3Do ALiBi-enhanced features retain or improve segmentation performance on standard benchmarks and improve weakly-supervised segmentation in materials imagery?
Key findings
- Positional biases are widespread in ViT features, appearing as linear ramps in many channels across layers and models (including DINOv2, DINOv3) but are reduced in supervised models.
- ALiBi-Dv2 markedly reduces channel- and layer-wise positional bias while preserving semantic structure, yielding a more homogeneous feature space.
- ALiBi-Dv2 achieves comparable or improved mean IoU on VOC07, VOC12, and ADE20K when using frozen features with linear probes, relative to DINOv2 and NoPE.
- Qualitative feature visualisations (PCA) show ALiBi-Dv2 retains object decomposition but with fewer positional gradients, improving homogeniety for microstructure images.
- ALiBi-Dv2 improves the quality of trainable segmentation on challenging materials-microscopy images by reducing positionally biased segmentations (e.g., pore-back effects).

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.