arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2403.03846cs.LG
收藏

知识蒸馏能否缓解预训练编码器中的后门攻击?

Can Distillation Mitigate Backdoor Attacks in Pre-trained Encoders?

State Key Laboratory for Novel Software Technology, Nanjing University(新型软件技术国家重点实验室,南京大学);Shenzhen Research Institute of Nanjing University(南京大学深圳研究院);School of Computer Science and Engineering, University of New South Wales(新南威尔士大学计算机科学与工程学院);School of Computer Science and Engineering, Nanyang Technological University(南洋理工大学计算机科学与工程学院)

TIngxu Han, Wei Song, Weisong Sun, Ziqi Ding, Yebo Feng, Chunrong Fang, Jun Li, Hanwei Qian, Zhenyu Chen, Yang Liu

AI总结:

本文提出利用知识蒸馏技术缓解预训练编码器中的后门攻击,通过提取良性知识并去除后门,显著降低攻击成功率,同时保持模型性能。

摘要:

自监督学习(SSL)已成为预训练编码器学习通用表示的主流范式,从未标记数据中学习并将其释放到第三方平台进行广泛下游深度学习任务。然而,SSL容易受到后门攻击的威胁,攻击者可能训练并分发被污染的预训练编码器以污染下游模型。在本文中,我们研究了一种基于蒸馏的防御机制,以对抗SSL中的被污染编码器。传统上,蒸馏是从预训练的教师模型向学生模型转移知识,使学生模型能够复制或完善教师所学的表示。我们重新利用蒸馏来提取良性知识并从被污染的预训练编码器中去除后门,以生成一个干净且可靠的预训练模型。我们进行了广泛的实验来评估蒸馏在缓解预训练编码器后门攻击的有效性。基于两种最先进的后门攻击和四个广泛采用的图像分类数据集,我们的结果表明,蒸馏将攻击成功率从80.87%降低到27.51%,同时仅导致模型准确率下降6.35%。此外,通过比较四种教师架构、三种学生模型和六种损失函数,我们发现使用微调的教师网络、基于暖启动的学生训练和基于注意力的蒸馏损失的蒸馏方法效果最佳。

英文摘要:

Self-Supervised Learning (SSL) has become a prominent paradigm for pre-training encoders to learning general-purpose representations from unlabeled data and releasing them on third-party platforms for broad downstream deep learning tasks. However, SSL is vulnerable to backdoor attacks, where an adversary may train and distribute poisoned pre-training encoders to contaminate the downstream models. In this paper, we study a defense mechanism based on distillation against poisoned encoders in SSL. Traditionally, distillation transfers knowledge from a pre-trained teacher model to a student model, enabling the student to replicate or refine the teacher's learned representations. We repurpose distillation to extract benign knowledge and remove backdoors from a poisoned pre-trained encoder to produce a clean and reliable pre-trained model. We conduct extensive experiments to evaluate the effectiveness of distillation in mitigating backdoor attacks on pre-trained encoders. Based on two state-of-the-art backdoor attacks and four widely adopted image classification datasets, our results demonstrate that distillation reduces the attack success rate from 80.87% to 27.51%, with only a 6.35% drop in model accuracy. Furthermore, by comparing four teacher architectures, three student models, and six loss functions, we find that the distillation with fine-tuned teacher networks, warm-up-based student training, and attention-based distillation losses yield the best performance.

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

↑