arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.12175cs.CVcs.AIcs.CR
收藏

基于零样本图像净化的黑盒后门防御

Black-box Backdoor Defense via Zero-shot Image Purification

University of Georgia(佐治亚大学);New Jersey Institute of Technology(新泽西理工学院)

Yucheng Shi, Mengnan Du, Xuansheng Wu, Zihan Guan, Jin Sun, Ninghao Liu

AI总结:

本文提出零样本图像净化(ZIP)框架,通过线性变换破坏后门模式并用预训练扩散模型恢复语义信息,在无需模型内部信息和先验知识的黑盒场景下实现有效的后门防御。

摘要:

后门攻击将中毒样本注入训练数据,导致模型部署时对中毒输入产生错误分类。防御此类攻击具有挑战性,尤其是对于仅允许查询访问的真实世界黑盒模型。本文提出了一种通过零样本图像净化(Zero-shot Image Purification, ZIP)实现的新型后门攻击防御框架。该框架可应用于中毒模型,无需获取模型内部信息,也无需任何关于干净/中毒样本的先验知识。我们的防御框架包含两个步骤。首先,对中毒图像施加线性变换(例如模糊处理)以破坏后门模式。然后,使用预训练的扩散模型恢复被变换移除的缺失语义信息。特别地,我们设计了一种新的逆向过程,利用变换后的图像引导高保真净化图像的生成,该过程在零样本设置下工作。我们在多个数据集上针对不同类型的攻击评估了ZIP框架。实验结果表明,与最先进的后门防御基线相比,我们的ZIP框架具有优越性。我们相信,我们的结果将为未来黑盒模型的防御方法提供有价值的见解。我们的代码可在 https://github.com/sycny/ZIP 获取。

英文摘要:

Backdoor attacks inject poisoned samples into the training data, resulting in the misclassification of the poisoned input during a model's deployment. Defending against such attacks is challenging, especially for real-world black-box models where only query access is permitted. In this paper, we propose a novel defense framework against backdoor attacks through Zero-shot Image Purification (ZIP). Our framework can be applied to poisoned models without requiring internal information about the model or any prior knowledge of the clean/poisoned samples. Our defense framework involves two steps. First, we apply a linear transformation (e.g., blurring) on the poisoned image to destroy the backdoor pattern. Then, we use a pre-trained diffusion model to recover the missing semantic information removed by the transformation. In particular, we design a new reverse process by using the transformed image to guide the generation of high-fidelity purified images, which works in zero-shot settings. We evaluate our ZIP framework on multiple datasets with different types of attacks. Experimental results demonstrate the superiority of our ZIP framework compared to state-of-the-art backdoor defense baselines. We believe that our results will provide valuable insights for future defense methods for black-box models. Our code is available at https://github.com/sycny/ZIP.

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

↑