Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuning

Tianlong Chen, Sijia Liu, Shiyu Chang, Yu Cheng, Lisa Amini, Zhangyang Wang

Introduction

Deep neural networks are notoriously vulnerable to adversarial attacks—small, often imperceptible perturbations to input data that cause models to make confident, incorrect predictions. While Adversarial Training (AT) remains the most effective defense, it is hindered by high computational costs and a significant requirement for labeled data.

This research, presented at CVPR 2020, explores the intersection of self-supervised learning and adversarial robustness. The authors introduce Adversarial Self-Supervised Pre-training (Adv-SS-Pretraining), demonstrating for the first time that robust features learned from unlabeled data can be transferred to downstream tasks. This approach not only improves both standard and robust accuracy but also significantly accelerates the subsequent fine-tuning process.

Methodology

The core of the proposed framework involves integrating the adversarial "min-max" optimization objective directly into self-supervised "pretext" tasks. By training a model to solve these tasks while resisting adversarial perturbations, the network learns robust representations without requiring manual labels.

Overview of the Adversarial Self-Supervised Pre-training (Adv-SS-Pretraining) framework featuring Selfie, Jigsaw, and Rotation tasks.

As illustrated in the figure above, the researchers evaluated three primary pretext tasks:

  1. Selfie: Reconstructing masked-out patches of an image.
  2. Rotation: Predicting the orientation (0, 90, 180, or 270 degrees) of an image.
  3. Jigsaw: Predicting the correct permutation of shuffled image patches.

To address the unique vulnerabilities (or "blind spots") of individual tasks, the authors proposed an ensemble strategy. This is further strengthened by a Diversity-Promoting Regularizer, which encourages the gradients of different task losses to be orthogonal, forcing the model to defend against attacks from diverse directions in the feature space.

Experimental Setup

The framework was evaluated across several benchmarks, including CIFAR-10, CIFAR-100, and a restricted version of ImageNet (R-ImageNet-224) to test scalability. Robustness against common image corruptions was assessed using CIFAR-10-C. Additionally, the researchers utilized subsets of the 80 Million Tiny Images dataset to study the impact of scaling unlabeled data volume on final model robustness.

Key Results and Discussion

The experimental results confirm that robustness is a transferable property. Robust representations learned during pre-training provide a "warm start" for downstream tasks, allowing adversarial fine-tuning to converge in roughly 50 epochs—nearly doubling the efficiency compared to the 99 epochs required by standard AT baselines.

Comparison of standard and robust accuracy across different pre-training tasks and the ensemble fine-tuning strategy against the adversarial training baseline.

As shown in the performance comparison, the ensemble strategy achieved a state-of-the-art 54.64% robust accuracy on CIFAR-10. Even individual tasks like Selfie outperformed the baseline, improving robust accuracy by 3.83% and standard accuracy by 1.3%. The study also revealed that robust accuracy grows steadily with the size of the unlabeled pre-training dataset, suggesting that robustness can be effectively scaled using unlabeled data.

Conclusion

Adv-SS-Pretraining establishes a new paradigm for building robust neural networks. By leveraging unlabeled data to create a robust foundation, practitioners can achieve higher accuracy with lower computational overhead during fine-tuning. Future work may explore the integration of modern contrastive learning methods and further address the challenges of scaling adversarial training to full-resolution, large-scale datasets like ImageNet.

Summary updated

BibTeX
@inproceedings{chen2020adversarial,
  author = {Tianlong Chen and Sijia Liu and Shiyu Chang and Yu Cheng and Lisa Amini and Zhangyang Wang},
  title = {{Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00078},
}
Figure