TL;DR
This paper introduces a novel method to improve self-supervised learning (SSL) models by incorporating human-like spatial attention. They train a "teacher" model to predict human attention and use it to generate pseudo-labels for large datasets like ImageNet, which are then used to guide a contrastive learning model. This approach leads to representations that are more aligned with human attention and achieve better downstream performance.
What Problem Does This Paper Address?
Deep learning models, while powerful, often struggle with robustness and generalization compared to human vision. A key difference is that humans naturally focus on salient regions of a scene relevant to a task, whereas machines might rely on spurious correlations or less important features. While human attention has been shown to benefit supervised tasks, its application to self-supervised learning (SSL) has been limited by the lack of large-scale datasets with human attention annotations. Collecting such data is prohibitively expensive. This paper tackles the challenge of leveraging human spatial attention for SSL, specifically contrastive learning, without requiring massive amounts of manually annotated data.
Methods
The core of the proposed method involves a two-stage process. First, a "teacher" model is trained on a smaller dataset with ground-truth human attention labels (Salicon). This teacher model is then used to generate "pseudo" human attention labels for a much larger dataset, ImageNet.
The main contribution lies in how these pseudo-labels are integrated into a contrastive learning framework (similar to SimCLR). The model has two branches:
- Contrastive Branch: This is a standard contrastive learning setup where an image is augmented, passed through a backbone (ResNet-50), and then a projection head. The goal is to learn representations where augmented views of the same image are similar, and views of different images are dissimilar.
- Spatial Attention Branch: This branch takes intermediate features from the backbone and predicts an attention map. Crucially, the gradients from this attention prediction are allowed to flow back to the backbone, influencing the learned representations.
Two losses are used for the attention branch:
- KL Divergence Loss: To make the model's predicted attention map (
mp) similar to the teacher-generated pseudo-label (mt). - Normalized Scanpath Saliency (NSS) Loss: An additional loss that helps regularize the backbone by encouraging it to learn features that are more aligned with human visual behavior.
The authors hypothesize that this attention guidance acts as a regularizer for the backbone, leading to more human-like and robust representations.
Datasets
- Salicon: Used to train the initial "teacher" model for generating pseudo-attention labels. This dataset contains human attention data collected via mouse tracking.
- ImageNet: The primary large-scale dataset used for training the contrastive learning models and for evaluating downstream performance. Pseudo-attention labels are generated for this dataset.
- OSIE: Used for evaluating how well the predicted attention maps align with actual human attention. This dataset contains eye-tracking data.
Key Insights and Ideas
- Pseudo-labeling for Scale: The paper demonstrates that using a teacher model to generate pseudo-labels is an effective strategy to overcome the data scarcity problem for human attention in large-scale SSL.
- Attention as a Regularizer: The key insight is that explicitly training a model to predict spatial attention, and allowing gradients to flow back to the backbone, acts as a powerful regularizer. This forces the model to learn features that are not just discriminative for the contrastive task but also capture human-like visual focus.
- Teacher vs. Ground Truth: Surprisingly, the paper finds that using pseudo-labels generated by the teacher model can lead to better results than directly using the limited ground-truth human labels for training the contrastive model. This suggests the teacher's "smoothed" or generalized attention might be more beneficial for SSL.
- Human Alignment is Measurable: The work provides strong quantitative evidence that their attention-guided models produce representations that are significantly more aligned with human visual attention patterns.
Key Results
- Improved Human Attention Alignment: The attention-guided models show a much stronger correlation with human attention maps on the OSIE dataset compared to the baseline contrastive model. The correlation coefficient is significantly higher, indicating the model's attention is more faithfully reflecting human focus.
- Enhanced Downstream Performance: When evaluating the learned representations by training a linear classifier on frozen ImageNet embeddings, the attention-guided models achieve higher Top-1 accuracy. Specifically, they report a ~0.6% accuracy gain on ImageNet compared to vanilla SimCLR.
- Supervised Models Also Benefit: The framework also shows benefits for supervised models, though the gains are smaller, possibly because supervised models are already highly accurate.
Limitations and Future Work
- Teacher Model Quality: The effectiveness of the pseudo-labels is dependent on the quality of the teacher model. While they use a simplified architecture, further improvements to the teacher could yield even better results.
- Dataset Specificity: The teacher model is trained on Salicon (mouse tracking), and evaluated against OSIE (eye tracking). While they note this difference, it's worth considering how performance might vary with different types of human attention data.
- Limited Gain for Supervised: The gains for supervised models are modest. Future work could explore how to better integrate attention guidance into highly accurate supervised models.
- Alternative Attention Mechanisms: The paper focuses on a specific way of integrating attention. Exploring other attention mechanisms or integration strategies could be fruitful.
Summary updated