Skip to main content
QUICK REVIEW

[论文解读] Attack-SAM: Towards Attacking Segment Anything Model With Adversarial Examples

Chenshuang Zhang, Chaoning Zhang|arXiv (Cornell University)|May 1, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 3
一句话总结

本文提出 Attack-SAM,这是对分割一切模型(SAM)对抗性攻击的首次全面研究。它引入了一种基于新型 ClipMSE 损失的白盒攻击框架,以移除预测的分割掩码,并证明 SAM 易受目标攻击和迁移攻击的影响,包括在不同提示和图像上生成任意期望的掩码。

ABSTRACT

Segment Anything Model (SAM) has attracted significant attention recently, due to its impressive performance on various downstream tasks in a zero-short manner. Computer vision (CV) area might follow the natural language processing (NLP) area to embark on a path from task-specific vision models toward foundation models. However, deep vision models are widely recognized as vulnerable to adversarial examples, which fool the model to make wrong predictions with imperceptible perturbation. Such vulnerability to adversarial attacks causes serious concerns when applying deep models to security-sensitive applications. Therefore, it is critical to know whether the vision foundation model SAM can also be fooled by adversarial attacks. To the best of our knowledge, our work is the first of its kind to conduct a comprehensive investigation on how to attack SAM with adversarial examples. With the basic attack goal set to mask removal, we investigate the adversarial robustness of SAM in the full white-box setting and transfer-based black-box settings. Beyond the basic goal of mask removal, we further investigate and find that it is possible to generate any desired mask by the adversarial attack.

研究动机与目标

  • 研究分割一切模型(SAM),一种视觉基础模型,在基于提示的分割掩码预测背景下其对抗性鲁棒性。
  • 确定在零样本、基于提示的分割任务中广泛应用的 SAM 是否可被对抗性样本欺骗。
  • 探索攻击者无法访问提示或模型权重的迁移式攻击设置。
  • 检查对抗性样本是否可用于生成任意期望的掩码,而不仅限于移除现有掩码。
  • 评估标准对抗性攻击方法(如 FGSM、PGD)适配到分割掩码预测任务而非标签预测任务的可行性与成功率。

提出的方法

  • 提出一种白盒攻击框架,目标为掩码移除,将其建模为一个带有新型 ClipMSE 损失函数的优化问题。
  • 使用 ClipMSE 损失最小化对抗性掩码与目标掩码(例如,用于移除的空掩码)之间的 L2 距离,同时保持图像语义不变。
  • 采用 FGSM 和 PGD 等标准对抗性攻击算法,对输入图像添加扰动以欺骗 SAM 的掩码预测。
  • 通过在攻击生成过程中使用多个提示,不依赖输入点提示知识,开展跨提示迁移攻击。
  • 通过利用在语义分割模型上训练的对抗性样本,对 SAM 的基于提示的掩码预测实施跨任务迁移攻击。
  • 设计三种生成期望掩码的设置:(1) 在随机位置手动设计掩码,(2) 使用相同图像但不同提示生成掩码,(3) 使用不同图像但随机提示生成掩码。

实验结果

研究问题

  • RQ1在完全白盒设置下,对抗性样本能否成功移除 SAM 中的预测掩码?
  • RQ2在不知道输入提示的情况下(即跨提示迁移),是否仍可发起有效的对抗性攻击?
  • RQ3在语义分割模型上训练的对抗性样本能否成功迁移至攻击 SAM 的基于提示的掩码预测(即跨任务迁移)?
  • RQ4对抗性攻击是否可用于在 SAM 中生成任意期望的掩码,而不仅限于移除原始掩码?
  • RQ5与传统标签预测任务中的攻击相比,对抗性攻击在分割掩码预测任务中的成功率和视觉保真度表现如何?

主要发现

  • 在完全白盒设置下,SAM 易受对抗性攻击影响,通过所提出的 ClipMSE 损失和标准 PGD/FGSM 方法成功实现了掩码移除。
  • 即使在未知输入点提示的情况下,跨提示迁移攻击仍能成功,表明对抗性样本在不同提示间具有高度可迁移性。
  • 跨任务迁移攻击表现出部分成功,证明了语义分割模型生成的对抗性样本可在一定程度上影响 SAM 的掩码预测。
  • 对抗性攻击可在三种设置下生成任意期望掩码:(1) 手动设计的掩码,(2) 使用相同图像但不同提示生成的掩码,(3) 使用不同图像但随机提示生成的掩码。
  • 在某些情况下,生成的掩码在非目标区域包含小范围噪声或伪影,表明攻击精度仍有提升空间。
  • 本研究揭示 SAM 的掩码预测易受定向攻击影响,暴露出视觉基础模型中一个关键的安全漏洞。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。