[Paper Review] Is Self-Supervised Learning More Robust Than Supervised Learning?
This paper investigates whether self-supervised contrastive learning (CL) is more robust than supervised learning (SL) under various data distribution corruptions. Using multi-level corruptions—from pixel-level gamma distortion to dataset-level distribution shifts—across multiple models and datasets, the authors find CL is consistently more robust to downstream data corruptions but less robust to pre-training data corruptions like patch shuffling and intensity changes. The key insight is that CL maintains higher feature uniformity and stability, which correlates with improved downstream robustness, leading to a proposed uniformity regularization that enhances SL’s robustness without sacrificing accuracy.
Self-supervised contrastive learning is a powerful tool to learn visual representation without labels. Prior work has primarily focused on evaluating the recognition accuracy of various pre-training algorithms, but has overlooked other behavioral aspects. In addition to accuracy, distributional robustness plays a critical role in the reliability of machine learning models. We design and conduct a series of robustness tests to quantify the behavioral differences between contrastive learning and supervised learning to downstream or pre-training data distribution changes. These tests leverage data corruptions at multiple levels, ranging from pixel-level gamma distortion to patch-level shuffling and to dataset-level distribution shift. Our tests unveil intriguing robustness behaviors of contrastive and supervised learning. On the one hand, under downstream corruptions, we generally observe that contrastive learning is surprisingly more robust than supervised learning. On the other hand, under pre-training corruptions, we find contrastive learning vulnerable to patch shuffling and pixel intensity change, yet less sensitive to dataset-level distribution change. We attempt to explain these results through the role of data augmentation and feature space properties. Our insight has implications in improving the downstream robustness of supervised learning.
Motivation & Objective
- To evaluate the robustness of self-supervised contrastive learning (CL) versus supervised learning (SL) beyond accuracy, focusing on behavioral differences under data distribution shifts.
- To investigate whether CL's superior performance in accuracy is matched by greater robustness to real-world data corruptions, including pixel-level, patch-level, and dataset-level distortions.
- To analyze the role of data augmentation and feature space properties in explaining the observed robustness differences between CL and SL.
- To develop and validate a uniformity regularization technique that improves the downstream robustness of supervised pre-training by mimicking CL's feature space properties.
- To provide empirical insights into the behavioral divergence between CL and SL under pre-training versus downstream corruption scenarios, with implications for model design and training.
Proposed method
- Conducting comprehensive robustness evaluations using a spectrum of data corruptions: pixel-level gamma distortion, patch-level shuffling, and dataset-level distribution shifts (e.g., class imbalance, GAN-generated data).
- Applying multiple CL algorithms (SimCLR, MoCo, SimSiam, BYOL, BarlowTwins, SwAV, DINO) and supervised learning across diverse backbones (ResNet, ViT) and datasets (CIFAR, ImageNet, STL-10, Cars, Aircrafts).
- Measuring feature space dynamics via intra-class feature uniformity and inter-class distance metrics during training to analyze learning behavior differences.
- Introducing a uniformity regularization term in supervised pre-training that promotes higher intra-class feature variance, inspired by CL’s stable and uniform feature distributions.
- Reordering data corruption and augmentation steps to test the hypothesis that interference with random crop augmentation causes CL’s vulnerability to patch-level corruptions.
- Using KNN probes for evaluation and tracking accuracy drops (Δ) under various corruptions to quantify robustness differences between CL and SL.
Experimental results
Research questions
- RQ1Is self-supervised contrastive learning more robust than supervised learning to downstream data corruptions, such as pixel-level distortions and patch shuffling?
- RQ2How does pre-training data corruption (e.g., patch shuffling, intensity changes) affect the robustness of contrastive and supervised learning models?
- RQ3Does the feature space uniformity and stability of contrastive learning explain its superior downstream robustness compared to supervised learning?
- RQ4Can uniformity regularization in supervised learning improve its robustness to test-time data corruptions without degrading clean accuracy?
- RQ5What is the role of data augmentation order in the robustness of contrastive learning under pre-training corruptions, particularly patch shuffling?
Key findings
- Contrastive learning is consistently more robust than supervised learning to downstream data corruptions, with accuracy drops (Δ) significantly lower across all tested corruption types and datasets.
- Under pre-training corruptions, contrastive learning is more robust to dataset-level distribution shifts (e.g., GAN-generated data, class imbalance), showing lower accuracy degradation than supervised learning.
- However, contrastive learning is less robust than supervised learning to pre-training corruptions involving pixel-level intensity changes and patch-level shuffling, indicating a fundamental divergence in robustness behavior depending on corruption level.
- Feature space analysis reveals that contrastive learning maintains higher and steadily increasing per-class feature uniformity and lower intra-class variance compression compared to supervised learning, which tends to over-compress features.
- The introduction of a uniformity regularization term in supervised pre-training increases feature space uniformity and improves downstream robustness, achieving higher KNN accuracy on corrupted data (e.g., 44.34% on G4x4 corruption) while maintaining high clean accuracy (94.21%).
- Reordering data corruption and augmentation steps significantly restores robustness in contrastive learning, supporting the hypothesis that interference with random crop augmentation is a key cause of vulnerability to patch-level corruptions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.