视觉语言模型(VLMs)中的注意力汇是“借用的”而非“原生的”
Attention Sinks in VLMs Are Borrowed, Not Seen
AI总结:
本研究检测到 VLMs 的视觉注意力汇是借用文本汇的键,提出无需训练的熵触发“重新查看”方法,使细粒度 VQA 准确率平均提升 4.3 个百分点。
摘要:
我们研究如何检测和缓解视觉语言模型(VLMs)中的视觉注意力汇。视觉注意力汇是指图像中无论查询或任务如何,都会吸收图像上大部分注意力的图像 token,它们会误导那些将注意力图视为模型“查看”位置记录的方法。现有研究通过大量激活维度检测注意力汇,并提出重新分配其注意力,但均未解决 token 成为注意力汇的原因。我们在四个系列的十个 VLMs 上比较了六种候选检测器,发现只有图像 token 的键与语言模型文本汇的键之间的中心余弦相似度能检测到视觉注意力汇。因此,视觉注意力汇是其键与文本汇键对齐的图像 token。将注意力汇的键分量沿该方向移动到图像键的中位数,会使其注意力回到文本汇(**是借用的**),同时不改变模型答案(**不是原生的**)。在此基础上,我们提出一种无需训练、由熵触发的“重新查看”方法:先清理注意力图,再裁剪清理后图中最受关注的区域并插入推理轨迹。清理操作仅在前向传播中增加可忽略的计算量,且该“重新查看”方法在各模型系列的细粒度视觉问答(VQA)基准上,使准确率平均提升了 4.3 个百分点。
英文摘要:
We study how to detect and mitigate visual attention sinks in vision-language models (VLMs). Visual attention sinks are image tokens that absorb a large share of attention over the image regardless of the query or task, and they mislead methods that treat attention maps as a record of where the model ``looked.'' Prior work has detected sinks through massive activation dimensions and proposed redistributing their attention, but none have addressed what makes a token become a sink. Comparing six candidate detectors on ten VLMs from four families, we find that only the centered cosine similarity between an image token's key and the key of the language model's text-sink detects visual sinks. Thus, a visual sink is an image token whose key aligns with the text-sink's key. Moving a sink's key component along this direction to the median of the image keys sends its attention back to the text-sink (\textbf{Are Borrowed}) while leaving model answers unchanged~(\textbf{Not Seen}). Building on this, we propose a training-free, entropy-triggered re-look that first cleans the attention map, then crops the most-attended region of the cleaned map and inserts it into the reasoning trace. Cleaning adds negligible computation to the forward pass, and the re-look improves accuracy with a mean gain of $+4.3$ points on fine-detail VQA benchmarks across model families.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。