Towards a Self-Made Model: Zero-Shot Self-Supervised Purification for Adversarial Attacks

Xiuli Bi, Zonglin Yang, Bo Liu, Bin Xiao, Weisheng Li, Chi-Man Pun, Pietro LioOpenReview 2024 · Submission to ICLR 2024 · Rejected

Abstract

Adversarial purification is an adversarial defense method without robustness training for the classifier and regardless of the form of attacks, aiming to remove the adversarial perturbations on the attacked images. Such methods can defend against various unseen threats without modifying the classifier in contrast to empirical defenses. However, previous purification methods require careful training of a strong generative model or incorporating additional knowledge when training a classifier to be comparable to adversarial training. Retraining promising generative models or classifiers on large-scale datasets (e.g., ImageNet) is extremely challenging and computation-consuming. In this work, following the natural image manifold hypothesis, we propose a zero-shot self-supervised method for adversarial purification named \textit{ZeroPur}: For an adversarial example that lies beyond the natural image manifold, its corrupted embedding vector is first restored so that it is moved close to the natural image manifold. The embedding is then fine-tuned on finer intermediate-level discrepancies to project it back within the manifold. The whole purification process is done from coarse to fine, which does not rely on any generative model and does not require retraining the classifier to incorporate additional knowledge. Extensive experiments on three datasets including CIFAR-10, CIFAR-100, and ImageNet with various classifier architectures including ResNet and WideResNet, demonstrate that our method achieves state-of-the-art robust performance. Code released.
BibTeX
@misc{bi2024towards,
  author = {Xiuli Bi and Zonglin Yang and Bo Liu and Bin Xiao and Weisheng Li and Chi-Man Pun and Pietro Lio},
  title = {{Towards a Self-Made Model: Zero-Shot Self-Supervised Purification for Adversarial Attacks}},
  year = {2024},
  url = {https://openreview.net/forum?id=2zoi9YI21Y},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}

Loading related content...

Figure