Recent studies have shown that CLIP model's adversarial robustness in zero-shot classification tasks can be enhanced by adversarially fine-tuning its image encoder with adversarial examples (AEs), which are generated by minimizing the cosine similarity between images and a hand-crafted template (e.g., ''A photo of a {label}''). However, it has been shown that the cosine similarity between a single image and a single hand-crafted template is insufficient to measure the similarity for image-text pairs. Building on this, in this paper, we find that the AEs generated using cosine similarity may fail to fool CLIP when the similarity metric is replaced with semantically enriched alternatives, making the image encoder fine-tuned with these AEs less robust. To overcome this issue, we first propose a semantic-ensemble attack to generate semantic-aware AEs by minimizing the average similarity between the original image and an ensemble of refined textual descriptions. These descriptions are initially generated by a foundation model to capture core semantic features beyond hand-crafted templates and are then refined to reduce hallucinations. To this end, we propose Semantic-aware Adversarial Fine-Tuning (SAFT), which fine-tunes CLIP's image encoder with semantic-aware AEs. Extensive experiments show that SAFT outperforms current methods, achieving substantial improvements in zero-shot adversarial robustness across 16 datasets. Our code is available at: https://github.com/tmlr-group/SAFT.
CLIP-Guided Generative Networks for Transferable Targeted Adversarial Attacks
Tsinghua Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Pengcheng Laboratory(鹏城实验室);Shenzhen University(深圳大学);Shenzhen Digital Certificate Authority CO., Ltd(深圳数字证书认证中心有限公司)
Investigating Adversarial Robustness of Multi-modal Large Language Models
Mohamed Bin Zayed University of AI, UAE(穆罕默德·本·扎耶德人工智能大学,阿联酋);Khalifa University, UAE(哈利法大学,阿联酋);Australian National University, Australia(澳大利亚国立大学,澳大利亚)
Hyper Adversarial Tuning for Boosting Adversarial Robustness of Pretrained Large Vision Models
Zhejiang University(浙江大学);Shanghai Maritime University(上海海事大学);Zhejiang Gongshang University(浙江工商大学);Nanjing University of Information Science and Technology(南京信息工程大学)
Unleashing the Power of Pre-trained Encoders for Universal Adversarial Attack Detection
Faculty of Data Science, City University of Macau(澳门城市大学数据科学学院);Torrens University Australia(澳大利亚托伦斯大学);School of Computer Science and Engineering, Wuhan Institute of Technology(武汉工程大学计算机科学与工程学院)
Realistic Unsupervised CLIP Fine-tuning with Universal Entropy Optimization
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);University of Science and Technology of China(中国科学技术大学);Nanjing University(南京大学)
Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuning
Texas A&M University(得克萨斯农工大学);MIT-IBM Watson AI Lab, IBM Research(麻省理工学院-IBM沃森人工智能实验室,IBM研究院);Microsoft Dynamics 365 AI Research(微软Dynamics 365人工智能研究院)
A Simple Fine-tuning Is All You Need: Towards Robust Deep Learning Via Adversarial Fine-tuning
Waterloo AI Institute(滑铁卢人工智能研究所);University of Waterloo(滑铁卢大学)
带有投影梯度下降(PGD)的对抗训练(AT)是提高深度神经网络鲁棒性的有效方法。然而,PGD AT已经被证明遭受两个主要限制:i)高计算成本,以及ii)训练期间的极端过拟合,这导致模型泛化的减少。虽然模型容量和训练数据规模等因素对对抗鲁棒性的影响已经得到了广泛的研究,但很少关注每个网络优化中一个非常重要的参数对对抗鲁棒性的影响:学习率。特别是,我们假设在对抗训练期间有效的学习率调度可以显着减少过拟合问题,甚至不需要从头开始对抗训练模型,而是可以简单地对抗微调预训练模型。基于这一假设,我们提出了一种基于$\textit{slow start, fast decay}$学习率调度策略的简单但非常有效的对抗性微调方法,该方法不仅显著降低了所需的计算成本,而且大大提高了深度神经网络的准确性和鲁棒性。实验结果表明,在CIFAR-10、CIFAR-100和ImageNet数据集上,该方法在测试精度和鲁棒性方面均优于现有方法,同时计算量减少了8-10个$\times$。此外,所提出的对抗性微调方法的一个非常重要的好处是,它能够提高任何预先训练的深度神经网络的鲁棒性,而无需从头开始训练模型,据作者所知,这在以前的研究文献中还没有得到证明。
Bridging the Task Gap: Multi-Task Adversarial Transferability in CLIP and Its Derivatives
Shenzhen Campus of Sun Yat-sen University, China(中山大学深圳校区);The National University of Singapore, Singapore(新加坡国立大学);National Key Laboratory of Science and Technology on Information System Security, China(信息系统安全科学技术国家重点实验室)
School of Cyber Science and Technology Sun Yat-Sen University(中山大学网络空间安全学院);Department of Computer Science National University of Singapore(新加坡国立大学计算机科学系)
PE-CLIP: A Parameter-Efficient Fine-Tuning of Vision Language Models for Dynamic Facial Expression Recognition
Univ. BTU Cottbus-Senftenberg(科特布斯-森夫滕堡应用科学大学);Sorbonne University Abu Dhabi(索邦大学阿布扎比分校);Univ. Polytechnique Hauts-de-France(上法兰西理工大学);Centrale Lille(里尔中央理工学院);CNRS(法国国家科学研究中心)
Self-Calibrated Consistency can Fight Back for Adversarial Robustness in Vision-Language Models
Guangdong Institute of Intelligence Science and Technology(广东智能科学与技术研究院);Agency for Science, Technology and Research(科技研究局);School of Information Technology(信息技术学院)
GALIP: Generative Adversarial CLIPs for Text-to-Image Synthesis
Nanjing University of Posts and Telecommunications(南京邮电大学);Peng Cheng Laboratory(鹏城实验室);ETH Zürich(苏黎世联邦理工学院);University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, CAS(中国科学院自动化研究所)
Alibaba Group(阿里巴巴集团);Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Zhejiang University(浙江大学)
对比图像预训练(CLIP)模型具有zero-shot能力,通过使用图像与提示语句“a [CONTEXT] of [CLASS]"之间的相似性来对属于“[CLASS]”的图像进行分类。基于“[CONTEXT]"中的详尽文本线索,CLIP模型能够感知不同的上下文,例如背景、风格、视点,并对大范围的分布偏移表现出前所未有的鲁棒性。然而,最近的工作发现CLIP模型的进一步微调提高了准确性,但牺牲了下游任务的鲁棒性。我们进行了一项实证调查,以表明微调会破坏预训练CLIP特征的上下文感知能力。为了解决这个问题,我们提出了上下文感知鲁棒微调(CAR-FT)。CAR-FT在微调期间对模型进行规则化,以捕获上下文信息。具体来说,我们使用zero-shot提示权重来获得图像中包含的上下文分布。CAR-FT通过最小化由原始/微调CLIP模型引起的上下文分布之间的Kullback-Leibler分歧(KLD),使CLIP的上下文感知能力继承到下游任务中,并实现更高的分布内(ID)和分布外(OOD)准确性。实验结果表明,CAR-FT在ImageNet的五个OOD测试数据集上具有出色的鲁棒性,同时在九个下游任务上带来了准确率的提高。此外,CAR-FT超越了以前的领域泛化(DG)方法,在DomainBed基准测试中获得了78.5%的平均准确率,建立了新的最先进的水平。
RATLIP: Generative Adversarial CLIP Text-to-Image Synthesis Based on Recurrent Affine Transformations
School of Artificial Intelligence, Guangxi Colleges and Universities Key Laboratory of AI Algorithm Engineering(人工智能学院、广西 Colleges and Universities AI 算法工程重点实验室)