arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.01773cs.CL
收藏

为什么空间推理对 VLMs 很难?基于注意力机制视角的聚焦区域研究

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

City University of Hong Kong(香港城市大学);National University of Singapore(新加坡国立大学);Hong Kong University of Science(香港科学大学);Stanford University(斯坦福大学);Salesforce Research(Salesforce研究);Tel Aviv University(特拉维夫大学);Northwestern University(西北大学)

Shiqi Chen, Tongyao Zhu, Ruochen Zhou, Jinghan Zhang, Siyang Gao, Juan Carlos Niebles, Mor Geva, Junxian He, Jiajun Wu, Manling Li

AI总结:

本文从机制可解释性视角分析 VLMs 空间推理缺陷,发现注意力与物体位置对齐是关键,并提出无需训练的 ADAPTVIS 解码方法,在空间推理基准上取得最高 50 个绝对百分点的提升。

摘要:

大型视觉语言模型(VLMs)长期以来在空间推理任务上表现不佳。令人惊讶的是,即使是简单的空间推理任务,例如识别仅两个物体之间的“下方”或“后方”关系,也对当前的 VLMs 构成了重大挑战。在这项工作中,我们从机制可解释性的视角研究空间推理挑战,深入模型内部状态以检查图像和文本 token 之间的交互。通过追踪中间层图像上的注意力分布,我们观察到成功的空间推理与模型将其注意力分布与实际物体位置对齐的能力高度相关,特别是在熟悉与不熟悉的空间关系之间存在差异。受这些发现启发,我们提出了 ADAPTVIS,该方法基于推理时的置信度分数,在置信度高时锐化对高度相关区域的注意力,而在置信度较低时平滑并拓宽注意力窗口以考虑更广泛的上下文。这种无需训练的解码方法在 WhatsUp 和 VSR 等空间推理基准上显示出显著改进(例如,绝对提升高达 50 个百分点),且成本可忽略不计。我们已在 https://github.com/shiqichen17/AdaptVis 公开代码和数据以供研究使用。

英文摘要:

Large Vision Language Models (VLMs) have long struggled with spatial reasoning tasks. Surprisingly, even simple spatial reasoning tasks, such as recognizing "under" or "behind" relationships between only two objects, pose significant challenges for current VLMs. In this work, we study the spatial reasoning challenge from the lens of mechanistic interpretability, diving into the model's internal states to examine the interactions between image and text tokens. By tracing attention distribution over the image through out intermediate layers, we observe that successful spatial reasoning correlates strongly with the model's ability to align its attention distribution with 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 highly relevant 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 absolute point 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑