Introduction
Meta’s Segment Anything Model (SAM) represents a significant leap in zero-shot computer vision, enabling precise object segmentation through simple prompts. However, as foundation models move toward deployment in safety-critical domains like autonomous driving and medical imaging, understanding their robustness is paramount. This paper provides a comprehensive evaluation of SAM's performance across "the messy real world," testing its limits against stylistic variations, common image corruptions, physical occlusions, and adversarial attacks.
Methodology
The researchers subjected SAM (evaluating ViT-B, ViT-L, and ViT-H backbones) to a rigorous "stress test" using four primary approaches:
- Style Transfer: Using the AdaIn algorithm to alter image textures while maintaining shapes, testing for potential texture bias.
- Common Corruptions: Applying 15 types of corruptions (noise, blur, weather, digital) across five severity levels.
- Local Occlusion: Simulating partially hidden objects by replacing random image patches with Gaussian noise (10% to 80% ratios).
- Adversarial Attacks: Implementing both visible local patches and invisible global perturbations (FGSM, PGD-20) to deceive the model.
Style and Texture Robustness
Contrary to some hypotheses that SAM might be overly reliant on texture, the study found it remarkably robust to stylistic changes. Even when objects were rendered in artistic or abstract styles, SAM consistently identified the underlying geometric shapes. This suggests that the model's internal representations are more shape-biased than previously assumed.
Common Corruptions and Occlusion
While SAM handles most noises and blurs effectively, maintaining a mean Intersection over Union (mIoU) of approximately 0.7 even at high severity, it has a distinct weakness: zoom blur. The severe distortion from simulated rapid zooming causes performance to drop significantly, with mIoU falling to roughly 0.35.
Regarding occlusion, SAM remains reliable up to 60% coverage. However, performance degrades sharply at 80% occlusion, where mIoU drops to between 0.10 and 0.22, establishing a clear boundary for its reliability in cluttered environments.
Adversarial Vulnerability
The most critical finding is SAM’s extreme fragility against adversarial attacks. Tiny, human-imperceptible perturbations can effectively "blind" the model. Under a global PGD-20 attack at a perturbation magnitude of 8.0/255, the ViT-B model's mIoU plummeted to 0.0004, rendering it effectively useless. Larger backbones like ViT-H show slightly better resistance but remain highly vulnerable to malicious noise.
Conclusion
SAM is a powerful tool with impressive natural robustness to style and most common corruptions. However, its vulnerability to zoom blur and its near-total failure under adversarial conditions highlight areas for improvement. Future research should prioritize adversarial training and the development of more inherently shape-biased architectures to ensure reliability in adversarial or high-stakes environments.
Summary updated