Skip to main navigation Skip to search Skip to main content

Why Is Spatial Reasoning Hard for VLMs? An Attention Mechanism Perspective on Focus Areas

  • Shiqi Chen*
  • , Tongyao Zhu
  • , Ruochen Zhou
  • , Jinghan Zhang
  • , Siyang Gao
  • , Juan Carlos Niebles
  • , Mor Geva
  • , Junxian He
  • , Jiajun Wu
  • , Manling Li*
  • *Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review

Abstract

Large Vision Language Models (VLMs) havelong struggled with spatial reasoning tasks. Surprisingly, even simple spatial reasoning tasks,such as recognizing “under” or “behind” relationships between only two objects, pose significantchallenges for current VLMs. In this work, westudy the spatial reasoning challenge from thelens of mechanistic interpretability, diving intothe model’s internal states to examine the interactions between image and text tokens. By tracing attention distribution over the image throughout intermediate layers, we observe that successful spatial reasoning correlates strongly with themodel’s ability to align its attention distributionwith actual object locations, particularly differing between familiar and unfamiliar spatial relationships. Motivated by these findings, we propose ADAPTVIS based on inference-time confidence scores to sharpen the attention on highlyrelevant regions when confident, while smoothing and broadening the attention window to consider a wider context when confidence is lower.This training-free decoding method shows significant improvement (e.g., up to a 50 absolutepoint improvement) on spatial reasoning benchmarks such as WhatsUp and VSR with negligible cost. We make code and data publicly available for research purposes at https://github.com/shiqichen17/AdaptVis. © 2025 by the author(s).
Original languageEnglish
Title of host publicationProceedings of the 42nd International Conference on Machine Learning
EditorsAarti Singh, Maryam Fazel, Daniel Hsu
PublisherML Research Press
Pages9910-9932
Publication statusPublished - Jul 2025
Event42nd International Conference on Machine Learning (ICML 2025) - Vancouver Convention Center, Vancouver, Canada
Duration: 13 Jul 2025 → 19 Jul 2025
https://icml.cc/Conferences/2025

Publication series

NameProceedings of Machine Learning Research
Volume267
ISSN (Print)2640-3498

Conference

Conference42nd International Conference on Machine Learning (ICML 2025)
Abbreviated titleICML 2025
PlaceCanada
CityVancouver
Period13/07/25 → 19/07/25
Internet address

Bibliographical note

Full text of this publication does not contain sufficient affiliation information. With consent from the author(s) concerned, the Research Unit(s) information for this record is based on the existing academic department affiliation of the author(s).

Fingerprint

Dive into the research topics of 'Why Is Spatial Reasoning Hard for VLMs? An Attention Mechanism Perspective on Focus Areas'. Together they form a unique fingerprint.

Cite this