arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.18598cs.CV

互补文本引导注意力用于零样本对抗鲁棒性

Complementary Text-Guided Attention for Zero-Shot Adversarial Robustness

School of Computer Science and Engineering, Tianjin University of Technology(天津理工大学计算机科学与工程学院);State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所多模态人工智能系统国家重点实验室);School of Artificial Intelligence, University of the Chinese Academy of Sciences(中国科学院大学人工智能学院)

Lu Yu, Haiyang Zhang, Changsheng Xu

AI总结:

本文提出TGA-ZSR和Comp-TGA方法,通过局部注意力细化模块和全局注意力约束模块提升CLIP模型的零样本对抗鲁棒性,实验显示在16个数据集上分别提升9.58%和11.95%。

摘要:

由于出色的零样本能力,预训练视觉-语言模型(如CLIP)在各种领域中受到广泛关注。然而,CLIP已被发现易受对抗示例攻击。通过实验分析,我们观察到对抗扰动会引发文本引导注意力的偏移。基于此观察,我们提出了一种简单有效的策略:零样本鲁棒性文本引导注意力(TGA-ZSR)。该框架包含两个组件:局部注意力细化模块和全局注意力约束模块。我们的目标是保持CLIP模型的泛化能力并增强其对抗鲁棒性。此外,全局注意力约束模块通过干净示例从目标和原始模型中获取文本引导注意力。其目标是在保持干净样本性能的同时增强整体鲁棒性。然而,我们发现该方法偶尔会关注无关或虚假特征,这可能导致性能欠佳并在某些场景下削弱其鲁棒性。为克服这一限制,我们进一步提出了一种新的方法称为互补文本引导注意力(Comp-TGA)。该方法整合了两种前景注意力:由类别提示引导的注意力和由非类别提示驱动的反向注意力。这些互补的注意力机制使模型能够更全面和准确地捕捉前景。实验验证了TGA-ZSR和Comp-TGA在16个数据集上分别比当前最先进的技术提高了9.58%和11.95%的零样本鲁棒性准确性。

英文摘要:

Due to the impressive zero-shot capabilities, pre-trained vision-language models (e.g., CLIP), have attracted widespread attention and adoption across various domains. Nonetheless, CLIP has been observed to be susceptible to adversarial examples. Through experimental analysis, we have observed a phenomenon wherein adversarial perturbations induce shifts in text-guided attention. Building upon this observation, we propose a simple yet effective strategy: Text-Guided Attention for Zero-Shot Robustness (TGA-ZSR). This framework incorporates two components: Local Attention Refinement Module and Global Attention Constraint Module. Our goal is to maintain the generalization of the CLIP model and enhance its adversarial robustness. Additionally, the Global Attention Constraint Module acquires text-guided attention from both the target and original models using clean examples. Its objective is to maintain model performance on clean samples while enhancing overall robustness. However, we observe that the method occasionally focuses on irrelevant or spurious features, which can lead to suboptimal performance and undermine its robustness in certain scenarios. To overcome this limitation, we further propose a novel approach called Complementary Text-Guided Attention (Comp-TGA). This method integrates two types of foreground attention: attention guided by the class prompt and reversed attention driven by the non-class prompt. These complementary attention mechanisms allow the model to capture a more comprehensive and accurate representation of the foreground. The experiments validate that TGA-ZSR and Comp-TGA yield 9.58% and 11.95% improvements respectively, in zero-shot robust accuracy over the current state-of-the-art techniques across 16 datasets.

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

↑