TL;DR
Self-supervised Vision Transformers (ViTs) like DINO implicitly learn to localize objects, but standard methods relying on the [CLS] token or final-layer keys suffer from noisy activations. This paper introduces Object-DINO, a training-free approach that extracts clean object-centric signals by clustering attention heads across the entire network and combining Query, Key, and Value similarities. This simple head-selection strategy yields massive improvements in unsupervised object discovery and significantly reduces object hallucinations in Multimodal LLMs.
What Problem Does This Paper Address?
Self-supervised ViTs show a remarkable "emergent" ability to locate objects without explicit human labels. Typically, researchers look at the [CLS] (classification) token's attention map in the final layer to see what the model is focusing on. However, because the [CLS] token is optimized for a global, image-level objective, its attention maps are often diluted and noisy, leading to poor object localization.
Prior attempts to fix this (like TokenCut) ignored intermediate layers and only looked at the "Key" ($K$) features of the final layer. This paper addresses two fundamental gaps:
- Is object-centric information confined only to the final layer?
- Do Query ($Q$) and Value ($V$) features contain complementary localization cues that we are throwing away by only looking at Keys?
Methods
The authors propose Object-DINO, a completely training-free, unsupervised method to isolate object-centric attention heads across a transformer's layers:
- Ensemble Similarity Matrices: For every attention head in every layer, they compute patch-level self-similarity matrices for Query ($A_q$), Key ($A_k$), and Value ($A_v$) components. They combine these linearly into a unified ensemble matrix ($A_{ens}$) to leverage their complementary strengths.
- Unsupervised Head Clustering: They flatten these ensemble matrices into feature vectors and use $k$-means clustering to group all attention heads across the entire network based on their localization patterns.
- Automated Selection: To find the "object-centric" cluster without manual inspection, they select the cluster containing the highest proportion of final-layer heads (leveraging the fact that the final layer has a high concentration of object-aware heads, though it also contains noise).
- Aggregation: Finally, they aggregate the similarity maps only from the discovered network-wide object-centric heads, filtering out noisy heads.
Datasets
- Analysis & Clustering: 4,000 random images from the COCO dataset.
- Unsupervised Object Discovery: Evaluated on PASCAL VOC 2007, VOC 2012, and COCO 20k using the CorLoc (Correct Localization) metric.
- MLLM Hallucination Mitigation: Evaluated on CHAIR, POPE, and MME benchmarks using models like LLaVA-1.5, Instruct-BLIP, and Qwen-VL.
Key Insights and Ideas
- Objectness is a team effort ($Q, K, V$): Query similarity shows what patches seek similar info, Key similarity shows what patches offer similar context, and Value similarity shows content similarity. Combining them yields a much cleaner foreground-background separation than using Keys alone.
- Distributed across layers: Object-centric information isn't just a final-layer phenomenon; it is hierarchically distributed across intermediate layers (specifically layers 8–10 in a 12-layer ViT).
- The final layer is noisy: Naively averaging all heads in the final layer introduces noise because several final-layer heads are actually not object-centric.
Key Results
- Unsupervised Object Discovery: Integrating Object-DINO into the TokenCut framework achieved substantial CorLoc improvements: +3.6 to +5.7 points for DINO-v3 and +7.8 to +12.4 points for DINO-v2 across VOC07, VOC12, and COCO20k.
- Mitigating Hallucinations: When used as visual guidance for Multimodal LLMs during decoding, Object-DINO achieved the highest Precision and F1-scores on the POPE benchmark across LLaVA-1.5, Instruct-BLIP, and Qwen-VL, while significantly lowering hallucination scores on CHAIR.
Limitations and Future Work
- Coarse Localization: The method currently provides excellent foreground-background separation but is limited to coarse object localization; it does not perform instance-level segmentation (i.e., distinguishing between multiple distinct objects of the same category).
- Cross-Modality Extension: Future work includes extending this patch-level attention analysis to vision-language models like CLIP to see if distributed object-centric properties emerge similarly across multi-modal architectures.
Summary updated