Manuscript Offprint

arXiv:2609.35486

Who Is Left of Whom? Tracing Spatial Evidence and Role Binding in Relative-Position Reasoning

Yingjin Song, Denis Paperno, Albert Gatt

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

High instance-level accuracy can mask inconsistencies in spatial reasoning when objects exchange positions or their roles are reversed in the query. The internal representations supporting relative-position reasoning remain poorly understood. We investigate two complementary components of this process: tracking object locations in the input and representing their query roles. Across three VLMs with visual or textual inputs and their language-model backbones, activation patching reveals a staged progression from early-layer source representations through intermediate-layer query-object representations to late-layer answer states. Targeted interventions further establish causal links along this progression: manipulating source-side representations shifts location information at query-object mentions and ultimately alters relation predictions. Beyond object-location information, we also identify a stable query-side direction associated with the roles of the two objects in the comparison. Steering along directions estimated on synthetic scenes generalizes to natural-image benchmarks, improving accuracy and both forms of paired consistency in most settings without retraining. Our findings reveal complementary components of relational reasoning across visual and textual settings and show how targeted interventions can improve the consistency of models' behavior.

1 INTRODUCTION

Spatial reasoning is a fundamental capability for models operating in visual, linguistic and embodied environments (Du et al., 2024; Zhang et al., 2026; Hong et al., 2026). VLMs infer relations from visual layouts and object configurations (Hudson & Manning, 2019; Liu et al., 2023; Yin et al., 2025; Yang et al., 2025; Cheng et al., 2025), whereas text-only Large Language Models (LLMs) construct spatial structure from linguistic descriptions of object positions, paths, and relations (Weston et al., 2016; Mirzaee et al., 2021; Shi et al., 2022; Jiang et al., 2026). Much of the progress in spatial reasoning is measured through benchmarks, where accuracy is the primary evaluation metric. However, we also need to understand the representations underlying this task, and to assess the extent to which such representations support consistent and robust reasoning.

In principle, answering the question “Is X to the left or right of Y?” (Figure 1A) requires at least two computations: (i) recovering the positions of the queried objects and (ii) assigning them to the correct relational roles: the target (object being localized) and reference (object with respect to which it is localized). 1^{1} A model’s response should then flip correspondingly under two perturbations (Figure 1B): (i) object-location swap, where objects exchange positions while the query roles remain fixed; and (ii) target/reference role reversal, where the scene remains unchanged but the query roles of target and reference are exchanged. A model may answer a single query correctly yet fail under either perturbation. Since each perturbation targets one of the two computations, these paired tests motivate our mechanistic study of how models represent object locations and target/reference roles.

Our starting point is recent work identifying content-independent location components in VLMs: Kang et al. (2026) show that object-word activations carry spatial IDs whose manipulation shifts

1^{1}The target and reference correspond to the figure and ground in linguistic literature (Talmy, 2003).

Figure

Figure 1: Overview of the task and mechanistic analysis. (A) A scene, given as an image or an equivalent text description (the source), and a query about the position of a target object relative to a reference object. (B) Object-location swaps and target/reference reversals, both reversing the correct answer. (C) Matched input conditions: VLM + image, VLM + text and LLM + text. (D) Hypothesized mechanism: source representations influence query-side location information, while target/reference roles condition its use in relation prediction. We test this account through activation patching and targeted interventions, and evaluate role-direction steering on natural images.

spatial beliefs, while Cui et al. (2026) identify a dominant global signal in visual tokens and a secondary pathway in the language backbone. We characterize such components using location IDs: position-specific prototypes estimated separately at source-object tokens and at query-object mentions (at query mentions, they correspond to the spatial IDs of Kang et al. (2026)). We extend this line of work in three directions. First, prior analyses use image inputs. We test whether location IDs also arise when the scene is described in text, both in the VLM and in its LLM backbone. Second, we link the two sites: we hypothesize that location information represented at source tokens becomes available at the corresponding object mentions in the query, and test this source-to-query transfer in visual and textual inputs alike. Third, since exchanging target and reference roles reverses the answer for the same locations, we estimate a role direction and test its causal role in relation prediction.

We study three input conditions (Figure 1C): a VLM receiving an image and query (VLM+image) or an equivalent textual scene description and query (VLM+text), and its LLM backbone receiving the same textual input (LLM+text). This design allows us to examine differences associated with input modality and multimodal training. We first evaluate model behavior using paired object-location-swap and target/reference-role-reversal tests. As outlined in Figure 1D, we then use activation patching to localize task-relevant information across layers and semantic token groups, extract location IDs, and test their causal effects through source-to-query patching and steering. We evaluate target/reference role directions through both destructive interventions and positive steering.

Contributions. First, through paired object-location-swap and target/reference-reversal consistency tests across the three input settings, we show that high instance-level accuracy does not guarantee relational consistency. Second, across visual and textual scene inputs, we characterize location representations at source and query tokens, show that source patching alters query-side location information and answer preferences, and establish that steering query-object states with location-ID differences changes relation predictions. Third, we identify a stable target/reference role direction, whose disruption degrades role-sensitive predictions. Steering along directions estimated on synthetic scenes improves accuracy and paired consistency on What'sUp (Kamath et al., 2023) and COCO-Spatial (Lin et al., 2014) in most settings without retraining.

References (100)

Couldn't load all references. Reload the page to try again.