Abstract
Self-supervised learning (SSL) models often exploit local pixel "shortcuts" rather than learning global object structures. We introduce Limited Context Inpainting (LCI), a pretext task that preserves local statistics while disrupting global ones. By training a classifier to distinguish original images from those transformed via LCI, warping, and rotation, we force the model to capture high-level semantic features. Our method achieves competitive results on benchmarks like Pascal VOC, STL-10, and Places, demonstrating superior transferability.
Introduction
The primary goal of self-supervised learning is to derive meaningful representations from unlabeled data. Common pretext tasks, such as rotation prediction or jigsaw puzzle solving, are intended to encourage models to understand object geometry and parts. However, deep neural networks are often "lazy," identifying low-level artifacts—such as chromatic aberration or edge discontinuities—to solve these tasks without learning high-level semantic concepts. This phenomenon, known as degenerate learning, limits the utility of SSL features for downstream tasks like object detection and segmentation.
Methodology: Beyond Local Statistics
To combat degenerate learning, we propose that transformations should preserve local pixel statistics but significantly alter global ones. If a model cannot distinguish a real image from a fake one by looking at small patches, it must rely on the global arrangement of those patches.
Limited Context Inpainting (LCI)
LCI is our core contribution. We extract a random patch from an image, retain only a minimal border (2-4 pixels), and fill the interior with noise. An adversarial "Patch-Inpainter" network then fills this hole. Because the inpainter only has access to a thin local context, it can generate textures that match the surroundings perfectly but lack global semantic coherence.
Adversarial Training and Task Synergy
A classifier is trained to identify whether an image has been transformed. To ensure the classifier focuses on global structure, the inpainter is trained adversarially to minimize the classifier's ability to detect local artifacts. Furthermore, we combine LCI with other transformations like random warping (geometric distortion) and rotation. This multi-task approach prevents the model from over-specializing on a single type of shortcut.
Results and Discussion
Our model was pre-trained on ImageNet and evaluated on several transfer learning benchmarks.
- Places Dataset: Our self-supervised features achieved 37.7% accuracy on the conv5 layer, nearly matching the 38.7% achieved by fully supervised ImageNet-trained models.
- Pascal VOC: The method reached a mean Average Precision (mAP) of 56.8% for object detection, outperforming contemporary SSL methods.
- STL-10: We achieved 91.8% accuracy, demonstrating the robustness of the learned features.
Conclusion
By "steering" models away from local pixel statistics, LCI forces the extraction of features that represent the "forest" rather than just the "trees." This approach highlights the importance of designing pretext tasks that are difficult to solve via local shortcuts, paving the way for more robust visual understanding in AI.
Summary updated