Abstract
While supervised pretraining on large-scale datasets like ImageNet has been the cornerstone of computer vision, recent self-supervised contrastive learning methods have begun to surpass it in transfer learning performance. This paper investigates this phenomenon, attributing the deficiency of supervised models to "information loss"—a tendency to focus on narrow, class-discriminative regions rather than holistic image features. To address this, we propose CAMtrast, a hybrid framework that utilizes Class Activation Maps (CAMs) to suppress primary discriminative regions, forcing the model to discover secondary features through a contrastive integration loss. Our results demonstrate that CAMtrast significantly improves representation entropy and uniformity, leading to superior performance in few-shot classification, object detection, and semantic segmentation.
Introduction
The traditional paradigm of pretraining on labeled datasets often leads to a "shortcut" learning strategy where models identify the minimal features necessary for classification (e.g., identifying a cat solely by its ears). While efficient for the source task, this narrow focus limits the model's ability to generalize to downstream tasks like object detection or segmentation, which require a more comprehensive understanding of the scene. In contrast, self-supervised methods capture richer, more global information. The challenge lies in effectively utilizing labels to guide learning without sacrificing this rich feature density.
Methodology
CAMtrast (Classification Activation Map guided contrastive learning) integrates supervised guidance with contrastive discovery through a three-step process:
- CAM-Guided Suppression: The model identifies primary discriminative regions using CAMs and generates a "suppressed" version of the input image by masking these regions.
- Forced Discovery: The network is trained to classify both the original and suppressed images, compelling it to identify secondary features that were previously ignored.
- Contrastive Integration: Using a Siamese network architecture, a contrastive loss (e.g., InfoNCE) is applied to the original and suppressed image pairs. This ensures the model learns consistent, high-level representations regardless of partial occlusions.
Results and Analysis
CAMtrast was evaluated on several benchmarks, including miniImageNet, tieredImageNet, PASCAL VOC, and Cityscapes.
As shown in Figure 3, CAMtrast maintains high accuracy even as the number of training classes decreases, a scenario where standard supervised models typically experience a performance collapse. On miniImageNet, CAMtrast outperformed supervised pretraining by margins of 0.50% to 10.09%, with the most significant gains occurring at lower class counts.
The "entropy gap" between supervised and self-supervised models was also analyzed. Quantitative metrics such as representation entropy and uniformity reveal that self-supervised features are generally more distributed and information-dense than supervised ones.
Figure 6 illustrates that CAMtrast successfully boosts these metrics for supervised models, bridging the gap toward the high-entropy representations characteristic of self-supervised learning. In downstream tasks, CAMtrast achieved 72.16% AP on PASCAL VOC and 74.01% mIoU on Cityscapes, outperforming both supervised and self-supervised baselines.
Conclusion
CAMtrast demonstrates that labels can be used as a "pointer" to encourage broader feature discovery rather than just narrow discrimination. While currently validated on ResNet-50, future work will explore scaling to Vision Transformers and optimizing the "warm-up" period required for CAM suppression to ensure broader generalization across massive datasets.
Summary updated