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

TAPT:用于视觉-语言模型鲁棒推理的测试时对抗提示微调

TAPT: Test-Time Adversarial Prompt Tuning for Robust Inference in Vision-Language Models

Fudan University(复旦大学);Hong Kong University of Science and Technology(香港科技大学)

Xin Wang, Kai Chen, Jiaming Zhang, Jingjing Chen, Xingjun Ma

AI总结:

本文提出测试时对抗提示微调方法TAPT,通过无监督地优化每个测试样本的双模态提示来增强CLIP对视觉对抗攻击的鲁棒性,在多个数据集上显著提升零样本对抗鲁棒性并保持干净样本性能。

摘要:

大型预训练视觉-语言模型(VLMs),如CLIP,已在多种下游任务中展现出优异的零样本泛化能力。然而,近期研究表明,CLIP的推理性能可能因微小的对抗扰动而大幅下降,尤其是在其视觉模态方面,这带来了显著的安全威胁。为缓解这一脆弱性,本文提出了一种新颖的防御方法,称为测试时对抗提示微调(TAPT),以增强CLIP对视觉对抗攻击的推理鲁棒性。TAPT是一种测试时防御方法,通过学习防御性双模态(文本和视觉)提示来强化CLIP的推理过程。具体而言,它是一种无监督方法,通过最小化多视图熵并对齐对抗样本与干净样本的分布,为每个测试样本优化防御提示。我们在11个基准数据集上评估了TAPT的有效性,包括ImageNet和另外10个零样本数据集,结果表明,在面对AutoAttack(AA)时,TAPT将原始CLIP的零样本对抗鲁棒性提升了至少48.9%,同时在干净样本上基本保持了性能。此外,TAPT在不同骨干网络上均优于现有的对抗提示微调方法,平均鲁棒性提升至少36.6%。

英文摘要:

Large pre-trained Vision-Language Models (VLMs) such as CLIP have demonstrated excellent zero-shot generalizability across various downstream tasks. However, recent studies have shown that the inference performance of CLIP can be greatly degraded by small adversarial perturbations, especially its visual modality, posing significant safety threats. To mitigate this vulnerability, in this paper, we propose a novel defense method called Test-Time Adversarial Prompt Tuning (TAPT) to enhance the inference robustness of CLIP against visual adversarial attacks. TAPT is a test-time defense method that learns defensive bimodal (textual and visual) prompts to robustify the inference process of CLIP. Specifically, it is an unsupervised method that optimizes the defensive prompts for each test sample by minimizing a multi-view entropy and aligning adversarial-clean distributions. We evaluate the effectiveness of TAPT on 11 benchmark datasets, including ImageNet and 10 other zero-shot datasets, demonstrating that it enhances the zero-shot adversarial robustness of the original CLIP by at least 48.9% against AutoAttack (AA), while largely maintaining performance on clean examples. Moreover, TAPT outperforms existing adversarial prompt tuning methods across various backbones, achieving an average robustness improvement of at least 36.6%.

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

↑