[论文解读] Backdoor Defense via Decoupling the Training Process
本文提出一种基于解耦的防御(DBD),首先通过自监督学习学习一个净化的骨干网络,然后在有标签数据上训练分类器,最后通过半监督微调,使用高可信样本和低可信样本来防御基于投毒的后门攻击,同时不牺牲无害精度。
Recent studies have revealed that deep neural networks (DNNs) are vulnerable to backdoor attacks, where attackers embed hidden backdoors in the DNN model by poisoning a few training samples. The attacked model behaves normally on benign samples, whereas its prediction will be maliciously changed when the backdoor is activated. We reveal that poisoned samples tend to cluster together in the feature space of the attacked DNN model, which is mostly due to the end-to-end supervised training paradigm. Inspired by this observation, we propose a novel backdoor defense via decoupling the original end-to-end training process into three stages. Specifically, we first learn the backbone of a DNN model via \emph{self-supervised learning} based on training samples without their labels. The learned backbone will map samples with the same ground-truth label to similar locations in the feature space. Then, we freeze the parameters of the learned backbone and train the remaining fully connected layers via standard training with all (labeled) training samples. Lastly, to further alleviate side-effects of poisoned samples in the second stage, we remove labels of some `low-credible' samples determined based on the learned model and conduct a \emph{semi-supervised fine-tuning} of the whole model. Extensive experiments on multiple benchmark datasets and DNN models verify that the proposed defense is effective in reducing backdoor threats while preserving high accuracy in predicting benign samples. Our code is available at \url{https://github.com/SCLBD/DBD}.
研究动机与目标
- 通过揭示在端到端监督下后门在特征空间中的聚簇行为,来激发鲁棒DNN训练。
- 提出一个三阶段防御方法,将骨干学习、分类器训练和半监督微调解耦。
- 表明净化的骨干网络能够阻碍后门形成,并在各基准上维持无害准确率。
提出的方法
- 在未标记数据上通过自监督学习学习一个净化的骨干网络。
- 冻结骨干网络,并使用有标签数据训练其余的全连接层。
- 计算损失以识别高可信样本,并为半监督微调从低可信样本中移除标签。
- 在阶段2中使用对称交叉熵放大被污染样本与无害样本之间的损失差异。
- 使用高可信标记样本和低可信未标记样本,通过半监督学习微调完整模型。
实验结果
研究问题
- RQ1将训练解耦为自监督骨干学习和有监督分类器训练,是否能够在基于投毒的攻击下防止后门形成?
- RQ2利用高可信样本的半监督微调是否在保持无害准确率的同时降低被污染数据的不良影响?
- RQ3在常见后门攻击(BadNets、Blended、WaNet、Label-Consistent)上的标准基准测试中,所提出的防御表现如何?
- RQ4该防御对针对自监督阶段的潜在自适应攻击是否稳健?
主要发现
- 在大多数情况下,DBD 将攻击成功率(ASR)显著降至接近零,在 CIFAR-10 和 ImageNet 基准上。
- 无害准确度 (BA) 保持接近基线水平,在某些攻击情景下仅有小幅下降。
- 在阶段2中使用对称交叉熵相对于标准交叉熵提高了被污染样本与无害样本之间的分离。
- 利用高可信样本的半监督微调步骤在利用低可信样本信息的同时进一步缓解后门效应。
- 消融研究表明,每个组件(自监督骨干网络、SCE 损失、高可信筛选和 SSL 微调)对防御效果都有贡献。
- 该防御在针对自监督阶段设计以破坏其的自适应攻击场景中表现出韧性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。