Abstract
Recently, it is shown that deploying a proper self-supervision is a prospective way to enhance the performance of supervised learning. Yet, the benefits of self-supervision are not fully exploited as previous pretext tasks are specialized for unsupervised representation learning. To this end, we begin by presenting three desirable properties for such auxiliary tasks to assist the supervised objective. First, the tasks need to guide the model to learn rich features. Second, the transformations involved in the self-supervision should not significantly alter the training distribution. Third, the tasks are preferred to be light and generic for high applicability to prior arts. Subsequently, to show how existing pretext tasks can fulfill these and be tailored for supervised learning, we propose a simple auxiliary self-supervision task, predicting localizable rotation (LoRot). Our exhaustive experiments validate the merits of LoRot as a pretext task tailored for supervised learning in terms of robustness and generalization capability. Our code is available at https://github.com/wjun0830/Localizable-Rotation .
Introduction
Self-supervised learning (SSL) has revolutionized unsupervised representation learning by allowing models to learn from unlabeled data through pretext tasks like rotation prediction or jigsaw puzzles. However, when these same tasks are applied as auxiliary objectives in standard supervised learning, they often fail to yield significant improvements or can even degrade performance.
The researchers identify two primary challenges in adapting SSL for supervised contexts:
- Distribution Shift: Traditional pretext tasks, such as rotating an entire image by 90 degrees, create "unnatural" images that differ significantly from the test distribution. This shift can confuse the model's primary supervised objective.
- Shortcut Learning: Supervised models often focus on minimal discriminative features (e.g., a bird's beak) to achieve high accuracy. Standard SSL tasks may overlap too much with the main task, failing to encourage the model to learn the finer, more robust details of the data.
Methodology: Localizable Rotation (LoRot)
To address these issues, the authors propose three criteria for effective auxiliary self-supervision: extracting rich representations, maintaining the data distribution, and ensuring high applicability with low computational overhead.
The proposed solution is Localizable Rotation (LoRot). Unlike global rotation, LoRot applies transformations only to small, local patches of an image while keeping the rest of the frame intact. This approach minimizes distribution shift, as the majority of the image remains "natural." The authors introduce two variants:
- LoRot-I (Implicit): The model must identify the rotation of a randomly sampled patch without being told its location, forcing it to implicitly locate the anomaly.
- LoRot-E (Explicit): The image is divided into a 2x2 grid. One quadrant is rotated, and the model must explicitly predict both the location (which quadrant) and the degree of rotation.
By forcing the model to scan the entire image to solve these "localization quizzes," LoRot breaks shortcut learning and encourages broader attention across object parts. This is quantified using an Affinity Score, which measures the similarity between original and transformed distributions. As shown in the t-SNE visualizations above, LoRot (c, d) maintains a feature distribution much closer to the original data compared to global rotation (a) or jigsaw puzzles (b), which exhibit significant separation between original and transformed features.
Experimental Results
The efficacy of LoRot was validated across multiple benchmarks, including CIFAR-10/100, ImageNet, and COCO 2017.
- Out-of-Distribution (OOD) Detection: LoRot-E achieved state-of-the-art performance. On CIFAR-10, it reached an AUROC of 98.7% when tested against LSUN, outperforming standard rotation (97.3%) and contrastive methods like CSI (96.3%).
- Robustness and Generalization: In adversarial settings (PGD attacks), LoRot improved accuracy from 0% to over 52%. On ImageNet, it boosted ResNet-50 Top-1 accuracy from 76.32% to 77.72%.
- Downstream Tasks: Pre-training with LoRot improved performance in object detection (RetinaNet) and instance segmentation (SOLOv2) compared to standard ImageNet pre-training.
Discussion and Conclusion
LoRot provides a lightweight, generic auxiliary task that enhances supervised learning without the heavy computational cost of contrastive methods. Unlike methods that require multiple forward passes of augmented images, LoRot is implemented as a simple additional network head.
One noted limitation is its interaction with CutMix. Since both techniques involve regional manipulations, they can interfere if patches overlap, leading to diminishing returns. Future research may explore more sophisticated localization tasks or optimized combinations of regional augmentations to further exploit the benefits of tailored self-supervision.
Summary updated