[Paper Review] Self-attention in Vision Transformers Performs Perceptual Grouping, Not Attention
This paper demonstrates that self-attention in Vision Transformers performs perceptual grouping based on visual feature similarity—such as color—rather than true attention mechanisms. Despite their name, these modules act as a form of relaxation labeling with similarity grouping, and they fail to replicate human-like saliency detection, indicating they do not implement attention as seen in human vision.
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.
Motivation & Objective
- To investigate whether self-attention in Vision Transformers implements attention mechanisms similar to those in human visual attention.
- To evaluate if Vision Transformers exhibit bottom-up, stimulus-driven saliency detection like human visual systems.
- To determine whether the self-attention mechanism in Vision Transformers performs perceptual grouping based on visual features such as color and similarity.
- To challenge the assumption that Vision Transformers implement attention by analyzing their architecture and comparing them to Gestalt principles and human visual processing.
Proposed method
- Revisited the mathematical formulation of self-attention in Vision Transformers, showing it reduces to a relaxation labeling process with similarity-based grouping.
- Evaluated grouping performance on a similarity grouping dataset to assess how well attention modules group stimuli based on visual features like color.
- Conducted singleton detection experiments using the P³O³ dataset, a benchmark designed to test human-like saliency detection.
- Compared vision transformer performance against traditional and deep convolutional saliency models on both synthetic and natural stimuli.
- Analyzed the hierarchical behavior of self-attention across multiple encoder blocks, observing how grouping effects decay with depth.
- Explored architectural constraints by comparing ViT’s global neighborhood interactions with localized attention mechanisms in other models.
Experimental results
Research questions
- RQ1Do self-attention modules in Vision Transformers perform attention as defined in human visual cognition?
- RQ2To what extent do Vision Transformers exhibit perceptual grouping based on visual feature similarity, such as color?
- RQ3How do Vision Transformers perform in singleton detection tasks compared to human visual salience mechanisms?
- RQ4Does the feed-forward architecture of Vision Transformers prevent them from implementing feedback or top-down attention effects?
- RQ5Can the self-attention mechanism in Vision Transformers be interpreted as a form of lateral interaction akin to biological visual processing?
Key findings
- Self-attention in Vision Transformers performs perceptual grouping based on visual feature similarity, such as color, rather than attention as defined in human vision.
- The grouping effect decays with increasing depth in the network hierarchy, as more non-figure tokens are grouped with the target figure over multiple encoder blocks.
- Vision Transformers exhibit sub-optimal performance in singleton detection tasks compared to traditional and deep convolutional saliency models on the P³O³ dataset.
- Training CNN-based saliency models on the P³O³ dataset did not improve performance, suggesting a fundamental gap between these models and human visual attention.
- The self-attention mechanism in ViT acts as a relaxation labeling process with lateral interactions, not true attention, and is limited to similarity-based grouping.
- Despite claims of human-like behavior, Vision Transformers do not replicate the feedback or top-down attention mechanisms observed in human visual processing.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.