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

对抗鲁棒性在知识蒸馏中如何以及何时转移?

How and When Adversarial Robustness Transfers in Knowledge Distillation?

Carnegie Mellon University(卡内基梅隆大学);JD AI Research(京东人工智能研究院);IBM Research(IBM研究院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校)

Rulin Shao, Jinfeng Yi, Pin-Yu Chen, Cho-Jui Hsieh

摘要:

知识蒸馏(KD)已广泛应用于师生培训,并应用于资源受限的深度学习中的模型压缩。目前的工作主要集中在保持教师模型的准确性。然而,其他重要的模型属性,如对抗鲁棒性,可能会在蒸馏过程中丢失。本文研究了如何以及何时将对抗鲁棒性从教师模型转移到KD中的学生模型。我们发现标准KD训练无法保持对抗鲁棒性,我们提出了KD与输入梯度对齐(KDIGA)的补救措施。在一定的假设下,我们证明了使用我们提出的KDIGA的学生模型至少可以达到与教师模型相同的认证鲁棒性。我们的KD实验包含一组不同的教师和学生模型,这些模型具有不同的网络架构和大小,并在ImageNet和CIFAR-10数据集上进行了评估,包括残差神经网络(ResNets)和视觉Transformer(ViTs)。我们的综合分析显示了几个新的见解:(1)使用KDIGA,学生可以保持甚至超过教师模型的对抗鲁棒性,即使他们的模型具有根本不同的架构;(2)KDIGA使鲁棒性能够转移到预先训练的学生,例如从对抗训练的ResNet到预先训练的ViT的KD,而不会损失干净的准确性;(3)我们推导的KD对抗鲁棒性的局部线性界与经验结果一致。

英文摘要:

Knowledge distillation (KD) has been widely used in teacher-student training, with applications to model compression in resource-constrained deep learning. Current works mainly focus on preserving the accuracy of the teacher model. However, other important model properties, such as adversarial robustness, can be lost during distillation. This paper studies how and when the adversarial robustness can be transferred from a teacher model to a student model in KD. We show that standard KD training fails to preserve adversarial robustness, and we propose KD with input gradient alignment (KDIGA) for remedy. Under certain assumptions, we prove that the student model using our proposed KDIGA can achieve at least the same certified robustness as the teacher model. Our experiments of KD contain a diverse set of teacher and student models with varying network architectures and sizes evaluated on ImageNet and CIFAR-10 datasets, including residual neural networks (ResNets) and vision transformers (ViTs). Our comprehensive analysis shows several novel insights that (1) With KDIGA, students can preserve or even exceed the adversarial robustness of the teacher model, even when their models have fundamentally different architectures; (2) KDIGA enables robustness to transfer to pre-trained students, such as KD from an adversarially trained ResNet to a pre-trained ViT, without loss of clean accuracy; and (3) Our derived local linearity bounds for characterizing adversarial robustness in KD are consistent with the empirical results.

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

↑