[Paper Review] Robust Pre-Training by Adversarial Contrastive Learning
The paper proposes Adversarial Contrastive Learning (ACL) with three variants, selecting Dual-Stream (DS) as best, to pre-train representations that are robust to adversarial perturbations and data augmentations, improving both robust and standard accuracies in supervised and semi-supervised settings.
Recent work has shown that, when integrated with adversarial training, self-supervised pre-training can lead to state-of-the-art robustness In this work, we improve robustness-aware self-supervised pre-training by learning representations that are consistent under both data augmentations and adversarial perturbations. Our approach leverages a recent contrastive learning framework, which learns representations by maximizing feature consistency under differently augmented views. This fits particularly well with the goal of adversarial robustness, as one cause of adversarial fragility is the lack of feature invariance, i.e., small input perturbations can result in undesirable large changes in features or even predicted labels. We explore various options to formulate the contrastive task, and demonstrate that by injecting adversarial perturbations, contrastive pre-training can lead to models that are both label-efficient and robust. We empirically evaluate the proposed Adversarial Contrastive Learning (ACL) and show it can consistently outperform existing methods. For example on the CIFAR-10 dataset, ACL outperforms the previous state-of-the-art unsupervised robust pre-training approach by 2.99% on robust accuracy and 2.14% on standard accuracy. We further demonstrate that ACL pre-training can improve semi-supervised adversarial training, even when only a few labeled examples are available. Our codes and pre-trained models have been released at: https://github.com/VITA-Group/Adversarial-Contrastive-Learning.
Motivation & Objective
- Motivate label-efficient, robust model training in vision by leveraging unlabeled data.
- Integrate contrastive self-supervision with adversarial training to enforce feature consistency under augmentations and perturbations.
- Explore multiple ACL formulations (A2A, A2S, DS) and identify the best performing setup.
- Demonstrate improved robustness and accuracy in fully supervised and semi-supervised finetuning on CIFAR-10/100.
Proposed method
- Base the approach on SimCLR contrastive learning to learn invariant representations under data augmentations.
- Introduce Adversarial Contrast Learning (ACL) with three variants: Adversarial-to-Adversarial (A2A), Adversarial-to-Standard (A2S), and Dual-Stream (DS).
- In A2A, generate adversarial perturbations for both augmented views and maximize their similarity loss.
- In A2S, perturb one view and keep the other standard, using dual Batch Normalization (BN) to separate statistics.
- In DS, combine standard and adversarial view pairs with two BR branches sharing weights but with separate BN, balancing standard and robust objectives.
- Provide a supervised fine-tuning and a semi-supervised training pipeline that uses ACL pre-training (with a specific loss that blends cross-entropy, distillation, and robustness regularization).
- Highlight training details: pretrained with 1000 epochs, PGD-based perturbations (5 steps) during pre-training, and standard AT during fine-tuning.
Experimental results
Research questions
- RQ1Can contrastive pre-training be made robust to adversarial perturbations by injecting adversarial views into the contrastive objective?
- RQ2Which ACL variant (A2A, A2S, DS) yields the best trade-off between standard and robust accuracy?
- RQ3Does ACL pre-training improve label-efficient adversarial training in semi-supervised settings, including extremely low label regimes?
- RQ4How do dual BN configurations affect robustness and standard accuracy when using adversarial and standard branches?
- RQ5Does adversarial contrastive pre-training produce more linearly separable representations under adversarial evaluation?
Key findings
- ACL Dual-Stream (DS) pre-training achieves state-of-the-art TA/RA on CIFAR-10 and CIFAR-100 compared to prior robust pre-training methods.
- On CIFAR-10, DS yields TA 82.19% and RA 52.82%, improving TA by 2.14% and RA by 2.99% over the previous best.
- On CIFAR-100, DS yields TA 56.77% and RA 28.33%, improving TA by 2.14% and RA by 3.58% over the previous best.
- In semi-supervised settings with 10% labels, ACL (DS) improves TA by 4.50% and RA by 0.72% over Selfie/UAT++ baselines, and with 1% labels the gap remains large (e.g., 75.66 TA, 50.67 RA for DS vs much lower for others).
- ACL pre-training leads to higher pseudo-label accuracy (86.73%) than baselines (e.g., 37.67% or 46.75%), contributing to improved semi-supervised robustness.
- Ablation shows DS outperforms A2A and A2S in balancing robustness and feature quality, while SimCLR (S2S) improves TA but not RA substantially.
- Using dual BN (adv) for testing provides better robustness than single BN, with DS typically preferred for robust evaluation.
- Robustness accelerates during fine-tuning when starting from ACL (DS) pre-training, achieving higher RA earlier than random initialization, with observed robustness dynamics depending on learning-rate schedule.
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.