Skip to main content
QUICK REVIEW

[Paper Review] Robustness of SAM: Segment Anything Under Corruptions and Beyond

Yu Qiao, Chaoning Zhang|arXiv (Cornell University)|Jun 13, 2023
Adversarial Robustness in Machine LearningComputer Science7 citations
TL;DR

This paper provides the first comprehensive evaluation of Segment Anything Model (SAM) robustness under diverse corruptions, occlusions, and adversarial attacks. It finds SAM is robust to most common corruptions and moderate occlusions but highly vulnerable to both local adversarial patch attacks and global imperceptible adversarial attacks, especially under PGD-based perturbations.

ABSTRACT

Segment anything model (SAM), as the name suggests, is claimed to be capable of cutting out any object and demonstrates impressive zero-shot transfer performance with the guidance of prompts. However, there is currently a lack of comprehensive evaluation regarding its robustness under various corruptions. Understanding the robustness of SAM across different corruption scenarios is crucial for its real-world deployment. Prior works show that SAM is biased towards texture (style) rather than shape, motivated by which we start by investigating its robustness against style transfer, which is synthetic corruption. Following by interpreting the effects of synthetic corruption as style changes, we proceed to conduct a comprehensive evaluation for its robustness against 15 types of common corruption. These corruptions mainly fall into categories such as digital, noise, weather, and blur, and within each corruption category, we explore 5 severity levels to simulate real-world corruption scenarios. Beyond the corruptions, we further assess the robustness of SAM against local occlusion and local adversarial patch attacks. To the best of our knowledge, our work is the first of its kind to evaluate the robustness of SAM under style change, local occlusion, and local adversarial patch attacks. Given that patch attacks visible to human eyes are easily detectable, we further assess its robustness against global adversarial attacks that are imperceptible to human eyes. Overall, this work provides a comprehensive empirical study of the robustness of SAM, evaluating its performance under various corruptions and extending the assessment to critical aspects such as local occlusion, local adversarial patch attacks, and global adversarial attacks. These evaluations yield valuable insights into the practical applicability and effectiveness of SAM in addressing real-world challenges.

Motivation & Objective

  • To evaluate the robustness of Segment Anything Model (SAM) under various real-world and synthetic corruptions.
  • To investigate SAM's performance under local occlusion and local adversarial patch attacks, which are relevant to real-world deployment challenges.
  • To assess SAM's vulnerability to global adversarial attacks with imperceptible perturbations, particularly under point and box prompts.
  • To understand the impact of style transfer as a proxy for synthetic corruption and its effect on SAM's zero-shot segmentation performance.
  • To provide empirical insights into SAM's practical limitations and strengths for real-world vision applications.

Proposed method

  • Evaluated SAM's robustness under 15 types of common corruptions (digital, noise, weather, blur) across 5 severity levels using standard benchmarking protocols.
  • Used style transfer as a synthetic corruption to assess SAM's sensitivity to texture vs. shape, with 5 different style images per content image.
  • Conducted local occlusion experiments with varying occlusion rates (up to 80%) to test SAM’s resilience to partial image masking.
  • Applied local image-agnostic adversarial patch attacks to evaluate robustness under visible, localized perturbations.
  • Performed global adversarial attacks using FGSM and PGD with varying perturbation magnitudes (δ from 0.1 to 8.0) to test imperceptible attack robustness.
  • Used mIoU, precision, recall, and F1-score as evaluation metrics across all attack and corruption scenarios, with visualizations for qualitative analysis.

Experimental results

Research questions

  • RQ1How does SAM perform under synthetic style transfer corruptions, and does it maintain robustness when image content is altered in style but preserved in shape?
  • RQ2How robust is SAM to real-world common corruptions such as noise, blur, and weather effects across multiple severity levels?
  • RQ3To what extent is SAM resilient to local occlusion, and at what occlusion ratio does performance degrade significantly?
  • RQ4How effective are local adversarial patch attacks in degrading SAM’s segmentation performance, and how do patch size and location affect the outcome?
  • RQ5How vulnerable is SAM to global, imperceptible adversarial attacks (FGSM and PGD), and does the attack strength (δ) correlate with performance degradation?

Key findings

  • SAM demonstrates moderate robustness to most common corruptions, including noise, blur, and weather effects, but shows significant performance degradation under zoom blur.
  • SAM maintains reasonable performance under local occlusion up to 60% occlusion ratio, but performance drops sharply at 80% occlusion.
  • Local adversarial patch attacks effectively degrade SAM’s segmentation performance, with results showing that patch size and location have relatively limited influence on attack success.
  • SAM is highly vulnerable to global adversarial attacks: mIoU scores drop close to zero under PGD-20 attacks with δ ≥ 3.0, and F1-scores fall below 0.3 under similar conditions.
  • The PGD attack consistently outperforms FGSM in degrading SAM’s performance, indicating that iterative attacks are more effective than single-step attacks.
  • Even with box-based prompts, SAM remains susceptible to global adversarial attacks, suggesting that prompt type does not significantly improve robustness against such threats.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.