NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Grounding Everything: Emerging Localization Properties in Vision-Language Transformers

Walid Bousselham, Felix Petersen, Vittorio Ferrari, Hilde Kuehne

Introduction: The Localization "Blind Spot" in VLMs

Vision-Language Models (VLMs) like CLIP have revolutionized computer vision by enabling open-vocabulary classification. However, while these models excel at identifying what is in an image, they are notoriously poor at "pointing" to objects—a task known as grounding or localization.

A significant hurdle is vision-language inversion: when prompted to find an object (e.g., a "cat"), CLIP's internal attention maps often highlight background patches more strongly than the object itself. This occurs because CLIP is optimized for global image-text alignment rather than local spatial precision. Traditional fixes involve expensive fine-tuning on human-annotated masks, which can degrade the model's broad open-vocabulary capabilities.

The Grounding Everything Module (GEM)

To address this, we introduce the Grounding Everything Module (GEM), a training-free, plug-and-play architecture that extracts latent localization properties from pretrained Vision Transformers (ViTs).

GEM Architecture: The module operates as a parallel pathway to the standard ViT, utilizing self-self attention to cluster related image patches.

Core Innovations

GEM functions as a parallel pathway to the standard ViT backbone. Its primary mechanism is Self-Self Attention. Unlike standard Query-Key ($Q$-$K$) attention used for cross-modal matching, GEM computes attention between similar projections (e.g., $Q$-$Q$, $K$-$K$, or $V$-$V$). This shift effectively transforms the attention mechanism into a clustering algorithm, grouping patches that belong to the same semantic object before they are matched to text.

Key technical components include:

  • $L^2$ Normalization: Applied to projected vectors to prevent "loud" tokens from dominating clusters.
  • Adaptive Temperature ($\tau$): A heuristic that automatically adjusts attention sharpness based on the average norm of visual tokens, ensuring robustness across datasets.
  • Iterative Refinement & Ensembling: GEM can be applied iteratively to sharpen boundaries and combines multiple self-attention pathways ($Q, K, V$) for a holistic scene representation.

Key Results and Insights

GEM successfully reverses vision-language inversion, ensuring that foreground objects match text prompts better than the background.

Visual comparison of localization maps across different methods. GEM provides significantly sharper and more accurate object grounding compared to CLIP and other training-free baselines.

Performance Benchmarks

  • Zero-Shot Segmentation: On PascalVOC, GEM achieved 46.2 mIoU, a dramatic improvement over baseline CLIP's 10.4 mIoU and outperforming previous state-of-the-art training-free methods like CLIPSurgery (41.2).
  • Open-Vocabulary Mastery: On the massive OpenImagesV7 benchmark (6,000 classes), GEM reached 51.9 p-mIoU, notably outperforming fine-tuned models like OVSeg (22.5). This suggests that training-free extraction preserves the "knowledge" of foundation models better than supervised fine-tuning on smaller datasets.
  • Efficiency: GEM is computationally lightweight, maintaining inference speeds of approximately 37 FPS on an Nvidia A6000.

Conclusion and Future Directions

GEM demonstrates that localization capabilities are an emergent property of large-scale vision-language pretraining. By using self-self attention to cluster visual features, we can "ground everything" without any additional training. While current masks may lack the pixel-perfect precision of heavy supervised models, GEM's ability to handle thousands of open-vocabulary classes makes it a powerful tool for the next generation of spatial AI. Future work includes integrating GEM with generative models and using it to generate high-quality pseudo-labels for downstream tasks.

Summary updated

BibTeX
@inproceedings{bousselham2023grounding,
  author = {Walid Bousselham and Felix Petersen and Vittorio Ferrari and Hilde Kuehne},
  title = {{Grounding Everything: Emerging Localization Properties in Vision-Language Transformers}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure