TL;DR
This paper introduces a Saliency-Guided Vision Transformer (SGT) to combat "shortcut learning" in ViTs, where models learn spurious correlations instead of true features. By using computationally predicted visual saliency maps (derived from human eye-gaze data), SGT guides ViTs to focus on relevant image regions, improving performance and interpretability without requiring direct eye-gaze data during inference.
What Problem Does This Paper Address?
Deep learning models, including the increasingly popular Vision Transformers (ViTs), often suffer from "shortcut learning." This phenomenon occurs when models exploit unintended, superficial correlations in the training data (e.g., background cues) to make predictions, rather than learning the true underlying features of the objects or scenes. This leads to models that perform poorly on unseen data, are difficult to interpret, and lack robustness. While domain-specific knowledge, like expert eye-gaze data, can help mitigate these shortcuts, collecting such data is often impractical. This paper addresses the challenge of rectifying shortcut learning in ViTs, particularly in scenarios where direct human expert data is unavailable, by leveraging computationally derived visual saliency.
Methods
The core of the proposed solution is the Saliency-Guided Vision Transformer (SGT). The SGT model works by:
- Saliency Map Generation: A pre-trained or fine-tuned computational visual saliency model (EML-NET) is used to predict saliency maps for input images. These maps are trained on datasets with human eye-gaze data to capture human visual attention patterns.
- Saliency Masking: The predicted saliency maps are converted into binary masks. These masks are then used to filter out less informative image patches after the initial patch embedding stage in the ViT. This forces the model to focus on the most salient regions.
- Residual Connection: To counteract the potential loss of global information due to patch filtering, a residual connection is introduced in the last encoder layer of the ViT. This connection allows the model to retain information from all image patches, ensuring a balance between focused attention and global context.
Datasets
The authors evaluated their SGT model on four public datasets:
- Natural Images:
- FIGRIM [4]
- CAT2000 [3]
- Medical Images:
- INbreast [38] (mammography)
- SIIM-ACR [49] (chest X-ray)
These datasets include both natural scenes and medical imaging, with some providing eye-gaze data for training the saliency model.
Key Insights and Ideas
- ViTs are susceptible to shortcut learning: The paper demonstrates that ViT models, despite their power, are not immune to shortcut learning, especially on simpler models or smaller datasets.
- Visual saliency as a proxy for human prior knowledge: Computational visual saliency maps can effectively mimic human attention patterns, providing a valuable source of prior knowledge to guide deep learning models without requiring direct, labor-intensive eye-gaze collection during inference.
- Balancing focused attention with global context is crucial: Simply masking out patches can lead to information loss. The residual connection in SGT is key to maintaining global context while still benefiting from saliency-guided attention.
- Task-specific saliency matters: The paper suggests that saliency derived from task-specific human gaze (like radiologists) is more instructive than general visual saliency, highlighting the importance of domain knowledge.
Key Results
The SGT model demonstrated significant improvements across the board:
- Reduced Shortcut Learning: The percentage of shortcut learning (PSL) was substantially decreased across all tested datasets compared to baseline ViT models. For example, on INbreast, PSL dropped from 50.00% to 38.29% for ViT-S vs. SGT-S.
- Improved Performance: SGT generally outperformed baseline ViT models in accuracy, AUC, and F1-score. For instance, on the INbreast dataset, SGT-S achieved 93.98% accuracy, compared to 91.57% for ViT-S.
- Effective on Diverse Data: The model showed strong performance on both natural and medical image datasets, indicating its generalizability.
- Ablation Studies: Experiments confirmed the effectiveness of the saliency mask and the residual connection. Applying the mask to the first encoder layer with the residual connection yielded the best results.
Limitations and Future Work
- "Human Bias" in Saliency: The authors acknowledge that collected eye-gaze data can sometimes contain "human bias," which might misguide the saliency prediction model. They suggest that balancing human prior knowledge with the model's own learning is an area for further exploration.
- Model Visualization Impact: The current visualization methods for assessing shortcut learning might influence the statistics. More accurate visualization techniques could lead to better results.
- Multi-task Learning: The paper posits that multi-task learning might further suppress shortcut learning, especially for single-task scenarios, and suggests this as a future research direction. They also advocate for using multiple test datasets to mitigate shortcut-induced false positives.
Summary updated