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

扰动与恢复:用于从CLIP中有效移除后门的微调

Perturb and Recover: Fine-tuning for Effective Backdoor Removal from CLIP

University of Tübingen & Tübingen AI Center(蒂宾根大学 & 蒂宾根人工智能中心);EPFL(瑞士联邦理工学院洛桑)

Naman Deep Singh, Francesco Croce, Matthias Hein

AI总结:

本文提出PAR机制,通过微调有效移除CLIP中的后门,实验表明其在不同编码器和攻击类型上均能保持良好性能,且无需真实训练数据。

摘要:

像CLIP这样的视觉-语言模型已被证明在连接视觉感知和自然语言理解方面非常有效,能够实现复杂的图像-文本能力,包括强大的检索和零样本分类性能。由于CLIP模型在网页上训练图像-文本对,使其成为潜在的易于攻击的目标。鉴于从头训练基础模型如CLIP成本很高,本文专注于通过微调清洁可能被污染的模型。我们首先展示现有清洁技术无法有效对抗Blended或BadNet后门攻击中的简单结构触发器,暴露了这些模型在实际部署中的关键漏洞。然后,我们引入PAR(扰动与恢复),一种简单而有效的机制,用于从CLIP模型中移除后门。通过在不同编码器和后门攻击类型上的广泛实验,我们证明PAR在高后门移除率的同时保持良好的标准性能。最后,我们表明我们的方法即使仅使用合成文本-图像对(即没有访问真实训练数据)也有效。代码和模型可在GitHub上获得。

英文摘要:

Vision-Language models like CLIP have been shown to be highly effective at linking visual perception and natural language understanding, enabling sophisticated image-text capabilities, including strong retrieval and zero-shot classification performance. Their widespread use, as well as the fact that CLIP models are trained on image-text pairs from the web, make them both a worthwhile and relatively easy target for backdoor attacks. As training foundational models, such as CLIP, from scratch is very expensive, this paper focuses on cleaning potentially poisoned models via fine-tuning. We first show that existing cleaning techniques are not effective against simple structured triggers used in Blended or BadNet backdoor attacks, exposing a critical vulnerability for potential real-world deployment of these models. Then, we introduce PAR, Perturb and Recover, a surprisingly simple yet effective mechanism to remove backdoors from CLIP models. Through extensive experiments across different encoders and types of backdoor attacks, we show that PAR achieves high backdoor removal rate while preserving good standard performance. Finally, we illustrate that our approach is effective even only with synthetic text-image pairs, i.e. without access to real training data. The code and models are available on \href{https://github.com/nmndeep/PerturbAndRecover}{GitHub}.

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

↑