An Empirical Study of Accuracy-Robustness Tradeoff and Training Efficiency in Self-Supervised Learning
Fatemeh Ghofrani, Pooyan Jamshidi
TL;DR
This work addresses the efficiency and robustness of self-supervised learning (SSL) under adversarial perturbations by revisiting EMP-SSL and introducing CF-AMC-SSL, a cost-efficient SSL method that uses aggressive multi-crop augmentation combined with free adversarial training. It demonstrates that increasing the number of crops per image can compensate for fewer training epochs, achieving fast convergence while maintaining or improving clean accuracy and adversarial robustness, outperforming robust SimCLR. The study provides extensive experiments on CIFAR-10/100 (and ImageNet-100) with ResNet backbones, showing crop-based EMP-SSL generally offers a better accuracy-robustness tradeoff, and that CF-AMC-SSL can reduce training time by orders of magnitude with competitive performance. Public code is provided to facilitate adoption and further research in robust SSL applications.
Abstract
Self-supervised learning (SSL) has significantly advanced image representation learning, yet efficiency challenges persist, particularly with adversarial training. Many SSL methods require extensive epochs to achieve convergence, a demand further amplified in adversarial settings. To address this inefficiency, we revisit the robust EMP-SSL framework, emphasizing the importance of increasing the number of crops per image to accelerate learning. Unlike traditional contrastive learning, robust EMP-SSL leverages multi-crop sampling, integrates an invariance term and regularization, and reduces training epochs, enhancing time efficiency. Evaluated with both standard linear classifiers and multi-patch embedding aggregation, robust EMP-SSL provides new insights into SSL evaluation strategies. Our results show that robust crop-based EMP-SSL not only accelerates convergence but also achieves a superior balance between clean accuracy and adversarial robustness, outperforming multi-crop embedding aggregation. Additionally, we extend this approach with free adversarial training in Multi-Crop SSL, introducing the Cost-Free Adversarial Multi-Crop Self-Supervised Learning (CF-AMC-SSL) method. CF-AMC-SSL demonstrates the effectiveness of free adversarial training in reducing training time while simultaneously improving clean accuracy and adversarial robustness. These findings underscore the potential of CF-AMC-SSL for practical SSL applications. Our code is publicly available at https://github.com/softsys4ai/CF-AMC-SSL.
