arXiv(opens in a new tab)cs.CVAug 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2608.23074

Grounding Isn't Knowing: Do VLMs Need Object Localization for Spatial Reasoning?

Xiwei Liu, Yulong Li, Xinlin Zhuang, Xuhui Li, Zhixiang Lu, Haolin Yang, Imran Razzak, Yutong Xie

Abstract

Vision-language models (VLMs) can answer spatial questions, yet the mechanisms connecting object grounding to spatial reasoning remain poorly understood. It is underexplored whether spatial reasoning internally requires precise objects localization, or can bypass explicit localization through global layout cues. In this work, we investigate two representative model families, LLaVA-1.5 and Qwen2.5-VL, using a suite of mechanistic interpretability tools, including token ablation, layer-wise probing, attention knockout, and causal mediation analysis. We find that spatial relation prediction follows a staged grounding-to-reasoning process in which object-aligned tokens establish coarse target-reference anchors, while precise bounding-box boundaries are not required. Positional information becomes decodable before relation decisions emerge, and a small set of attention heads mediates the causal effects of both localization and spatial reasoning. The two tasks share early grounding-related processing but ultimately rely on partially distinct specialized pathways. Through rigorous experiments, we provide a token-layer-, and head-level account of how VLMs transform object grounding into spatial relations, showing that knowing where objects are is not equivalent to knowing how they relate.

Introduction

Spatial reasoning is essential for interacting with and reasoning about the visual world. Modern vision-language models (VLMs) (Bai et al. 2025a; Comanici et al. 2025) can answer questions about relative object positions, including whether one object is to the left of, behind, or in front of another (Kamath, Hessel, and Chang 2023; Chen et al. 2025). Yet a correct answer does not establish that the model has localized the queried objects or derived the relation from their positions. The same prediction may arise from object-specific evidence, coarse scene layout, contextual regularities, or language priors (Li et al. 2025c; Schaumlöffel, Vilas, and Roig 2026). Benchmark accuracy therefore reveals what a model predicts, but provides limited insight into how object grounding is transformed into a spatial decision (Tong et al. 2024).

Unlike text, an image is inherently organized across two spatial dimensions. Most VLMs nevertheless inherit a Transformer pipeline that partitions an image into patches and serializes them as a one-dimensional token sequence (Dosovitskiy et al. 2020). Because sequence order does not explicitly preserve the image's native two-dimensional topology, spatial structure must be recovered through positional encodings and interactions among visual tokens (Chu et al. 2024; Huang et al. 2025b). Fixed-resolution models commonly use learnable absolute position embeddings, whereas dynamic-resolution architectures can encode horizontal and vertical coordinates through two-dimensional rotary position embeddings (2D-RoPE) (Huang et al. 2025a). These mechanisms preserve where visual tokens occur, but do not by themselves establish which tokens belong to the queried objects or how those objects relate (Li et al. 2025c; Bousselham et al. 2024; Zhang et al. 2025b; Li et al. 2025b).

Recent studies have strengthened explicit visual grounding in VLMs through localized visual tokenization, spatial prompting, grounded visual reasoning, and specialized localization heads (Ma et al. 2024; Dorkenwald et al. 2024; Kang et al. 2025). Coordinate-based instruction tuning has also improved spatial-relation performance, suggesting a functional connection between localization supervision and spatial reasoning (Ranasinghe et al. 2024). However, these findings show that localization can be learned or exploited, not that a model must compute precise object locations before answering a relational query. Emerging evaluations further reveal that strong performance on conventional grounding benchmarks can coexist with severe failures on discriminative relational queries (Li et al. 2026). Whether localization is a prerequisite, a parallel capability, or a correlated outcome of spatial reasoning therefore remains underexplored.

These advances expose a conceptual ambiguity: precise localization, relational grounding, and spatial reasoning are often evaluated as if they were interchangeable. Precise localization requires recovering object boundaries, relational grounding requires binding the target and reference to spatially anchored representations, and spatial reasoning requires transforming those representations into a directed relation. Recent training frameworks and benchmarks increasingly separate object localization from broader spatial understanding (Li et al. 2025a; Jia et al. 2025), while preference-based and token-based grounding methods optimize coordinate fidelity as a distinct objective (Qiu et al. 2025; Ren et al. 2026). This distinction motivates our central question: must a VLM precisely localize both objects before predicting their

∗^{*}Corresponding author.

(a) PE in LLaVA (Row)

Figure

(b) PE in LLaVA (Col)

t-SNE Dimension 1

t-SNE Dimension 1

(c) With 2D-RoPE

PCA Dimension 1

(d) Without 2D-RoPE

PCA Dimension 1

Figure 1: (a) and (b): The geometry of the 1D absolute position embedding in LLaVA-1.5-7B. The visualization is performed via t-SNE for dimensionality reduction. The labels are set to row IDs and column IDs, respectively. (c) and (d): The PCA results of the direction vectors for left of / right of / in front of / behind with and without position embedding in Qwen2.5-7B.

relation, or can it reach the correct decision from coarser object-grounded layout signals?

To resolve this question, we investigate LLaVA-1.5 and Qwen2.5-VL across tokens, layers, and attention heads, combining object-region interventions, layer-wise probing, attention knockout, causal mediation, and targeted head ablation (Neo et al. 2025; Bi et al. 2025). Together, these analyses reveal a consistent but nontrivial separation between precise localization and spatial reasoning in how object-grounded evidence is represented and routed. Our main findings are:

① Precise localization is not required for spatial reasoning. Removing object-interior evidence sharply degrades coordinate recovery while largely preserving directional judgments, showing that accurate bounding boxes are not a necessary intermediate for relation prediction.

② Spatial reasoning relies more on coarse object layout than on exact boundary geometry. Relation accuracy remains stable after removing fine boundary evidence but declines when interventions extend into the surrounding context, indicating that coarse object-centered layout provides a more relevant spatial signal than exact geometry.

③ Position precedes relation without forming a strict serial bottleneck. Object positions become decodable in intermediate layers, whereas relation answers emerge later and may remain correct despite localization failures.

④ Localization and spatial reasoning are mediated by sparsely overlapping attention circuits. Object-grounded evidence is carried by a small set of shared heads, while being largely transformed through task-specific pathways.

References (49)