[Paper Review] On the Robustness of Segment Anything
This paper evaluates the test-time robustness of the Segment Anything Model (SAM) under adversarial attacks and common corruptions using a newly constructed benchmark on SA-1B and KITTI datasets. Despite strong generalization, SAM shows high susceptibility to PGD and BIM adversarial attacks, while remaining robust to most corruptions except blur-related ones, highlighting critical vulnerabilities for safety-critical applications like autonomous driving.
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.
Motivation & Objective
- To investigate the test-time robustness of the Segment Anything Model (SAM) under adversarial scenarios and common corruptions.
- To establish a comprehensive evaluation benchmark integrating public datasets (SA-1B and KITTI) for robustness testing.
- To analyze the impact of different prompt types (points, bounding boxes, masks) on SAM's robustness under corruption and adversarial conditions.
- To assess SAM's performance on small and large objects separately in out-of-distribution (OOD) settings, particularly in autonomous driving contexts.
- To extend segmentation-specific adversarial attacks (e.g., SegPGD) beyond classification-based methods for more realistic evaluation.
Proposed method
- Constructed a test-time robustness evaluation benchmark by integrating the SA-1B and KITTI datasets for both in-distribution (IID) and out-of-distribution (OOD) evaluation.
- Extended adversarial attack methods—FGSM, PGD, BIM, and SegPGD—specifically for segmentation tasks to evaluate robustness under human-designed perturbations.
- Evaluated SAM’s performance under 15 common corruptions (e.g., Gaussian noise, blur, fog, snow) across five severity levels using the ImageNet-C and KITTI-C datasets.
- Performed ablation studies on object size (small vs. large) in KITTI to analyze robustness differences across object scales.
- Used mean Intersection over Union (mIoU) as the primary evaluation metric for both foreground and background segmentation masks.
- Visualized adversarial and corrupted results across diverse object categories (e.g., windows, people, cars) to qualitatively assess failure modes.
Experimental results
Research questions
- RQ1How does SAM perform under various common corruptions, and which corruption types most severely degrade its segmentation accuracy?
- RQ2To what extent is SAM vulnerable to adversarial attacks, particularly PGD and BIM, in the context of instance segmentation?
- RQ3How does prompt type (e.g., point, bounding box, mask) influence SAM’s robustness under adversarial and corrupted conditions?
- RQ4Does SAM’s robustness differ significantly between small and large objects in real-world, out-of-distribution scenarios like autonomous driving?
- RQ5Can segmentation-specific adversarial attacks (e.g., SegPGD) induce more severe failures than classification-based attacks in SAM?
Key findings
- SAM exhibits remarkable robustness against most common corruptions, including Gaussian noise, shot noise, impulse noise, fog, snow, and brightness/contrast changes, with mIoU values above 0.99 for clean and moderately corrupted inputs.
- Blur-related corruptions—especially defocus blur, frosted glass blur, and zoom blur—significantly degrade SAM’s performance, with foreground mIoU dropping below 0.3 at severity level 5.
- SAM is highly vulnerable to PGD and BIM adversarial attacks, with foreground mIoU decreasing to as low as 0.2626 under PGD attack on small objects in KITTI.
- The SegPGD attack causes mask shrinkage, while PGD and BIM attacks lead to over-segmentation, often exceeding the original object boundaries.
- On small objects in KITTI, adversarial attacks (PGD, BIM, SegPGD) cause substantial performance drops, with foreground mIoU falling below 0.3 at severity level 5.
- Despite robustness to most corruptions, the degradation under blur and adversarial attacks indicates critical vulnerabilities for safety-critical applications like autonomous vehicles.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.