Abstract
Recent advances in self-supervised learning (SSL) have largely closed the gap with supervised ImageNet pretraining. Despite their success, these methods have been primarily applied to unlabeled ImageNet images and show marginal gains when trained on larger sets of uncurated images. We hypothesize that current SSL methods perform best on iconic images and struggle on complex scene images with many objects. Analyzing contrastive SSL methods shows that they have poor visual grounding and receive poor supervisory signal when trained on scene images. We propose Contrast Attention-Supervised Tuning (CAST) to overcome these limitations. CAST uses unsupervised saliency maps to intelligently sample crops and to provide grounding supervision via a Grad-CAM attention loss. Experiments on COCO show that CAST significantly improves the features learned by SSL methods on scene images, and further experiments show that CAST-trained models are more robust to changes in backgrounds.
Introduction
Self-supervised learning has revolutionized computer vision by allowing models to learn from massive unlabeled datasets. However, most of this success has been limited to "iconic" images—like those in ImageNet—where a single, centered object dominates the frame. When applied to complex "scene" images (like those in COCO), standard SSL methods like MoCo or SimCLR often stumble.
The authors identify two primary culprits for this performance drop:
- Poor Visual Grounding: Contrastive learning only requires the model to find any similarity between two views. Consequently, models often focus on easy shortcuts like the sky or grass in the background rather than the actual object of interest.
- Inconsistent Sampling: In a complex scene, two random crops might contain entirely different objects (e.g., one crop shows a person, the other shows a car). Forcing the model to treat these as the "same" image creates a noisy, confusing learning signal.
Methods
The authors introduce CAST (Contrastive Attention-Supervised Tuning), a framework designed to bake spatial awareness into the contrastive learning process without requiring human-annotated labels. It consists of two main components:
- Saliency-constrained Random Cropping: Instead of picking crops purely at random, CAST uses an unsupervised saliency detector (Deep-USPS) to generate a "heat map" of interesting regions. It ensures that both the "query" and "key" crops overlap significantly with these salient regions, ensuring the model is actually comparing views of the same object.
- Grad-CAM Attention Loss: This component uses Grad-CAM—a technique usually used for model explainability—as a supervisory signal during training. By calculating where the model is looking to make its prediction and comparing it to the unsupervised saliency map, the Attention Loss ($L_{att}$) penalizes the model if it focuses on the background, forcing it to shift its focus back to salient objects.
Experimental Results
The models were pretrained on the COCO dataset, which is significantly more challenging for SSL than ImageNet due to its complex scenes.
Downstream Task Performance
The improvements over the baseline (MoCo-v2) are substantial. On PASCAL VOC classification, CAST improved mAP by 7.0 points. In object detection tasks, it achieved a +6.7 AP boost. Quantitative analysis also confirmed improved grounding, with CAST-trained models showing a much higher Intersection over Union (IoU) with ground-truth objects (0.41 vs 0.24 for the baseline).
Robustness to Background Shifts
Using the Backgrounds Challenge dataset, the authors measured how much the model relies on background correlations. CAST outperformed the baseline by up to 13% in settings where the background was completely swapped or removed, proving the model had learned object-specific features rather than environment-specific ones.
Conclusion and Future Work
CAST demonstrates that grounding is a critical component for learning robust representations from complex scene images. By using unsupervised saliency as a proxy for human labels, CAST steers models away from "lazy" background shortcuts. While the method adds some computational overhead due to Grad-CAM calculations, it significantly improves performance and robustness. Future work may explore scaling CAST to even larger, uncurated web-scale datasets where scene complexity is even more prevalent.
Summary updated