mlsanityData to 14 Oct 2026

Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2

arXiv 2510.24195 ↗First posted 28 Oct 2025cs.CVcited by 11

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

  1. 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
  2. 2023Segment Anythingcited by 8,234
  3. 2014Explaining and Harnessing Adversarial Examplescited by 7,364
  4. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  5. 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
  6. 2017The 2017 DAVIS Challenge on Video Object Segmentationcited by 957
  7. 2016Universal adversarial perturbationscited by 784
  8. 2020Image Segmentation Using Deep Learning: A Surveycited by 660
  9. 2018YouTube-VOS: A Large-Scale Video Object Segmentation Benchmarkcited by 383
  10. 2023Segment Anything in High Qualitycited by 376
  11. 2023Personalize Segment Anything Model with One Shotcited by 250
  12. 2023MOSE: A New Dataset for Video Object Segmentation in Complex Scenescited by 234
30 more
  1. 2023EfficientSAM: Leveraged Masked Image Pretraining for Efficient Segment Anythingcited by 188
  2. 2024Medical SAM 2: Segment medical images as video via Segment Anything Model 2cited by 154
  3. 2018Transferable Adversarial Attacks for Image and Video Object Detectioncited by 109
  4. 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 103
  5. 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 100
  6. 2024SAM2Long: Enhancing SAM 2 for Long Video Segmentation with a Training-Free Memory Treecited by 80
  7. 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
  8. 2018Deflecting Adversarial Attacks with Pixel Deflectioncited by 71
  9. 2024SAM2-UNet: Segment Anything 2 Makes Strong Encoder for Natural and Medical Image Segmentationcited by 64
  10. 2024SAM2-Adapter: Evaluating & Adapting Segment Anything 2 in Downstream Tasks: Camouflage, Shadow, Medical Image Segmentation, and Morecited by 60
  11. 2024Surgical SAM 2: Real-time Segment Anything in Surgical Video by Efficient Frame Pruningcited by 47
  12. 2023Downstream-agnostic Adversarial Examplescited by 32
  13. 2024DarkSAM: Fooling Segment Anything Model to Segment Nothingcited by 32
  14. 2019CapsuleVOS: Semi-Supervised Video Object Segmentation Using Capsule Routingcited by 29
  15. 2024Transferable Adversarial Facial Images for Privacy Protectioncited by 27
  16. 2023On the Robustness of Segment Anythingcited by 25
  17. 2025ADVEDM:Fine-grained Adversarial Attack against VLM-based Embodied Agentscited by 23
  18. 2024Securely Fine-tuning Pre-trained Encoders Against Adversarial Examplescited by 21
  19. 2024Transferable Adversarial Attacks on SAM and Its Downstream Modelscited by 21
  20. 2024SAM2Point: Segment Any 3D as Videos in Zero-shot and Promptable Mannerscited by 18
  21. 2024NumbOD: A Spatial-Frequency Fusion Attack Against Object Detectorscited by 17
  22. 2024PB-UAP: Hybrid Universal Adversarial Attack For Image Segmentationcited by 14
  23. 2024Breaking Barriers in Physical-World Adversarial Examples: Improving Robustness and Transferability via Robust Featurecited by 13
  24. 2025SAM2 for Image and Video Segmentation: A Comprehensive Surveycited by 13
  25. 2024Evaluating SAM2's Role in Camouflaged Object Detection: From SAM to SAM2cited by 12
  26. 2024Practical Region-level Attack against Segment Anything Modelscited by 9
  27. 2025Cross-Modal Transferable Image-to-Video Attack on Video Quality Metricscited by 9
  28. 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
  29. 2024Unsegment Anything by Simulating Deformationcited by 6
  30. 2024Region-Guided Attack on the Segment Anything Model (SAM)cited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 3; 2026: 8.

11 papers.