Downstream-agnostic Adversarial Examples

Ziqi Zhou, Shengshan Hu, Rui-Qing Zhao, Qian Wang, Leo Yu Zhang +2 more
2/14/2026

No official code found. Best implementation: CGCL-codes/AdvCLIP (100 stars, MIT, last commit 2023-08-25). 1 more below.

Abstract

Self-supervised learning usually uses a large amount of unlabeled data to pre-train an encoder which can be used as a general-purpose feature extractor, such that downstream users only need to perform fine-tuning operations to enjoy the benefit of "large model". Despite this promising prospect, the security of pre-trained encoder has not been thoroughly investigated yet, especially when the pre-trained encoder is publicly available for commercial use.In this paper, we propose AdvEncoder, the first framework for generating downstream-agnostic universal adversarial examples based on the pre-trained encoder. AdvEncoder aims to construct a universal adversarial perturbation or patch for a set of natural images that can fool all the downstream tasks inheriting the victim pre-trained encoder. Unlike traditional adversarial example works, the pre-trained encoder only outputs feature vectors rather than classification labels. Therefore, we first exploit the high frequency component information of the image to guide the generation of adversarial examples. Then we design a generative attack framework to construct adversarial perturbations/patches by learning the distribution of the attack surrogate dataset to improve their attack success rates and transferability. Our results show that an attacker can successfully attack downstream tasks without knowing either the pre-training dataset or the downstream dataset. We also tailor four defenses for pre-trained encoders, the results of which further prove the attack ability of AdvEncoder. Our codes are available at: https://github.com/CGCL-codes/AdvEncoder.

View on arXivView PDF

Code Implementations(2)

MIT

The implementation of our ICCV 2023 paper "Downstream-agnostic Adversarial Examples"

694PythonJul 20, 20233 years agoMIT
adversarial-examplespre-trained-model
CGCL-codes/AdvCLIPCommunity54%
MIT

The implementation of our ACM MM 2023 paper "AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learning"

1003PythonJul 26, 20233 years agoMIT

Similar Papers

Cite this paper

@article{zhou2026downstreamagnostic,
  title  = {Downstream-agnostic Adversarial Examples},
  author = {Ziqi Zhou and Shengshan Hu and Rui-Qing Zhao and Qian Wang and Leo Yu Zhang and Junhui Hou and Hai Jin},
  year   = {2026},
  eprint = {2307.12280},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2307.12280},
  journal = {ICCV 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/2307.12280.svg)](https://codeofpaper.com/paper/2307.12280)

Discussion