Overview
Deep Neural Networks (DNNs) are highly susceptible to adversarial attacks—small, intentional perturbations designed to mislead model predictions. While Adversarial Training (AT) is the most effective defense, it typically requires vast amounts of labeled data. Self-Supervised Learning (SSL) offers a path forward by leveraging unlabeled data, but existing "Robust SSL" frameworks often struggle with extreme computational costs and optimization conflicts.
Decoupled Adversarial Contrastive Learning (DeACL) addresses these issues by breaking the complex, single-stage optimization of adversarial contrastive learning into two distinct, manageable steps. This approach achieves state-of-the-art (SOTA) robustness while being up to 28x faster than previous leading methods.
The Challenge: Optimization Complexity and Computational Cost
Existing frameworks like RoCL and AdvCL are "coupled," meaning they attempt to learn high-quality representations and adversarial robustness simultaneously. This creates two primary bottlenecks:
- Optimization Conflicts: SSL typically thrives on strong data augmentation and low weight decay to learn diverse features. Conversely, AT performs better with weak augmentation and high weight decay to stabilize the decision boundary. Forcing these into a single stage leads to a "tug-of-war" in hyperparameter tuning.
- Multiplicative Complexity: If SSL is $M$ times slower than standard training and AT is $N$ times slower, a coupled approach becomes $M \times N$ slower. For large-scale datasets, this makes training prohibitively expensive.
The DeACL Framework
DeACL introduces a "divide-and-conquer" strategy that decouples representation learning from robustness training. The process is divided into two stages:
- Stage 1: Non-robust SSL. The model performs standard SSL (e.g., SimCLR) on unlabeled data to learn high-quality instance-wise representations. These learned vectors serve as "pseudo-targets."
- Stage 2: Pseudo-supervised AT. The encoder from Stage 1 is frozen and acts as a "teacher." A "student" model is then trained using a loss function inspired by the TRADES algorithm. Instead of human labels, the student attempts to match the teacher's representation for both clean and adversarial examples using Cosine Similarity.
By decoupling these stages, researchers can use optimal hyperparameters for each: strong augmentation in Stage 1 to capture features, and weak augmentation with higher weight decay in Stage 2 to bake in robustness.
Key Insights
- Additive Complexity: By decoupling, the training time drops from $M \times N$ to $M + N$. This shift reduces training time from over 12 days to less than half a day on standard benchmarks.
- Hyperparameter Harmony: The separation allows for the use of different data augmentation strategies. Applying strong augmentation to adversarial examples in a coupled setting often degrades performance; DeACL avoids this by using weak augmentation specifically during the adversarial distillation stage.
- Framework Flexibility: DeACL is compatible with various SSL backends (SimCLR, MoCo v2, BYOL). Experiments show that contrastive learning-based frameworks generally yield superior robustness compared to non-contrastive alternatives.
Experimental Results
Evaluated on CIFAR-10 and CIFAR-100 using ResNet-18, DeACL consistently outperforms existing self-supervised methods in both accuracy and efficiency.
- Robustness: On CIFAR-10, DeACL achieved 45.31% AutoAttack (AA) accuracy, surpassing the previous best (AdvCL) at 42.57%.
- Efficiency: DeACL required only 0.45 GPU days to train, compared to 3.18 days for RoCL and 12.6 days for AdvCL.
Conclusion
DeACL demonstrates that decoupling representation learning from adversarial training is not only more efficient but also more effective. By resolving the optimization conflicts inherent in coupled SSL-AT frameworks, DeACL provides a scalable path toward robust deep learning without the need for massive labeled datasets. Future work may explore integrating small amounts of labeled data to further bridge the gap between self-supervised and fully supervised adversarial training.
Summary updated