Probing the Role of Positional Information in Vision-Language Models

Philipp Jonas Rösch, Jindrich LibovickýNAACL 2022

Abstract

State-of-the-art Vision-Language (VL) models are often suspected of relying on spurious correlations rather than a genuine understanding of spatial relationships. This study investigates whether positional information is effectively utilized by these models. By incorporating 3D depth features and novel "spatial-aware" pre-training tasks, we enhance the models' internal spatial representations. While these methods significantly boost "spatial literacy" in controlled probes, the improvement on complex downstream reasoning tasks like GQA remains marginal, highlighting a persistent gap between information availability and its utility.

Introduction

Transformer-based architectures are inherently "set-based," lacking an intrinsic understanding of spatial or temporal order. In multimodal tasks, this is typically addressed by providing 2D bounding box coordinates. However, it remains unclear if models truly process these coordinates or simply infer positions from object categories (e.g., "clouds" are usually at the top). This research explores the integration of depth information to provide a 3D spatial context and evaluates the model's ability to reason about these dimensions.

Methodology

The researchers utilized LXMERT, a dual-stream Transformer, as the foundational model. To enhance spatial awareness, they introduced three key components:

  1. 3D Depth Integration: Standard 2D coordinates $(x1, y1, x2, y2)$ were augmented with a depth value ($d$) obtained from a pre-trained monocular depth estimator, MiDaS.
  2. Intrinsic Probing: To evaluate internal representations, the authors developed nine probes—classifiers trained to determine if the model's hidden layers contain specific spatial information, such as relative distance or orientation.
  3. Spatial Pre-training: Two new strategies were introduced: Positional Information Pre-training (PIP), which focuses on predicting spatial relationships from coordinates alone, and Contrastive Learning (CL), which uses "hard negatives" created by swapping spatial antonyms in captions.
Figure 2: Overview of the model architecture integrating depth estimation and object detection.

Experimental Setup

The models were pre-trained on a combined dataset of 9.18 million image-caption pairs from MS COCO, Visual Genome, and VQA. Evaluation was conducted using the GQA (Geometric Question Answering) dataset, with a specific focus on subsets requiring precise X, Y, and Z coordinate reasoning. Depth maps were synthetically generated using MiDaS v2.1 to provide the necessary 3D features.

Figure 3: The probing framework used to evaluate the model's internal spatial knowledge.

Key Findings

The Presence vs. Utility Gap

A critical insight from the probing experiments is the "Presence vs. Utility" gap. While spatial information is present in the model's internal layers (achieving over 88% accuracy on probes), the baseline model fails to utilize this information for cross-modal reasoning. In contrastive evaluations where spatial keywords were swapped, the baseline recall was under 2%.

Impact of Depth and Pre-training

The inclusion of depth features significantly improved performance on Z-axis tasks and, interestingly, Y-axis tasks, likely due to the correlation between vertical position and distance in many photographic compositions. The Contrastive Learning strategy was particularly effective, raising the model's ability to detect spatial mismatches from <2% to over 78%.

Downstream Performance

Despite these gains in spatial awareness, the impact on the overall GQA benchmark was minimal (0.1% to 0.5%). This suggests that standard benchmarks may not sufficiently penalize models for lacking precise spatial reasoning, or that the models still struggle to bridge the gap between knowing "where" and reasoning "why."

Conclusion

This work demonstrates that while VL models can be trained to represent 3D spatial information internally, current architectures and datasets do not fully exploit this knowledge for complex reasoning. Future improvements may require more spatially-dense captioning data and more robust object detection to reduce noise in the positional inputs.

Summary updated

BibTeX
@inproceedings{rosch2022probing,
  author = {Philipp Jonas Rösch and Jindrich Libovický},
  title = {{Probing the Role of Positional Information in Vision-Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.77},
}
Figure