Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2
Not on the map. Why?
Abstract (arXiv)
Recent studies reveal the vulnerability of the image segmentation foundation model SAM to adversarial examples. Its successor, SAM2, has attracted significant attention due to its strong generalization capability in video segmentation. However, its robustness remains unexplored, and it is unclear whether existing attacks on SAM can be directly transferred to SAM2. In this paper, we first analyze the performance gap of existing attacks between SAM and SAM2 and highlight two key challenges arising from their architectural differences: directional guidance from the prompt and semantic entanglement across consecutive frames. To address these issues, we propose UAP-SAM2, the first cross-prompt universal adversarial attack against SAM2 driven by dual semantic deviation. For cross-prompt transferability, we begin by designing a target-scanning strategy that divides each frame into k regions, each randomly assigned a prompt, to reduce prompt dependency during optimization. For effectiveness, we design a dual semantic deviation framework that optimizes a UAP by distorting the semantics within the current frame and disrupting the semantic consistency across consecutive frames. Extensive experiments on six datasets across two segmentation tasks demonstrate the effectiveness of the proposed method for SAM2. The comparative results show that UAP-SAM2 significantly outperforms state-of-the-art (SOTA) attacks by a large margin.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 42 of its 49 references that are in the map. First posted on arXiv 28 Oct 2025.
Builds on
42 of 49 references.
References · 42
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2023Segment Anythingcited by 8,234
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2017The 2017 DAVIS Challenge on Video Object Segmentationcited by 957
- 2016Universal adversarial perturbationscited by 784
- 2020Image Segmentation Using Deep Learning: A Surveycited by 660
- 2018YouTube-VOS: A Large-Scale Video Object Segmentation Benchmarkcited by 383
- 2023Segment Anything in High Qualitycited by 376
- 2023Personalize Segment Anything Model with One Shotcited by 250
- 2023MOSE: A New Dataset for Video Object Segmentation in Complex Scenescited by 234
30 more
- 2023EfficientSAM: Leveraged Masked Image Pretraining for Efficient Segment Anythingcited by 188
- 2024Medical SAM 2: Segment medical images as video via Segment Anything Model 2cited by 154
- 2018Transferable Adversarial Attacks for Image and Video Object Detectioncited by 109
- 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 103
- 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 100
- 2024SAM2Long: Enhancing SAM 2 for Long Video Segmentation with a Training-Free Memory Treecited by 80
- 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
- 2018Deflecting Adversarial Attacks with Pixel Deflectioncited by 71
- 2024SAM2-UNet: Segment Anything 2 Makes Strong Encoder for Natural and Medical Image Segmentationcited by 64
- 2024SAM2-Adapter: Evaluating & Adapting Segment Anything 2 in Downstream Tasks: Camouflage, Shadow, Medical Image Segmentation, and Morecited by 60
- 2024Surgical SAM 2: Real-time Segment Anything in Surgical Video by Efficient Frame Pruningcited by 47
- 2023Downstream-agnostic Adversarial Examplescited by 32
- 2024DarkSAM: Fooling Segment Anything Model to Segment Nothingcited by 32
- 2019CapsuleVOS: Semi-Supervised Video Object Segmentation Using Capsule Routingcited by 29
- 2024Transferable Adversarial Facial Images for Privacy Protectioncited by 27
- 2023On the Robustness of Segment Anythingcited by 25
- 2025ADVEDM:Fine-grained Adversarial Attack against VLM-based Embodied Agentscited by 23
- 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examplescited by 21
- 2024Transferable Adversarial Attacks on SAM and Its Downstream Modelscited by 21
- 2024SAM2Point: Segment Any 3D as Videos in Zero-shot and Promptable Mannerscited by 18
- 2024NumbOD: A Spatial-Frequency Fusion Attack Against Object Detectorscited by 17
- 2024PB-UAP: Hybrid Universal Adversarial Attack For Image Segmentationcited by 14
- 2024Breaking Barriers in Physical-World Adversarial Examples: Improving Robustness and Transferability via Robust Featurecited by 13
- 2025SAM2 for Image and Video Segmentation: A Comprehensive Surveycited by 13
- 2024Evaluating SAM2's Role in Camouflaged Object Detection: From SAM to SAM2cited by 12
- 2024Practical Region-level Attack against Segment Anything Modelscited by 9
- 2025Cross-Modal Transferable Image-to-Video Attack on Video Quality Metricscited by 9
- 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
- 2024Unsegment Anything by Simulating Deformationcited by 6
- 2024Region-Guided Attack on the Segment Anything Model (SAM)cited by 2
Built on by
Citing papers per year: 2025: 3; 2026: 8.
11 papers.
- 2025When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Modelscited by 13
- 2026Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networkscited by 5
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustnesscited by 3
- 2025UFVideo: Towards Unified Fine-Grained Video Cooperative Understanding with Large Language Modelscited by 2
- 2025Dual-View Inference Attack: Machine Unlearning Amplifies Privacy Exposurecited by 1
- 2026Universal Adversarial Attacks against Closed-Source MLLMs via Target-View Routed Meta Optimizationcited by 1
- 2026Transferable Physical-World Adversarial Patches Against Object Detection in Autonomous Drivingcited by 1
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Modelscited by 0
- 2026VFACamou: View-Fused Adversarial Camouflage for Environment-Adaptive Physical Evasioncited by 0
- 2026Universal Concept Disruption for SAM3 Image Segmentationcited by 0
- 2026Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentationcited by 0
- 2026Universal Cross-Prompt Adversarial Attacks on Promptable Concept Segmentation30 Sep 2026
- 2026Universal Concept Disruption for SAM3 Image Segmentation6 Aug 2026
- 2026VFACamou: View-Fused Adversarial Camouflage for Environment-Adaptive Physical Evasion18 Jun 2026
- 2026DarkLLM: Learning Language-Driven Adversarial Attacks with Large Language Models15 May 2026
- 2026Transferable Physical-World Adversarial Patches Against Object Detection in Autonomous Driving25 Apr 2026
- 2026Time Is All It Takes: Spike-Retiming Attacks on Event-Driven Spiking Neural Networks3 Feb 2026
- 2026Universal Adversarial Attacks against Closed-Source MLLMs via Target-View Routed Meta Optimization30 Jan 2026
- 2026Erosion Attack for Adversarial Training to Enhance Semantic Segmentation Robustness21 Jan 2026
- 2025Dual-View Inference Attack: Machine Unlearning Amplifies Privacy Exposure18 Dec 2025
- 2025UFVideo: Towards Unified Fine-Grained Video Cooperative Understanding with Large Language Models12 Dec 2025
- 2025When Robots Obey the Patch: Universal Transferable Patch Attacks on Vision-Language-Action Models26 Nov 2025