English

Mechanisms of Object Localization in Vision-Language Models

Computer Vision and Pattern Recognition 2026-05-20 v1

Abstract

Visually-grounded language models (VLMs) are highly effective in linking visual and textual information, yet they often struggle with basic classification and localization tasks. While classification mechanisms have been studied more extensively, the processes that support object localization remain poorly understood. In this work, we investigate two representative families, LLaVA-1.5 and InternVL-3.5, using a suite of mechanistic interpretability tools, including token ablations, attention knockout, and causal mediation analysis. We find that localization is driven by a containerization mechanism in which object-aligned tokens define the spatial extent of the object, while the semantic arrangement of tokens within those boundaries is largely irrelevant to the predicted box. Only a very small set of attention heads mediates the causal effect for both classification and localization, concentrating in early-mid layers for LLaVA and mid-late layers for InternVL. The two tasks share some early processing but ultimately depend on largely distinct specialized heads. Overall, we provide the first layer- and head-level account of localization in VLMs, revealing narrow computational pathways that can guide future model design and grounding objectives.

Keywords

Cite

@article{arxiv.2605.19792,
  title  = {Mechanisms of Object Localization in Vision-Language Models},
  author = {Timothy Schaumlöffel and Martina G. Vilas and Gemma Roig},
  journal= {arXiv preprint arXiv:2605.19792},
  year   = {2026}
}

Comments

Accepted at CVPR 2026

R2 v1 2026-07-22T07:21:41.087Z