Securely Fine-tuning Pre-trained Encoders Against Adversarial Examples

Ziqi Zhou, Minghui Li, Wei Liu, Shengshan Hu, Yechao Zhang +5 more
3/16/2024
cs.CV

No official code found. Best implementation: CGCL-codes/Gen-AF (11 stars, last commit 2024-06-28).

Abstract

With the evolution of self-supervised learning, the pre-training paradigm has emerged as a predominant solution within the deep learning landscape. Model providers furnish pre-trained encoders designed to function as versatile feature extractors, enabling downstream users to harness the benefits of expansive models with minimal effort through fine-tuning. Nevertheless, recent works have exposed a vulnerability in pre-trained encoders, highlighting their susceptibility to downstream-agnostic adversarial examples (DAEs) meticulously crafted by attackers. The lingering question pertains to the feasibility of fortifying the robustness of downstream models against DAEs, particularly in scenarios where the pre-trained encoders are publicly accessible to the attackers. In this paper, we initially delve into existing defensive mechanisms against adversarial examples within the pre-training paradigm. Our findings reveal that the failure of current defenses stems from the domain shift between pre-training data and downstream tasks, as well as the sensitivity of encoder parameters. In response to these challenges, we propose Genetic Evolution-Nurtured Adversarial Fine-tuning (Gen-AF), a two-stage adversarial fine-tuning approach aimed at enhancing the robustness of downstream models. Our extensive experiments, conducted across ten self-supervised training methods and six datasets, demonstrate that Gen-AF attains high testing accuracy and robust testing accuracy against state-of-the-art DAEs.

View on arXivView PDF

Code Implementations(1)

CGCL-codes/Gen-AFCommunity100%

The implementation of our IEEE S&P 2024 paper "Securely Fine-tuning Pre-trained Encoders Against Adversarial Examples".

111PythonMar 12, 20242 years ago

Similar Papers

Cite this paper

@article{zhou2024securely,
  title  = {Securely Fine-tuning Pre-trained Encoders Against Adversarial Examples},
  author = {Ziqi Zhou and Minghui Li and Wei Liu and Shengshan Hu and Yechao Zhang and Wei Wan and Lulu Xue and Leo Yu Zhang and Dezhong Yao and Hai Jin},
  year   = {2024},
  eprint = {2403.10801},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.10801v2}
}

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/2403.10801.svg)](https://codeofpaper.com/paper/2403.10801)

Discussion