arXiv:2410.20197cs.LGcs.CR2024-10NeurIPS被引 28

仅用开源SAM即可攻击其下游模型,且效果显著。

Transferable Adversarial Attacks on SAM and Its Downstream Models

论文配图:Transferable Adversarial Attacks on SAM and Its Downstream Models
图 1 · 摘自论文原文
  • 利用SAM固有漏洞生成通用扰动,无需了解下游数据。
  • 新方法在多个下游模型上攻击成功率超85%。
  • 适合研究模型安全与对抗样本防御的开发者。

大模型广泛应用面临两难:虽可通过微调利用其泛化能力,但开放性也带来恶意使用风险。本文首次探索仅基于开源的Segment Anything Model(SAM)攻击其微调后的下游模型的可能性。不同于传统需构建近似代理模型的方法,我们证明即使不访问下游任务和训练数据,仍存在对抗攻击威胁。为此提出通用元初始化(UMI)算法,从基础模型中提取内在脆弱性作为先验知识,指导扰动生成。通过分析开源SAM与下游模型在攻击过程中的梯度差异,理论证明直接最大化特征嵌入距离会导致更新方向偏差。因此提出梯度鲁棒损失,模拟梯度噪声不确定性以增强对抗样本的鲁棒性,提升迁移性。大量实验验证了提出的UMI-GRAT方法对SAM及其下游模型的有效性。代码已公开于https://github.com/xiasong0501/GRAT。

原文摘要 · Abstract (English)

The utilization of large foundational models has a dilemma: while fine-tuning downstream tasks from them holds promise for making use of the well-generalized knowledge in practical applications, their open accessibility also poses threats of adverse usage. This paper, for the first time, explores the feasibility of adversarial attacking various downstream models fine-tuned from the segment anything model (SAM), by solely utilizing the information from the open-sourced SAM. In contrast to prevailing transfer-based adversarial attacks, we demonstrate the existence of adversarial dangers even without accessing the downstream task and dataset to train a similar surrogate model. To enhance the effectiveness of the adversarial attack towards models fine-tuned on unknown datasets, we propose a universal meta-initialization (UMI) algorithm to extract the intrinsic vulnerability inherent in the foundation model, which is then utilized as the prior knowledge to guide the generation of adversarial perturbations. Moreover, by formulating the gradient difference in the attacking process between the open-sourced SAM and its fine-tuned downstream models, we theoretically demonstrate that a deviation occurs in the adversarial update direction by directly maximizing the distance of encoded feature embeddings in the open-sourced SAM. Consequently, we propose a gradient robust loss that simulates the associated uncertainty with gradient-based noise augmentation to enhance the robustness of generated adversarial examples (AEs) towards this deviation, thus improving the transferability. Extensive experiments demonstrate the effectiveness of the proposed universal meta-initialized and gradient robust adversarial attack (UMI-GRAT) toward SAMs and their downstream models. Code is available at https://github.com/xiasong0501/GRAT.

对抗攻击SAM模型安全迁移性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。