Lune

S&P2024Top-tier venue

Securely Fine-tuning Pre-trained Encoders Against Adversarial Examples

Ziqi Zhou, Minghui Li, Wei Liu, Shengshan Hu, Yechao Zhang, Wei Wan, Lulu Xue, Leo Yu Zhang, Dezhong Yao, Hai Jin

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. Gen-AF employs a genetic-directed dual-track adversarial fine-tuning strategy in its first stage to effectively inherit the pre-trained encoder. This involves optimizing the pre-trained encoder and classifier separately while incorporating genetic regularization to preserve the model’s topology. In the second stage, Gen-AF assesses the robust sensitivity of each layer and creates a dictionary, based on which the top-k robust redundant layers are selected with the remaining layers held fixed. Upon this foundation, we conduct evolutionary adaptability fine-tuning to further enhance the model’s generalizability. 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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Models cites A Simple Framework for Contrastive Learning of Visual Representations
  • When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Models cites DarkSAM: Fooling Segment Anything Model to Segment Nothing
  • When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Models cites Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2
  • When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Models cites Transferable Adversarial Attacks on SAM and Its Downstream Models
  • AdvEDM: Fine-grained Adversarial Attack against VLM-based Embodied Agents cites DarkSAM: Fooling Segment Anything Model to Segment Nothing
  • AdvEDM: Fine-grained Adversarial Attack against VLM-based Embodied Agents cites Learning Transferable Visual Models From Natural Language Supervision
  • AdvEDM: Fine-grained Adversarial Attack against VLM-based Embodied Agents cites Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2
  • Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2 cites AdvEDM: Fine-grained Adversarial Attack against VLM-based Embodied Agents
  • DarkSAM: Fooling Segment Anything Model to Segment Nothing cites Language Models are Few-Shot Learners
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • Learning Transferable Visual Models From Natural Language Supervision cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2 cites A Simple Framework for Contrastive Learning of Visual Representations
  • Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2 cites DarkSAM: Fooling Segment Anything Model to Segment Nothing
  • Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2 cites Transferable Adversarial Attacks on SAM and Its Downstream Models
  • Transferable Adversarial Attacks on SAM and Its Downstream Models cites DarkSAM: Fooling Segment Anything Model to Segment Nothing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. DarkSAM: Fooling Segment Anything Model to Segment NothingZiqi Zhou, Yufei Song, Minghui Li, Shengshan Hu et al.NeurIPS 2024 · 44 citations
  2. Transferable Adversarial Attacks on SAM and Its Downstream ModelsSong Xia, Wenhan Yang, Yi Yu, Xun Lin et al.NeurIPS 2024 · 29 citations
  3. AdvEDM: Fine-grained Adversarial Attack against VLM-based Embodied AgentsYichen Wang, Hangtao Zhang, Hewen Pan, Ziqi Zhou et al.NeurIPS 2025 · 27 citations
  4. Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2Ziqi Zhou, Yifan Hu, Yufei Song, Zijing Li et al.NeurIPS 2025 · 17 citations
  5. When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action ModelsHui Lu, Yi Yu, Yiming Yang, Chenyu Yi et al.CVPR 2026 · 12 citations

Builds on41

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  4. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  5. Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations

Related papers

  1. Zero-Sacrifice Persistent-Robustness Adversarial Defense for Pre-Trained EncodersZhuxin Lei, Ziyuan Yang, Yi ZhangICLR 2026
  2. Downstream-agnostic Adversarial ExamplesZiqi Zhou, Shengshan Hu, Ruizhi Zhao, Qian Wang et al.ICCV 2023 · 45 citations
  3. REaaS: Enabling Adversarially Robust Downstream Classifiers via Robust Encoder as a ServiceWenjie Qu, Jinyuan Jia, Neil Zhenqiang GongNDSS 2023
  4. Pre-trained Adversarial PerturbationsYuanhao Ban, Yinpeng DongNeurIPS 2022 · 37 citations
  5. TWINS: A Fine-Tuning Framework for Improved Transferability of Adversarial Robustness and GeneralizationZiquan Liu, Yi Xu, Xiangyang Ji, Antoni B. ChanCVPR 2023
Dusk over the sea between two cliffs drawn in fine vertical lines