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

Yingjin Song, Denis Paperno, Albert GattarXiv 2026

TL;DR

This paper reveals that Vision-Language Models (VLMs) process spatial relations through a staged internal pipeline: first encoding object locations, then binding those locations to specific query roles (target vs. reference). By identifying and "steering" along these internal representations, the researchers improved model accuracy and consistency on natural-image benchmarks without any additional training.

What Problem Does This Paper Address?

While modern VLMs often achieve high accuracy on spatial reasoning benchmarks, they are notoriously inconsistent. A model might correctly answer "Is the cat to the left of the dog?" but fail if the cat and dog swap positions, or if the question is flipped to "Is the dog to the right of the cat?"

This lack of paired consistency suggests that models aren't truly "reasoning" about space but are instead relying on brittle heuristics. The authors set out to understand the internal mechanics of how these models represent object locations and relational roles, and whether these representations are shared across visual and textual inputs.

Methods

The authors employ mechanistic interpretability techniques to look under the hood of three open-source VLMs (LLaVA-1.6, InternVL3.5, and Pixtral-12B) and their LLM backbones. Their approach involves three main steps:

  1. Activation Patching: They identify which layers and tokens are responsible for spatial decisions by swapping internal activations between "clean" runs and "corrupted" runs (where object positions or query roles are reversed).
  2. Location ID Extraction: They extract "Location IDs"—position-specific prototypes—from the model's hidden states. These IDs represent where an object is located in the scene, regardless of what the object is.
  3. Role Direction Steering: They identify a specific vector in the model's representation space that distinguishes between an object being the target (the thing being localized) and the reference (the landmark). By adding this "role direction" vector to the model's activations during inference, they can "steer" the model toward more consistent reasoning.
The hypothesized three-stage mechanism: source-side location IDs, query-side role binding, and final comparison.

Datasets

The study utilizes a mix of synthetic and natural-image benchmarks:

  • Synthetic 2-object and 3-object datasets: Controlled environments with objects placed on a 3x3 grid, used to estimate the internal Location IDs and role directions.
  • What’sUp: A benchmark of natural images with controlled spatial variations (e.g., the same objects in different relative positions).
  • COCO-Spatial & GQA-Spatial: Subsets of standard computer vision datasets focused specifically on spatial relations like "left," "right," "above," and "below."

Key Insights and Ideas

  • The Staged Pipeline: Spatial reasoning isn't a single "jump." It progresses from early-layer source representations (processing the image/text) to middle-layer query-object binding (linking objects to their roles), and finally to late-layer answer states.
  • Cross-Modal Location IDs: Interestingly, the model uses similar internal "Location IDs" to represent space whether the input is an image or a text description of a scene.
  • Role Binding is Distinct: The model treats "where an object is" and "what role it plays in the question" as two separate components. The "role direction" is a stable, linear feature in the model's hidden states.
  • Zero-Shot Generalization: Steering vectors calculated on simple, synthetic 2D shapes generalize remarkably well to complex, real-world photographs.
Figure 2: Benchmarking results for the three conditions: VLM+image, VLM+text and LLM+text. Numerical results are provided in Table 6.

Key Results

  • Consistency Gaps: The authors found that high accuracy often masks poor consistency. For example, LLaVA-1.6-Mistral achieved ~89% accuracy on What’sUp but only ~78% consistency when object locations were swapped.
  • Steering Success: Applying role-direction steering improved Target-Reference Reversal Consistency across all nine tested settings.
  • Quantitative Gains: On the What’sUp-A benchmark, Pixtral-12B saw significant improvements through steering: accuracy rose by 4.9%, reversal consistency by 7.8%, and location-swap consistency by 9.4% in the VLM+text condition.
  • Causal Evidence: Activation patching (shown in Figure 3 below) confirmed that source-side visual tokens dominate the early reasoning stages for image inputs, while query-object mentions become critical in the middle layers.
Figure 3: Layerwise activation patching clean-answer recovery rate across input conditions, token sources, corruption types and models in the 3-object synthetic dataset.

Limitations and Future Work

  • Relation Scope: The study focused on basic 2D relations (left, right, above, below). Future work is needed to see if these mechanisms hold for 3D relations (in front of, behind) or distance-based reasoning.
  • Model Size: The analysis was limited to models in the 7B-12B range. It remains to be seen if massive models (like GPT-4o or Gemini) or Mixture-of-Experts (MoE) architectures use the same internal logic.
  • Complexity: The synthetic data used fixed grid positions; exploring how models represent "freer" layouts and more complex, open-ended spatial phrasing is a natural next step.

Summary updated

BibTeX
@misc{song2026who,
  author = {Yingjin Song and Denis Paperno and Albert Gatt},
  title = {{Who Is Left of Whom? Tracing Spatial Evidence and Role Binding in Relative-Position Reasoning}},
  year = {2026},
  eprint = {2609.35486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.35486},
}
Figure