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

陷阱和替换:通过将后门攻击捕获到易于替换的子网中来防御它们

Trap and Replace: Defending Backdoor Attacks by Trapping Them into an Easy-to-Replace Subnetwork

University of Texas at Austin(德克萨斯大学奥斯汀分校);Michigan State University(密歇根州立大学);Amazon Web Services(亚马逊云科技)

Haotao Wang, Junyuan Hong, Aston Zhang, Jiayu Zhou, Zhangyang Wang

摘要:

深度神经网络(DNN)容易受到后门攻击。以前的工作已经表明,从网络中消除不需要的后门行为是非常具有挑战性的,因为整个网络都可能受到后门样本的影响。在本文中,我们提出了一个全新的后门防御策略,这使得它更容易从模型中删除后门样本的有害影响。我们的防御战略,\emph{Trap and Replace},包括两个阶段。在第一阶段,我们在一个小而容易替换的子网中诱饵和陷阱后门。具体来说,我们在与轻量分类头共享的干网络之上添加辅助图像重建头。直觉是,辅助图像重建任务鼓励干网络保持足够的难以学习但语义正确的低级视觉特征,而不是过度拟合易于学习但语义不正确的后门相关性。因此,当在后门数据集上训练时,后门很容易被引诱到未受保护的分类头,因为它比共享的主干更容易受到攻击,使得主干网络几乎不会中毒。在第二阶段,我们用一个未污染的分类头替换中毒的轻量级分类头,只在一个具有干净样本的小数据集上从头开始重新训练它,同时修复干网络。因此,最终网络中的主干和分类头几乎不受后门训练样本的影响。我们评估我们的方法对十种不同的后门攻击。我们的方法在CIFAR 10、GTSRB和ImageNet-12上的攻击成功率和平均$3.14\%$、$1.80\%$和$1.21\%$干净分类准确率分别高达$20.57\%$、$9.80\%$和$13.72\%$,优于之前最先进的方法。代码可在线获取。

英文摘要:

Deep neural networks (DNNs) are vulnerable to backdoor attacks. Previous works have shown it extremely challenging to unlearn the undesired backdoor behavior from the network, since the entire network can be affected by the backdoor samples. In this paper, we propose a brand-new backdoor defense strategy, which makes it much easier to remove the harmful influence of backdoor samples from the model. Our defense strategy, \emph{Trap and Replace}, consists of two stages. In the first stage, we bait and trap the backdoors in a small and easy-to-replace subnetwork. Specifically, we add an auxiliary image reconstruction head on top of the stem network shared with a light-weighted classification head. The intuition is that the auxiliary image reconstruction task encourages the stem network to keep sufficient low-level visual features that are hard to learn but semantically correct, instead of overfitting to the easy-to-learn but semantically incorrect backdoor correlations. As a result, when trained on backdoored datasets, the backdoors are easily baited towards the unprotected classification head, since it is much more vulnerable than the shared stem, leaving the stem network hardly poisoned. In the second stage, we replace the poisoned light-weighted classification head with an untainted one, by re-training it from scratch only on a small holdout dataset with clean samples, while fixing the stem network. As a result, both the stem and the classification head in the final network are hardly affected by backdoor training samples. We evaluate our method against ten different backdoor attacks. Our method outperforms previous state-of-the-art methods by up to $20.57\%$, $9.80\%$, and $13.72\%$ attack success rate and on-average $3.14\%$, $1.80\%$, and $1.21\%$ clean classification accuracy on CIFAR10, GTSRB, and ImageNet-12, respectively. Code is available online.

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

↑