Lune

NeurIPS2024Top-tier venue

Transferable Adversarial Attacks on SAM and Its Downstream Models

Song Xia, Wenhan Yang, Yi Yu, Xun Lin, Henghui Ding, Lingyu Duan, Xudong Jiang

Abstract

The utilization of large foundational models has a dilemma: while fine-tuning downstream tasks from them holds promise for making use of the well-generalized knowledge in practical applications, their open accessibility also poses threats of adverse usage. This paper, for the first time, explores the feasibility of adversarial attacking various downstream models fine-tuned from the segment anything model (SAM), by solely utilizing the information from the open-sourced SAM. In contrast to prevailing transfer-based adversarial attacks, we demonstrate the existence of adversarial dangers even without accessing the downstream task and dataset to train a similar surrogate model. To enhance the effectiveness of the adversarial attack towards models fine-tuned on unknown datasets, we propose a universal meta-initialization (UMI) algorithm to extract the intrinsic vulnerability inherent in the foundation model, which is then utilized as the prior knowledge to guide the generation of adversarial perturbations. Moreover, by formulating the gradient difference in the attacking process between the open-sourced SAM and its fine-tuned downstream models, we theoretically demonstrate that a deviation occurs in the adversarial update direction by directly maximizing the distance of encoded feature embeddings in the open-sourced SAM. Consequently, we propose a gradient robust loss that simulates the associated uncertainty with gradient-based noise augmentation to enhance the robustness of generated adversarial examples (AEs) towards this deviation, thus improving the transferability. Extensive experiments demonstrate the effectiveness of the proposed universal meta-initialized and gradient robust adversarial attack (UMI-GRAT) toward SAMs and their downstream models. Code is available at https://github.com/xiasong0501/GRAT.

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.

12 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 Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks
  • 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 From Pretrain to Pain: Adversarial Vulnerability of Video Foundation Models Without Task Knowledge
  • Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks cites Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2
  • Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks cites From Pretrain to Pain: Adversarial Vulnerability of Video Foundation Models Without Task Knowledge
  • BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models cites Flamingo: a Visual Language Model for Few-Shot Learning
  • Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2 cites Segment Anything
  • From Pretrain to Pain: Adversarial Vulnerability of Video Foundation Models Without Task Knowledge cites Backdoor Attacks Against No-Reference Image Quality Assessment Models via a Scalable Trigger
  • From Pretrain to Pain: Adversarial Vulnerability of Video Foundation Models Without Task Knowledge cites BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models
  • From Pretrain to Pain: Adversarial Vulnerability of Video Foundation Models Without Task Knowledge cites Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers12

  1. Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2Ziqi Zhou, Yifan Hu, Yufei Song, Zijing Li et al.NeurIPS 2025 · 17 citations
  2. Backdoor Attacks Against No-Reference Image Quality Assessment Models via a Scalable TriggerYi Yu, Song Xia, Xun Lin, Wenhan Yang et al.AAAI 2025 · 15 citations
  3. 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
  4. Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural NetworksYi Yu, Qixin Zhang, Shuhan Ye, Xun Lin et al.ICLR 2026 · 8 citations
  5. From Pretrain to Pain: Adversarial Vulnerability of Video Foundation Models Without Task KnowledgeHui Lu, Yi Yu, Song Xia, Yiming Yang et al.AAAI 2026 · 8 citations

Builds on37

  1. LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
  2. Segment AnythingAlexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao et al.ICCV 2023 · 13,211 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language ModelsJunnan Li, Dongxu Li, Silvio Savarese, Steven C. H. HoiICML 2023 · 7,873 citations
  5. Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech et al.NeurIPS 2022 · 6,707 citations

Related papers

  1. DarkSAM: Fooling Segment Anything Model to Segment NothingZiqi Zhou, Yufei Song, Minghui Li, Shengshan Hu et al.NeurIPS 2024 · 44 citations
  2. SAM Encoder Breach by Adversarial Simplicial Complex Triggers Downstream Model FailuresYi Qin, Rui Wang, Tao Huang, Tong Xiao et al.ICCV 2025
  3. Unsegment Anything by Simulating DeformationJiahao Lu, Xingyi Yang, Xinchao WangCVPR 2024 · 1 citation
  4. Robust SAM: On the Adversarial Robustness of Vision Foundation ModelsJiahuan Long, Zhengqin Xu, Tingsong Jiang, Wen Yao et al.AAAI 2025 · 5 citations
  5. ASAM: Boosting Segment Anything Model with Adversarial TuningBo Li, Haoke Xiao, Lv TangCVPR 2024
Dusk over the sea between two cliffs drawn in fine vertical lines