arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.06818cs.AIcs.CRcs.LG
收藏

基于去混淆表示学习的后门防御

Backdoor Defense via Deconfounded Representation Learning

University of Science and Technology of China(中国科学技术大学);Hong Kong University of Science and Technology(香港科技大学)

Zaixi Zhang, Qi Liu, Zhicai Wang, Zepu Lu, Qingyong Hu

摘要:

深度神经网络(DNN)最近被证明容易受到后门攻击的攻击,攻击者通过向训练数据集中注入一些有毒的示例,在DNN模型中嵌入隐藏的后门。虽然已经做出了大量的努力来检测和删除带有后门的DNN中的后门,但仍然不清楚是否可以从中毒的数据集直接获得无后门的干净模型。本文首先构建了一个因果图来模拟中毒数据的生成过程,发现后门攻击是混淆者,它在输入图像和目标标签之间带来了虚假的关联,使得模型预测的可靠性降低。受因果理解的启发,我们提出了基于因果性的后门防御(CBD),以学习去基础表示进行可靠的分类。具体来说,一个后门模型被故意训练来捕捉混杂效应。另一个干净的模型致力于通过最小化来自后门模型的混杂表示的互信息并采用逐样本重新加权方案来捕获期望的因果效应。在多个基准数据集上对6种最先进的攻击进行了大量实验,验证了我们提出的防御方法在减少后门威胁的同时,在预测良性样本时保持了较高的准确性。进一步的分析表明,CBD也可以抵抗潜在的自适应攻击。代码可在\url{https://github.com/zaixizhang/CBD}上获得。

英文摘要:

Deep neural networks (DNNs) are recently shown to be vulnerable to backdoor attacks, where attackers embed hidden backdoors in the DNN model by injecting a few poisoned examples into the training dataset. While extensive efforts have been made to detect and remove backdoors from backdoored DNNs, it is still not clear whether a backdoor-free clean model can be directly obtained from poisoned datasets. In this paper, we first construct a causal graph to model the generation process of poisoned data and find that the backdoor attack acts as the confounder, which brings spurious associations between the input images and target labels, making the model predictions less reliable. Inspired by the causal understanding, we propose the Causality-inspired Backdoor Defense (CBD), to learn deconfounded representations for reliable classification. Specifically, a backdoored model is intentionally trained to capture the confounding effects. The other clean model dedicates to capturing the desired causal effects by minimizing the mutual information with the confounding representations from the backdoored model and employing a sample-wise re-weighting scheme. Extensive experiments on multiple benchmark datasets against 6 state-of-the-art attacks verify that our proposed defense method is effective in reducing backdoor threats while maintaining high accuracy in predicting benign samples. Further analysis shows that CBD can also resist potential adaptive attacks. The code is available at \url{https://github.com/zaixizhang/CBD}.

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

↑