TRANSMISSION // 2611.40443v1

Why Vision Transformers Can Lose Track of Image Details

Source published

A study traces degraded patch features in pretrained vision transformers to information flowing directly from the global class token into local image patches, and tests ways to limit it.

AI-generated conceptual illustration for Why Vision Transformers Can Lose Track of Image Details
AI-generated conceptual illustration; not documentary evidence.

Vision transformers need both a view of the whole image and useful details about its parts. But what happens when information meant to summarize the whole image seeps into individual patches? A new preprint investigates that pathway and tests whether restricting it can improve features used for locating and segmenting objects.

Vision transformers divide an image into patches and process them as a sequence of tokens. A special token, usually called [CLS], gathers information about the image as a whole; patch tokens are meant to represent particular regions. In some pretrained models, however, patches from relatively uninformative backgrounds can take on unusually large, global-looking representations. That can make the patch features less useful for tasks that need spatial detail, such as object discovery or segmentation.

Mingze Ma, Ravi Garg and Simon Lucey ask where this contamination begins. Their paper, Vision Transformers Need Separated Local and Global Information Processing, focuses on a specific route: a patch token can directly read information from the [CLS] token through self-attention. The researchers propose that repeated readouts can make patch features more like the global summary, with later effects including unusually high-norm patch tokens—outliers in the size of their feature vectors—and concentrated attention directed back to those patches.

Tracing the information flow

The authors examine pretrained DINOv2 and OpenCLIP vision transformers. In their main layer-by-layer analysis, they use DINOv2 ViT-L/14 and images from PASCAL VOC2007, with segmentation annotations to distinguish foreground and background patches. They track three signals through the model: patch-to-[CLS] attention, which indicates how much a patch reads from the global token; patch-feature norms; and [CLS]-to-patch attention, which shows how the global token distributes attention across patches.

In the DINOv2 model they analyze, patch-to-[CLS] readout rises before the sharp increase in rogue-patch norms and concentrated [CLS]-to-patch attention. Similar ordering is reported in analyses of DINOv2’s larger model and OpenCLIP ViT-L/14. Timing alone would not establish that the readout causes the later changes, so the researchers also intervene: they cap the attention patches can direct to [CLS], redistributing the remaining attention across other tokens.

In DINOv2 ViT-L/14, progressively tighter caps reduce rogue-patch norms while foreground and ordinary-background norms change less. With the pathway fully blocked in this analysis, the average rogue-token norm falls by 76.3%. The authors also describe a simplified mathematical model in which repeated [CLS] readout makes patch representations increasingly similar to the global representation. That result depends on simplifying assumptions; it is not a general proof about every transformer.

Repairing pretrained models

The paper tests three ways to limit the pathway. Masking blocks patch-to-[CLS] readout at inference without changing model weights. Value-projection surgery uses 500 calibration images to identify recurring directions in the model’s value projections and suppress their contribution to patch features. Fine-tuning adjusts model weights while penalizing unusually concentrated patch-to-[CLS] attention, with a training objective intended to preserve global representations.

The researchers evaluate these methods on dense visual tasks, including unsupervised object discovery and zero-shot segmentation. Results vary by model and task: masking, surgery and fine-tuning do not lead every comparison. For example, on OpenCLIP’s zero-shot segmentation evaluation, fine-tuning improves mean intersection-over-union over the baseline across the six reported datasets. The authors also report improvements from surgery over the baseline on those datasets. In DINOv2 evaluations, some methods improve localization or segmentation measures, while the strongest method differs across model sizes and metrics.

The central takeaway is not that global information should be removed. The [CLS] token remains useful for representing an entire image. Rather, the authors argue that restricting one direction of information flow—from [CLS] back into local patches—can preserve more useful local features while leaving global aggregation available.

What remains uncertain

These findings concern selected pretrained models and benchmarks, not every vision transformer or every use case. The authors say they focus on repairing pretrained models; restricting this pathway during training from scratch remains future work. Their experiments also use particular datasets, model variants and intervention settings, so results may not transfer unchanged to other architectures or tasks. The study supports a causal role for direct readout in the measured rogue-token behavior, but it does not establish that this is the only mechanism behind degraded local features.

This article is based on the paper text supplied for arXiv preprint 2611.40443v1. A preprint is a research manuscript made public before, or independently of, formal peer review; the source provided here does not establish whether the work has since been reviewed. The paper’s claims should therefore be read as reported experimental findings, not as settled consensus.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.