On the Robustness of Segment Anything
Not on the map. Why?
Abstract (arXiv)
Segment anything model (SAM) has presented impressive objectness identification capability with the idea of prompt learning and a new collected large-scale dataset. Given a prompt (e.g., points, bounding boxes, or masks) and an input image, SAM is able to generate valid segment masks for all objects indicated by the prompts, presenting high generalization across diverse scenarios and being a general method for zero-shot transfer to downstream vision tasks. Nevertheless, it remains unclear whether SAM may introduce errors in certain threatening scenarios. Clarifying this is of significant importance for applications that require robustness, such as autonomous vehicles. In this paper, we aim to study the testing-time robustness of SAM under adversarial scenarios and common corruptions. To this end, we first build a testing-time robustness evaluation benchmark for SAM by integrating existing public datasets. Second, we extend representative adversarial attacks against SAM and study the influence of different prompts on robustness. Third, we study the robustness of SAM under diverse corruption types by evaluating SAM on corrupted datasets with different prompts. With experiments conducted on SA-1B and KITTI datasets, we find that SAM exhibits remarkable robustness against various corruptions, except for blur-related corruption. Furthermore, SAM remains susceptible to adversarial attacks, particularly when subjected to PGD and BIM attacks. We think such a comprehensive study could highlight the importance of the robustness issues of SAM and trigger a series of new tasks for SAM as well as downstream vision tasks.
Key facts. Cited by 25 papers in the map (data through 13 Oct 2026). Builds on 27 of its 37 references that are in the map. First posted on arXiv 25 May 2023.
Builds on
27 of 37 references.
References · 27
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,588
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2023GPT-4 Technical Reportcited by 18,278
- 2023Segment Anythingcited by 8,195
- 2014Explaining and Harnessing Adversarial Examplescited by 7,336
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,379
- 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,862
- 2016V-Net: Fully Convolutional Neural Networks for Volumetric Medical Image Segmentationcited by 2,287
- 2016Adversarial examples in the physical worldcited by 1,767
- 2023Medical SAM Adapter: Adapting Segment Anything Model for Medical Image Segmentationcited by 487
- 2023Customized Segment Anything Model for Medical Image Segmentationcited by 279
- 2023Inpaint Anything: Segment Anything Meets Image Inpaintingcited by 233
15 more
- 2017Augmented Reality Meets Computer Vision : Efficient Data Generation for Urban Driving Scenescited by 122
- 2023Segment Anything Is Not Always Perfect: An Investigation of SAM on Different Real-world Applicationscited by 121
- 2023Can SAM Segment Anything? When SAM Meets Camouflaged Object Detectioncited by 99
- 2022SegPGD: An Effective and Efficient Adversarial Attack for Evaluating and Boosting Segmentation Robustnesscited by 74
- 2023Polyp-SAM: Transfer SAM for Polyp Segmentationcited by 64
- 2023SAM.MD: Zero-shot medical image segmentation capabilities of the Segment Anything Modelcited by 61
- 2023Edit Everything: A Text-Guided Generative System for Images Editingcited by 33
- 2023SkinSAM: Empowering Skin Cancer Segmentation with Segment Anything Modelcited by 32
- 2021AVA: Adversarial Vignetting Attack against Visual Recognitioncited by 29
- 2023An Empirical Study on the Robustness of the Segment Anything Model (SAM)cited by 23
- 2023Can SAM Count Anything? An Empirical Study on SAM Countingcited by 18
- 2023Any-to-Any Style Transfer: Making Picasso and Da Vinci Collaboratecited by 17
- 2020Can You Spot the Chameleon? Adversarially Camouflaging Images from Co-Salient Object Detectioncited by 14
- 2022ALA: Naturalness-aware Adversarial Lightness Attackcited by 11
- 2021Sparta: Spatially Attentive and Adversarially Robust Activationcited by 2
Built on by
Citing papers per year: 2023: 8; 2024: 10; 2025: 5; 2026: 2.
25 papers.
Sort:
By area:
- 2023Foundational Models Defining a New Era in Vision: A Survey and Outlookcited by 109
- 2024RobustSAM: Segment Anything Robustly on Degraded Imagescited by 36
- 2024DarkSAM: Fooling Segment Anything Model to Segment Nothingcited by 32
- 2023Robustness of SAM: Segment Anything Under Corruptions and Beyondcited by 31
- 2023Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptationcited by 31
- 2024SceneTAP: Scene-Coherent Typographic Adversarial Planner against Vision-Language Models in Real-World Environmentscited by 22
- 2023FAIRER: Fairness as Decision Rationale Alignmentcited by 12
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2cited by 11
- 2023TranSegPGD: Improving Transferability of Adversarial Examples on Semantic Segmentationcited by 10
- 2024Robust Box Prompt based SAM for Medical Image Segmentationcited by 9
- 2025Foreground-Covering Prototype Generation and Matching for SAM-Aided Few-Shot Segmentationcited by 9
- 2024Promptable Anomaly Segmentation with SAM Through Self-Perception Tuningcited by 7
13 more
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Surveycited by 6
- 2024Unsegment Anything by Simulating Deformationcited by 6
- 2023Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Modelscited by 5
- 2024Segment-Anything Models Achieve Zero-shot Robustness in Autonomous Drivingcited by 5
- 2024Red-Teaming Segment Anything Modelcited by 4
- 2025Robust SAM: On the Adversarial Robustness of Vision Foundation Modelscited by 4
- 2025Segment Any-Quality Images with Generative Latent Space Enhancementcited by 3
- 2023IRAD: Implicit Representation-driven Image Resampling against Adversarial Attackscited by 1
- 2024Leveraging Segment Anything Model in Identifying Buildings within Refugee Camps (SAM4Refugee) from Satellite Imagery for Humanitarian Operationscited by 1
- 2024Segment Anything for Dendrites from Electron Microscopycited by 1
- 2025SAM Encoder Breach by Adversarial Simplicial Complex Triggers Downstream Model Failurescited by 0
- 2026Towards Any-Quality Image Segmentation via Generative and Adaptive Latent Space Enhancementcited by 0
- 2026PGE-SAM: Prompt-Guided Feature Enhancement for Interactive Segmentation under Degradationcited by 0
- 2026PGE-SAM: Prompt-Guided Feature Enhancement for Interactive Segmentation under Degradation29 Jun 2026
- 2026Towards Any-Quality Image Segmentation via Generative and Adaptive Latent Space Enhancement5 Jan 2026
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM228 Oct 2025
- 2025SAM Encoder Breach by Adversarial Simplicial Complex Triggers Downstream Model Failures8 Aug 2025
- 2025Robust SAM: On the Adversarial Robustness of Vision Foundation Models11 Apr 2025
- 2025Segment Any-Quality Images with Generative Latent Space Enhancement16 Mar 2025
- 2025Foreground-Covering Prototype Generation and Matching for SAM-Aided Few-Shot Segmentation1 Jan 2025
- 2024SceneTAP: Scene-Coherent Typographic Adversarial Planner against Vision-Language Models in Real-World Environments28 Nov 2024
- 2024Promptable Anomaly Segmentation with SAM Through Self-Perception Tuning26 Nov 2024
- 2024Segment Anything for Dendrites from Electron Microscopy4 Nov 2024
- 2024DarkSAM: Fooling Segment Anything Model to Segment Nothing26 Sep 2024
- 2024Segment-Anything Models Achieve Zero-shot Robustness in Autonomous Driving19 Aug 2024
13 more
- 2024Robust Box Prompt based SAM for Medical Image Segmentation31 Jul 2024
- 2024Leveraging Segment Anything Model in Identifying Buildings within Refugee Camps (SAM4Refugee) from Satellite Imagery for Humanitarian Operations16 Jul 2024
- 2024RobustSAM: Segment Anything Robustly on Degraded Images13 Jun 2024
- 2024Unsegment Anything by Simulating Deformation3 Apr 2024
- 2024Red-Teaming Segment Anything Model2 Apr 2024
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Survey11 Dec 2023
- 2023Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptation6 Dec 2023
- 2023TranSegPGD: Improving Transferability of Adversarial Examples on Semantic Segmentation3 Dec 2023
- 2023Segment (Almost) Nothing: Prompt-Agnostic Adversarial Attacks on Segmentation Models24 Nov 2023
- 2023IRAD: Implicit Representation-driven Image Resampling against Adversarial Attacks18 Oct 2023
- 2023Foundational Models Defining a New Era in Vision: A Survey and Outlook25 Jul 2023
- 2023FAIRER: Fairness as Decision Rationale Alignment27 Jun 2023
- 2023Robustness of SAM: Segment Anything Under Corruptions and Beyond13 Jun 2023
- 2024Red-Teaming Segment Anything Modelcited by 4
- 2024Red-Teaming Segment Anything Model2 Apr 2024
- 2023Foundational Models Defining a New Era in Vision: A Survey and Outlookcited by 109
- 2024RobustSAM: Segment Anything Robustly on Degraded Imagescited by 36
- 2024DarkSAM: Fooling Segment Anything Model to Segment Nothingcited by 32
- 2023Robustness of SAM: Segment Anything Under Corruptions and Beyondcited by 31
- 2023Improving the Generalization of Segmentation Foundation Model under Distribution Shift via Weakly Supervised Adaptationcited by 31
- 2023FAIRER: Fairness as Decision Rationale Alignmentcited by 12
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM2cited by 11
- 2023TranSegPGD: Improving Transferability of Adversarial Examples on Semantic Segmentationcited by 10
- 2024Robust Box Prompt based SAM for Medical Image Segmentationcited by 9
- 2025Foreground-Covering Prototype Generation and Matching for SAM-Aided Few-Shot Segmentationcited by 9
- 2024Promptable Anomaly Segmentation with SAM Through Self-Perception Tuningcited by 7
- 2023Large Scale Foundation Models for Intelligent Manufacturing Applications: A Surveycited by 6
12 most cited of 22 All 22 (JSON)
- 2026PGE-SAM: Prompt-Guided Feature Enhancement for Interactive Segmentation under Degradation29 Jun 2026
- 2026Towards Any-Quality Image Segmentation via Generative and Adaptive Latent Space Enhancement5 Jan 2026
- 2025Vanish into Thin Air: Cross-prompt Universal Adversarial Attacks for SAM228 Oct 2025
- 2025SAM Encoder Breach by Adversarial Simplicial Complex Triggers Downstream Model Failures8 Aug 2025
- 2025Robust SAM: On the Adversarial Robustness of Vision Foundation Models11 Apr 2025
- 2025Foreground-Covering Prototype Generation and Matching for SAM-Aided Few-Shot Segmentation1 Jan 2025
- 2024Promptable Anomaly Segmentation with SAM Through Self-Perception Tuning26 Nov 2024
- 2024Segment Anything for Dendrites from Electron Microscopy4 Nov 2024
- 2024DarkSAM: Fooling Segment Anything Model to Segment Nothing26 Sep 2024
- 2024Segment-Anything Models Achieve Zero-shot Robustness in Autonomous Driving19 Aug 2024
- 2024Robust Box Prompt based SAM for Medical Image Segmentation31 Jul 2024
- 2024Leveraging Segment Anything Model in Identifying Buildings within Refugee Camps (SAM4Refugee) from Satellite Imagery for Humanitarian Operations16 Jul 2024
12 newest of 22 All 22 (JSON)