Black-Box Targeted Adversarial Attack on Segment Anything (SAM)

Sheng Zheng, Chaoning Zhang*, Xinhong Hao

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

1 Citation (Scopus)

Abstract

Deep recognition models are widely vulnerable to adversarial examples, which change the model output by adding quasi-imperceptible perturbation to the image input. Recently, Segment Anything Model (SAM) has emerged to become a popular foundation model in computer vision due to its impressive generalization to unseen data and tasks. Realizing flexible attacks on SAM is beneficial for understanding the robustness of SAM in the adversarial context. To this end, this work aims to achieve a targeted adversarial attack (TAA) on SAM. Specifically, under a specific prompt, the goal is to make the predicted mask of an adversarial example resemble that of a given target image. The task of TAA on SAM has been realized in the white-box setup by assuming access to prompt and model, which is thus less practical. To address the issue of prompt dependence, we propose a simple yet effective approach by only attacking the image encoder. Moreover, we propose a novel regularization loss to enhance the cross-model transferability by increasing the feature dominance of adversarial images over random natural images. Extensive experiments verify the effectiveness of our proposed method to conduct a successful black-box TAA on SAM.

Original languageEnglish
Pages (from-to)1901-1913
Number of pages13
JournalIEEE Transactions on Multimedia
Volume27
DOIs
Publication statusPublished - 2025
Externally publishedYes

Keywords

  • black-box
  • practical
  • robustness
  • segment anything model (SAM)
  • Targeted adversarial attack

Cite this