Rethinking the Effect of Data Augmentation in Adversarial Contrastive Learning

Rundong Luo, Yifei Wang, Yisen Wang
2/12/2026

No official code found. Best implementation: PKU-ML/DYNACL (19 stars, last commit 2023-02-19).

Abstract

Recent works have shown that self-supervised learning can achieve remarkable robustness when integrated with adversarial training (AT). However, the robustness gap between supervised AT (sup-AT) and self-supervised AT (self-AT) remains significant. Motivated by this observation, we revisit existing self-AT methods and discover an inherent dilemma that affects self-AT robustness: either strong or weak data augmentations are harmful to self-AT, and a medium strength is insufficient to bridge the gap. To resolve this dilemma, we propose a simple remedy named DYNACL (Dynamic Adversarial Contrastive Learning). In particular, we propose an augmentation schedule that gradually anneals from a strong augmentation to a weak one to benefit from both extreme cases. Besides, we adopt a fast post-processing stage for adapting it to downstream tasks. Through extensive experiments, we show that DYNACL can improve state-of-the-art self-AT robustness by 8.84% under Auto-Attack on the CIFAR-10 dataset, and can even outperform vanilla supervised adversarial training for the first time. Our code is available at \url{https://github.com/PKU-ML/DYNACL}.

View on arXivView PDF

Code Implementations(1)

PKU-ML/DYNACLCommunity56%

[ICLR 2023] Official repository of the paper "Rethinking the Effect of Data Augmentation in Adversarial Contrastive Learning"

192PythonFeb 2, 20233 years ago

Similar Papers

Cite this paper

@article{luo2026rethinking,
  title  = {Rethinking the Effect of Data Augmentation in Adversarial Contrastive Learning},
  author = {Rundong Luo and Yifei Wang and Yisen Wang},
  year   = {2026},
  eprint = {2303.01289},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2303.01289},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.01289.svg)](https://codeofpaper.com/paper/2303.01289)

Discussion