Attack-SAM: Towards Attacking Segment Anything Model With Adversarial Examples
Not on the map. Why?
Abstract (arXiv)
Segment Anything Model (SAM) has attracted significant attention recently, due to its impressive performance on various downstream tasks in a zero-short manner. Computer vision (CV) area might follow the natural language processing (NLP) area to embark on a path from task-specific vision models toward foundation models. However, deep vision models are widely recognized as vulnerable to adversarial examples, which fool the model to make wrong predictions with imperceptible perturbation. Such vulnerability to adversarial attacks causes serious concerns when applying deep models to security-sensitive applications. Therefore, it is critical to know whether the vision foundation model SAM can also be fooled by adversarial attacks. To the best of our knowledge, our work is the first of its kind to conduct a comprehensive investigation on how to attack SAM with adversarial examples. With the basic attack goal set to mask removal, we investigate the adversarial robustness of SAM in the full white-box setting and transfer-based black-box settings. Beyond the basic goal of mask removal, we further investigate and find that it is possible to generate any desired mask by the adversarial attack.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 39 of its 44 references that are in the map. First posted on arXiv 1 May 2023.
Builds on
39 of 44 references.
References · 39
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Segment Anythingcited by 8,158
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2013Intriguing properties of neural networkscited by 5,114
- 2022BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generationcited by 4,310
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2021Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervisioncited by 3,848
27 more
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2016Adversarial Machine Learning at Scalecited by 934
- 2017Ensemble Adversarial Training: Attacks and Defensescited by 833
- 2021Florence: A New Foundation Model for Computer Visioncited by 802
- 2018Improving Transferability of Adversarial Examples with Input Diversitycited by 591
- 2016Delving into Transferable Adversarial Examples and Black-box Attackscited by 530
- 2023Text-to-image Diffusion Models in Generative AI: A Surveycited by 264
- 2021Understanding Robustness of Transformers for Image Classificationcited by 250
- 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
- 2023Track Anything: Segment Anything Meets Videoscited by 230
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2020Skip Connections Matter: On the Transferability of Adversarial Examples Generated with ResNetscited by 165
- 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 99
- 2023Anything-3D: Towards Single-view Anything Reconstruction in the Wildcited by 91
- 2023A Complete Survey on Generative AI (AIGC): Is ChatGPT from GPT-4 to GPT-5 All You Need?cited by 84
- 2020Backpropagating Linearly Improves Transferability of Adversarial Examplescited by 79
- 2023A Survey on Audio Diffusion Models: Text To Speech Synthesis and Enhancement in Generative AIcited by 68
- 2022A Survey on Masked Autoencoder for Self-supervised Learning in Vision and Beyondcited by 58
- 2021Adversarial Robustness Comparison of Vision Transformer and MLP-Mixer to CNNscited by 57
- 2023Input Augmentation with SAM: Boosting Medical Image Segmentation with Segmentation Foundation Modelcited by 56
- 2023One Small Step for Generative AI, One Giant Leap for AGI: A Complete Survey on ChatGPT in AIGC Eracited by 55
- 2022Grad-StyleSpeech: Any-speaker Adaptive Text-to-Speech Synthesis with Diffusion Modelscited by 34
- 2023A Survey on Graph Diffusion Models: Generative AI in Science for Molecule, Protein and Materialcited by 34
- 2023Segment Anything Model (SAM) Meets Glass: Mirror and Transparent Objects Cannot Be Easily Detectedcited by 34
- 2022Investigating Top-k White-Box and Transferable Black-box Attackcited by 26
- 2023Segment Anything in Non-Euclidean Domains: Challenges and Opportunitiescited by 16
Built on by
Citing papers per year: 2024: 1; 2025: 4.
5 papers.
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safetycited by 63
- 2025ROS-SAM: High-Quality Interactive Segmentation for Remote Sensing Moving Objectcited by 15
- 2024Red-Teaming Segment Anything Modelcited by 4
- 2025Creating Blank Canvas Against AI-enabled Image Forgerycited by 1
- 2025Malicious Image Analysis via Vision-Language Segmentation Fusion: Detection, Element, and Location in One-shotcited by 0
- 2025Malicious Image Analysis via Vision-Language Segmentation Fusion: Detection, Element, and Location in One-shot4 Dec 2025
- 2025Creating Blank Canvas Against AI-enabled Image Forgery27 Nov 2025
- 2025ROS-SAM: High-Quality Interactive Segmentation for Remote Sensing Moving Object15 Mar 2025
- 2025Safety at Scale: A Comprehensive Survey of Large Model and Agent Safety2 Feb 2025
- 2024Red-Teaming Segment Anything Model2 Apr 2024