The Dual Mechanisms of Spatial Reasoning in Vision–Language Models

Kelly Cui, Nikhil Prakash, Ayush Raina, David Bau, Antonio Torralba, Tamar Rott Shaham

TL;DR

This paper reveals that Vision-Language Models (VLMs) use two main mechanisms for understanding spatial relationships between objects: one within the language model and a more dominant one within the vision encoder. By understanding and amplifying the vision encoder's spatial signals, researchers can significantly improve VLM performance on complex tasks without retraining.

What Problem Does This Paper Address?

Vision-Language Models (VLMs) are increasingly capable of tasks like image captioning and visual question answering, which heavily rely on understanding how objects relate to each other in space. However, it's been a mystery how VLMs achieve this spatial reasoning. Do they learn it from scratch in their language processing parts, or do they get it from the image processing parts? This paper aims to pinpoint the exact mechanisms VLMs use for spatial variable binding and show how to leverage this knowledge to fix errors.

Methods

The researchers employed a combination of techniques to dissect VLM spatial reasoning:

  • Interchange Intervention Experiments: This is the core method. They'd run a VLM on a "clean" image and a slightly modified "counterfactual" image (e.g., swapping object positions). Then, they'd swap specific internal representations (like the output of a layer) between the two runs. If the output of the "clean" run changes to match the "counterfactual" output after the swap, it means the swapped representation was causally responsible for that behavior.
  • Representation Probing: They trained simple linear classifiers (probes) to predict spatial information (like object order) from the internal representations of the VLM. Successful probing indicates the information is present, but intervention experiments are needed to prove it's causally important.
  • Ablation Studies: They systematically removed or altered specific components (like vision encoder outputs) to see how it affected the model's performance.

Datasets

The study used a variety of datasets to test their hypotheses:

  • Synthetic Datasets (Squares, Shapes, Objects): These controlled environments allowed for precise manipulation of object attributes and positions, making causal analysis easier.
  • What'sUp Dataset: A controlled naturalistic dataset with pairs of objects, adapted to include three objects for their experiments.
  • COCO-spatial Dataset: A benchmark of complex natural images curated for spatial reasoning tasks, used to validate their findings on real-world scenarios.

Key Insights and Ideas

  • Dual Mechanism: VLMs don't rely on a single source for spatial understanding. They have a "language model backbone" mechanism that handles content-independent spatial relations and a "vision encoder" mechanism that captures object layouts.
  • Vision Encoder Dominance: The vision encoder's spatial representations are the primary driver of VLM spatial reasoning. The language model's role is secondary, acting more like a backup or enhancer.
  • Global Spatial Signal: Crucially, the spatial information from the vision encoder isn't just tied to the objects themselves. It's spread out across the entire image, including background areas. This is a significant departure from how language models typically handle information.
  • Intervention Power: Understanding these mechanisms allows for targeted interventions. By amplifying the vision encoder's spatial signals, performance can be boosted significantly without needing to retrain the entire model.

Key Results

  • Causal Role of Vision Encoder: Interchange interventions on visual token embeddings (especially those including background "strips") strongly influenced VLM predictions, proving the vision encoder's causal role in spatial reasoning.
  • LM as Backup: When spatial information was removed from the vision encoder, the LM backbone could partially reconstruct it, demonstrating its secondary but important role.
  • Performance Boost: Amplifying vision-derived spatial signals on the COCO-spatial dataset corrected up to 55% of previously incorrect predictions, leading to improvements of up to 22 percentage points in accuracy. This was achieved without fine-tuning or access to ground truth labels.

Limitations and Future Work

  • Limited Spatial Relations: The study focused on basic spatial relations (left/right, above/below). More complex relationships like "between" or hierarchical arrangements were not explored.
  • Controlled Interventions: Causal analysis often requires carefully constructed counterfactuals, which are difficult to create for truly natural, unmodified images.
  • Model Generalization: While tested on three open-weight VLMs, the findings might not universally apply to all VLM architectures or closed-source models.

The authors suggest future work should explore more complex spatial configurations and develop interpretability methods that can handle information distributed across multiple tokens, especially as models generate longer sequences.

Summary updated

BibTeX
@inproceedings{cui2026dual,
  author = {Kelly Cui and Nikhil Prakash and Ayush Raina and David Bau and Antonio Torralba and Tamar Rott Shaham},
  title = {{The Dual Mechanisms of Spatial Reasoning in Vision–Language Models}},
  booktitle = {ES-Reasoning @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=Ueb38N1aF3},
}
Figure