Abstract
Self-supervised learning (SSL) via masked image modeling has seen significant success in Vision Transformers (ViTs), yet its application to Convolutional Neural Networks (ConvNets) remains challenging due to artificial edge artifacts and semantic misalignment. This paper presents a novel saliency-guided masking framework designed specifically for ConvNets. By leveraging a frozen localization network to identify salient regions, the method ensures balanced masking between foreground and background, avoids the introduction of parasitic edges, and generates hard negative samples. Experimental results on ImageNet-100 show that this approach significantly improves contrastive learning performance, achieving up to 77.9% top-1 accuracy and demonstrating strong transferability to downstream tasks.
Introduction: The Masking Gap in ConvNets
In computer vision, SSL enables models to learn from unlabeled data. While techniques like Masked Autoencoders (MAE) excel with ViTs, ConvNets face two primary hurdles:
- Parasitic Edges: Sharp mask boundaries create artificial edges that confuse convolutional kernels, leading the model to learn mask shapes rather than image content.
- Misleading Contrastiveness: Random masking can inadvertently hide entire objects in one view while leaving them in another, leading the model to incorrectly associate empty backgrounds with the original image's identity.
Methodology: Saliency-Guided Contrastive Learning
The proposed framework uses Saliency (identifying the most important parts of an image) to guide mask placement.
- Saliency Computation: A pre-trained, frozen localization network (SCDA) distinguishes the foreground object from the background.
- Balanced Masking: Masks are distributed proportionally between regions to preserve the object's signal during training.
- Edge Mitigation: To solve the parasitic edge problem, the authors utilize strategies such as high-pass filtering, strong blurring, or mean filling to reduce the impact of artificial mask boundaries.
- Hard Negative Samples: By specifically masking the most salient parts of an image, the model is forced to identify the scene using more subtle, non-obvious cues, making the training process more rigorous.
Key Results and Performance
The method consistently outperforms standard baselines like MoCov2 and SimCLR, as well as previous ConvNet masking attempts like MSCN and ADIOS. On ImageNet-100, the high-pass filtering variant achieved 73.8% accuracy when added to MoCov2 and 77.9% when added to SimCLR.
The model also showed superior transfer learning performance, reaching 90.95% accuracy on the Flowers-102 dataset. Ablation studies confirmed that the method is robust to the choice of the saliency-detecting network, providing effective guidance regardless of the specific pre-training data used for the localization module.
Conclusion
Saliency-guided masking effectively bridges the gap for ConvNets in masked SSL. By maintaining semantic integrity and introducing "hard" training samples, the framework forces the learning of more robust features. While the current implementation relies on a pre-trained localization network, future work may explore dynamic or learnable saliency modules to further streamline the training pipeline.
Summary updated