Red-Teaming Segment Anything Model
On the map: LLM safety and security → Backdoor and data poisoning attacks
Abstract (arXiv)
Foundation models have emerged as pivotal tools, tackling many complex tasks through pre-training on vast datasets and subsequent fine-tuning for specific applications. The Segment Anything Model is one of the first and most well-known foundation models for computer vision segmentation tasks. This work presents a multi-faceted red-teaming analysis that tests the Segment Anything Model against challenging tasks: (1) We analyze the impact of style transfer on segmentation masks, demonstrating that applying adverse weather conditions and raindrops to dashboard images of city roads significantly distorts generated masks. (2) We focus on assessing whether the model can be used for attacks on privacy, such as recognizing celebrities' faces, and show that the model possesses some undesired knowledge in this task. (3) Finally, we check how robust the model is to adversarial attacks on segmentation masks under text prompts. We not only show the effectiveness of popular white-box attacks and resistance to black-box attacks but also introduce a novel approach - Focused Iterative Gradient Attack (FIGA) that combines white-box approaches to construct an efficient attack resulting in a smaller number of modified pixels. All of our testing methods and analyses indicate a need for enhanced safety measures in foundation models for image segmentation.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 43 of its 51 references that are in the map. First posted on arXiv 2 Apr 2024.
Builds on
43 of 51 references.
References · 43
- 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
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Segment Anythingcited by 8,158
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2022Generative Adversarial Networkscited by 5,603
- 2013Intriguing properties of neural networkscited by 5,114
- 2016The Cityscapes Dataset for Semantic Urban Scene Understandingcited by 4,427
31 more
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2014Deep Learning Face Attributes in the Wildcited by 3,679
- 2023Grounding DINO: Marrying DINO with Grounded Pre-Training for Open-Set Object Detectioncited by 3,274
- 2016Wide Residual Networkscited by 3,057
- 2019Optuna: A Next-generation Hyperparameter Optimization Frameworkcited by 2,455
- 2019Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regressioncited by 1,361
- 2022Red Teaming Language Models with Language Modelscited by 983
- 2016Universal adversarial perturbationscited by 774
- 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 485
- 2019Simple Black-box Adversarial Attackscited by 249
- 2023Glaze: Protecting Artists from Style Mimicry by Text-to-Image Modelscited by 200
- 2020Neuron Shapley: Discovering the Responsible Neuronscited by 98
- 2023Machine Unlearning: Solutions and Challengescited by 85
- 2018Maximal Jacobian-based Saliency Map Attackcited by 46
- 2022Adaptive Testing of Computer Vision Modelscited by 39
- 2023Robustness of SAM: Segment Anything Under Corruptions and Beyondcited by 30
- 2022Towards Better Understanding Attribution Methodscited by 28
- 2023On the Robustness of Segment Anythingcited by 24
- 2023An Empirical Study on the Robustness of the Segment Anything Model (SAM)cited by 23
- 2021Focus! Rating XAI Methods and Finding Biasescited by 20
- 2023A Survey on the Robustness of Computer Vision Models against Common Corruptionscited by 20
- 2023Ensemble-based Blackbox Attacks on Dense Predictioncited by 16
- 2023Robustness of Segment Anything Model (SAM) for Autonomous Driving in Adverse Weather Conditionscited by 14
- 2023Black-box Targeted Adversarial Attack on Segment Anything (SAM)cited by 13
- 2023Towards Reliable Evaluation and Fast Training of Robust Semantic Segmentation Modelscited by 12
- 2023SAM4UDASS: When SAM Meets Unsupervised Domain Adaptive Semantic Segmentation in Intelligent Vehiclescited by 12
- 2023Visual Content Privacy Protection: A Surveycited by 11
- 2023Understanding Segment Anything Model: SAM is Biased Towards Texture Rather than Shapecited by 10
- 2023Attack-SAM: Towards Attacking Segment Anything Model With Adversarial Examplescited by 5
- 2023SAM Meets UAP: Attacking Segment Anything Model With Universal Adversarial Perturbationcited by 4
- 2024Applying Unsupervised Semantic Segmentation to High-Resolution UAV Imagery for Enhanced Road Scene Parsingcited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 3.
4 papers.
- 2024Aggregated Attributions for Explanatory Analysis of 3D Segmentation Modelscited by 5
- 2025Robust SAM: On the Adversarial Robustness of Vision Foundation Modelscited by 4
- 2025Geometric Red-Teaming for Robotic Manipulationcited by 4
- 2025Birds look like cars: Adversarial analysis of intrinsically interpretable deep learningcited by 3
- 2025Geometric Red-Teaming for Robotic Manipulation15 Sep 2025
- 2025Robust SAM: On the Adversarial Robustness of Vision Foundation Models11 Apr 2025
- 2025Birds look like cars: Adversarial analysis of intrinsically interpretable deep learning11 Mar 2025
- 2024Aggregated Attributions for Explanatory Analysis of 3D Segmentation Models23 Jul 2024