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

理解大规模模型的零样本对抗鲁棒性

Understanding Zero-Shot Adversarial Robustness for Large-Scale Models

Columbia University(哥伦比亚大学);Microsoft Research(微软研究院)

Chengzhi Mao, Scott Geng, Junfeng Yang, Xin Wang, Carl Vondrick

AI总结:

本文研究大规模视觉-语言模型的零样本对抗鲁棒性,提出文本引导的对比对抗训练损失,并结合微调与视觉提示调优,在 ImageNet 等16个数据集上较 CLIP 平均提升逾31点。

摘要:

像 CLIP 这样的预训练大规模视觉-语言模型已在未见任务上展现出强大的泛化能力。然而,难以察觉的对抗扰动会显著降低 CLIP 在新任务上的性能。在本文中,我们识别并探讨了“使大规模模型适配以获得零样本对抗鲁棒性”这一问题。我们首先识别出模型适配过程中影响模型零样本对抗鲁棒性的两个关键因素——训练损失和适配方法。随后,我们提出一种文本引导的对比对抗训练损失,它在少量训练数据上通过对比学习对齐文本嵌入与对抗视觉特征。我们将该训练损失应用于两种适配方法:模型微调和视觉提示调优。我们发现,在没有文本的情况下,视觉提示调优更有效;而在存在文本引导时,微调更胜一筹。总体而言,我们的方法相较 CLIP 显著提升了零样本对抗鲁棒性,在 ImageNet 和 15 个零样本数据集上平均提升超过 31 个点。我们希望这项工作能为理解大规模模型的零样本对抗鲁棒性提供启发。

英文摘要:

Pretrained large-scale vision-language models like CLIP have exhibited strong generalization over unseen tasks. Yet imperceptible adversarial perturbations can significantly reduce CLIP's performance on new tasks. In this work, we identify and explore the problem of \emph{adapting large-scale models for zero-shot adversarial robustness}. We first identify two key factors during model adaption -- training losses and adaptation methods -- that affect the model's zero-shot adversarial robustness. We then propose a text-guided contrastive adversarial training loss, which aligns the text embeddings and the adversarial visual features with contrastive learning on a small set of training data. We apply this training loss to two adaption methods, model finetuning and visual prompt tuning. We find that visual prompt tuning is more effective in the absence of texts, while finetuning wins in the existence of text guidance. Overall, our approach significantly improves the zero-shot adversarial robustness over CLIP, seeing an average improvement of over 31 points over ImageNet and 15 zero-shot datasets. We hope this work can shed light on understanding the zero-shot adversarial robustness of large-scale models.

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

↑