arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.20197cs.LGcs.CRcs.CV
收藏

针对SAM及其下游模型的可迁移对抗攻击

Transferable Adversarial Attacks on SAM and Its Downstream Models

Nanyang Technological University(南洋理工大学);Pengcheng Laboratory(鹏城实验室);Beihang University(北航);Fudan University(复旦大学);Peking University(北京大学)

Song Xia, Wenhan Yang, Yi Yu, Xun Lin, Henghui Ding, Ling-Yu Duan, Xudong Jiang

AI总结:

本文提出通用元初始化与梯度鲁棒对抗攻击(UMI-GRAT),仅利用开源SAM信息即可有效攻击其微调的下游模型,通过提取内在脆弱性并模拟梯度偏差不确定性,显著提升对抗样本的可迁移性。

摘要:

大型基础模型的使用存在一个困境:虽然从它们微调下游任务有望在实际应用中利用其良好泛化的知识,但其开放性也带来了被恶意使用的威胁。本文首次探讨了仅利用开源的SAM(Segment Anything Model,分割一切模型)信息,对从SAM微调的各种下游模型进行对抗攻击的可行性。与现有的基于迁移的对抗攻击不同,我们证明了即使无法访问下游任务和数据集来训练类似的替代模型,也存在对抗性危险。为了增强对在未知数据集上微调的模型的对抗攻击效果,我们提出了一种通用元初始化(UMI)算法,以提取基础模型固有的内在脆弱性,并将其作为先验知识来指导对抗扰动的生成。此外,通过公式化开源SAM与其微调下游模型在攻击过程中的梯度差异,我们从理论上证明,在开源SAM中直接最大化编码特征嵌入的距离会导致对抗更新方向出现偏差。因此,我们提出了一种梯度鲁棒损失,通过基于梯度的噪声增强来模拟相关的不确定性,以增强生成的对抗样本(AEs)对此偏差的鲁棒性,从而提高可迁移性。大量实验证明了所提出的通用元初始化和梯度鲁棒对抗攻击(UMI-GRAT)对SAM及其下游模型的有效性。代码可在 https://github.com/xiasong0501/GRAT 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑