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

T2IShield:防御文本到图像扩散模型中的后门攻击

T2IShield: Defending Against Backdoors on Text-to-Image Diffusion Models

Institute of Computing Technology, Chinese Academy of Sciences (CAS)(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学)

Zhongqi Wang, Jie Zhang, Shiguang Shan, Xilin Chen

AI总结:

本文提出T2IShield,首个针对文本到图像扩散模型后门攻击的全面防御方法,通过检测交叉注意力图上的同化现象,实现高F1分数的检测与定位,并有效缓解攻击。

摘要:

虽然文本到图像扩散模型展示了令人印象深刻的生成能力,但它们也表现出对后门攻击的脆弱性,这种攻击涉及通过恶意触发器操纵模型输出。在本文中,我们首次提出了一种名为T2IShield的综合防御方法,用于检测、定位和缓解此类攻击。具体来说,我们发现了由后门触发器引起的交叉注意力图上的“同化现象”。基于这一关键洞察,我们提出了两种有效的后门检测方法:Frobenius范数阈值截断和协方差判别分析。此外,我们引入了一种二分搜索方法来定位后门样本中的触发器,并评估现有概念编辑方法在缓解后门攻击方面的有效性。在两个先进的后门攻击场景上的实证评估显示了我们所提出的防御方法的有效性。对于后门样本检测,T2IShield实现了88.9%的检测F1分数,且计算成本低。此外,T2IShield实现了86.4%的定位F1分数,并使99%的毒化样本失效。代码已在https://github.com/Robin-WZQ/T2IShield发布。

英文摘要:

While text-to-image diffusion models demonstrate impressive generation capabilities, they also exhibit vulnerability to backdoor attacks, which involve the manipulation of model outputs through malicious triggers. In this paper, for the first time, we propose a comprehensive defense method named T2IShield to detect, localize, and mitigate such attacks. Specifically, we find the "Assimilation Phenomenon" on the cross-attention maps caused by the backdoor trigger. Based on this key insight, we propose two effective backdoor detection methods: Frobenius Norm Threshold Truncation and Covariance Discriminant Analysis. Besides, we introduce a binary-search approach to localize the trigger within a backdoor sample and assess the efficacy of existing concept editing methods in mitigating backdoor attacks. Empirical evaluations on two advanced backdoor attack scenarios show the effectiveness of our proposed defense method. For backdoor sample detection, T2IShield achieves a detection F1 score of 88.9$\%$ with low computational cost. Furthermore, T2IShield achieves a localization F1 score of 86.4$\%$ and invalidates 99$\%$ poisoned samples. Codes are released at https://github.com/Robin-WZQ/T2IShield.

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

↑