[论文解读] Reliable Adversarial Distillation with Unreliable Teachers
本文提出了一种名为自省对抗蒸馏(Introspective Adversarial Distillation, IAD)的方法,通过在蒸馏过程中让学生模型根据教师模型在对抗样本上的表现动态调整对教师的信赖程度,从而提升对抗鲁棒性。该方法根据教师在自然样本和对抗样本上的表现,动态加权教师指导与学生自省,实现了在CIFAR-10和Tiny-ImageNet上优于基线方法(包括当前最优方法)的鲁棒准确率。
In ordinary distillation, student networks are trained with soft labels (SLs) given by pretrained teacher networks, and students are expected to improve upon teachers since SLs are stronger supervision than the original hard labels. However, when considering adversarial robustness, teachers may become unreliable and adversarial distillation may not work: teachers are pretrained on their own adversarial data, and it is too demanding to require that teachers are also good at every adversarial data queried by students. Therefore, in this paper, we propose reliable introspective adversarial distillation (IAD) where students partially instead of fully trust their teachers. Specifically, IAD distinguishes between three cases given a query of a natural data (ND) and the corresponding adversarial data (AD): (a) if a teacher is good at AD, its SL is fully trusted; (b) if a teacher is good at ND but not AD, its SL is partially trusted and the student also takes its own SL into account; (c) otherwise, the student only relies on its own SL. Experiments demonstrate the effectiveness of IAD for improving upon teachers in terms of adversarial robustness.
研究动机与目标
- 为解决在对抗蒸馏过程中,经过对抗预训练的教师模型在学生生成的对抗样本上表现不可靠的问题。
- 在标准蒸馏使用静态教师软标签的基础上,进一步提升学生模型的对抗鲁棒性。
- 提出一种动态蒸馏策略,根据教师模型在自然数据和对抗数据上的表现,自适应调整对教师的信任程度。
- 使学生模型能够在教师对样本扰动不鲁棒时,有效结合教师指导与自身自省能力,尤其在教师无法正确分类学生生成的扰动时。
提出的方法
- IAD根据教师模型在样本上的表现,将每个数据样本划分为三种情况:可靠(在自然数据和对抗数据上均正确)、部分可信(在自然数据上正确但对抗数据上错误)、不可靠(在自然和对抗数据上均错误)。
- 对于可靠情况,学生完全信任教师提供的软标签。
- 对于部分可信情况,学生通过可学习的加权机制,将教师的软标签与自身的自预测结果相结合。
- 对于不可靠情况,学生完全依赖自身预测,舍弃教师指导。
- 该方法引入一个动态注意力系数 α,用于平衡教师指导与学生自省,其值基于教师在对抗样本上的置信度计算得出。
- 采用预热阶段以稳定训练过程,使学生在初期阶段先学习鲁棒特征,随后逐步增加对自省的依赖。
实验结果
研究问题
- RQ1当教师模型在学生生成的对抗样本上并非始终准确时,对抗蒸馏能否可靠地提升学生模型的鲁棒性?
- RQ2学生模型如何根据教师在对抗输入上的表现,动态调整对教师的信任程度?
- RQ3在对抗蒸馏中引入学生自预测(即自省)对模型鲁棒性与准确率有何影响?
- RQ4超参数如 β(自省权重)和预热周期如何影响蒸馏过程的性能?
主要发现
- IAD-II 在 Tiny-ImageNet 上实现了最高的鲁棒准确率,优于 IAD-I 和其他基线方法,自然准确率和 PGD-20 鲁棒准确率均有显著提升。
- 在 CIFAR-10 上,增加自省权重 β 可提升 PGD-20 鲁棒准确率,但会轻微降低自然准确率,表明鲁棒性与标准准确率之间存在权衡。
- 在训练初期设置合适的预热周期能显著提升鲁棒性,表明初始阶段应对教师的信任应保持谨慎。
- 动态加权机制(α)能有效捕捉教师预测的可靠性,β 值越高,学生越依赖自省,鲁棒性越强。
- 实验表明,随着训练进行,教师指导的可靠性逐步下降,因为教师无法正确分类由日益鲁棒的学生生成的对抗样本。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。