[论文解读] Self-attention in Vision Transformers Performs Perceptual Grouping, Not Attention
这篇论文表明,视觉变换器中的自注意力机制基于视觉特征相似性(如颜色)执行知觉分组,而非真正的注意力机制。尽管名称如此,这些模块实际上是一种基于相似性的分组松弛标记形式,无法复制人类的显著性检测,表明其并未实现人类视觉中的注意力机制。
Recently, a considerable number of studies in computer vision involves deep neural architectures called vision transformers. Visual processing in these models incorporates computational models that are claimed to implement attention mechanisms. Despite an increasing body of work that attempts to understand the role of attention mechanisms in vision transformers, their effect is largely unknown. Here, we asked if the attention mechanisms in vision transformers exhibit similar effects as those known in human visual attention. To answer this question, we revisited the attention formulation in these models and found that despite the name, computationally, these models perform a special class of relaxation labeling with similarity grouping effects. Additionally, whereas modern experimental findings reveal that human visual attention involves both feed-forward and feedback mechanisms, the purely feed-forward architecture of vision transformers suggests that attention in these models will not have the same effects as those known in humans. To quantify these observations, we evaluated grouping performance in a family of vision transformers. Our results suggest that self-attention modules group figures in the stimuli based on similarity in visual features such as color. Also, in a singleton detection experiment as an instance of saliency detection, we studied if these models exhibit similar effects as those of feed-forward visual salience mechanisms utilized in human visual attention. We found that generally, the transformer-based attention modules assign more salience either to distractors or the ground. Together, our study suggests that the attention mechanisms in vision transformers perform similarity grouping and not attention.
研究动机与目标
- 探究视觉变换器中的自注意力机制是否实现了与人类视觉注意相似的注意力机制。
- 评估视觉变换器是否表现出类似人类视觉系统的自下而上、由刺激驱动的显著性检测。
- 确定视觉变换器中的自注意力机制是否基于颜色等视觉特征的相似性执行知觉分组。
- 通过分析其架构并将其与格式塔原则及人类视觉处理进行比较,挑战视觉变换器实现注意力的假设。
提出的方法
- 重新审视视觉变换器中自注意力的数学公式,表明其简化为基于相似性的分组的松弛标记过程。
- 在相似性分组数据集上评估分组性能,以衡量注意力模块基于颜色等视觉特征分组刺激的能力。
- 使用 P³O³ 数据集开展单重检测实验,该数据集是专为测试类人显著性检测而设计的基准。
- 在合成和自然刺激上,将视觉变换器的性能与传统及深度卷积显著性模型进行比较。
- 分析自注意力在多个编码器块中的分层行为,观察分组效应随深度增加而衰减的情况。
- 通过比较 ViT 的全局邻域交互与其它模型中的局部注意力机制,探索架构约束。
实验结果
研究问题
- RQ1视觉变换器中的自注意力模块是否执行了人类视觉认知中定义的注意力?
- RQ2视觉变换器在多大程度上基于视觉特征相似性(如颜色)执行知觉分组?
- RQ3与人类视觉显著性机制相比,视觉变换器在单重检测任务中的表现如何?
- RQ4视觉变换器的前馈架构是否阻止其实现反馈或自上而下的注意力效应?
- RQ5视觉变换器中的自注意力机制能否被解释为类似于生物视觉处理的侧向交互?
主要发现
- 视觉变换器中的自注意力机制基于视觉特征相似性(如颜色)执行知觉分组,而非人类视觉中定义的注意力。
- 随着网络层次的加深,分组效应逐渐减弱,因为在多个编码器块中,越来越多的非目标标记被与目标标记分组。
- 与传统及深度卷积显著性模型相比,视觉变换器在 P³O³ 数据集上的单重检测任务中表现欠佳。
- 在 P³O³ 数据集上训练基于 CNN 的显著性模型并未提升性能,表明这些模型与人类视觉注意之间存在根本性差距。
- ViT 中的自注意力机制表现为一种具有侧向交互的松弛标记过程,而非真正的注意力,且仅限于基于相似性的分组。
- 尽管声称具有类人行为,视觉变换器并未复制人类视觉处理中观察到的反馈或自上而下的注意力机制。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。