arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2009.09922cs.LGstat.ML
收藏

基于引导式对抗对比学习的特征提取

Feature Distillation With Guided Adversarial Contrastive Learning

Nanyang Technological University(南洋理工大学)

Tao Bai, Jinnan Chen, Jun Zhao, Bihan Wen, Xudong Jiang, Alex Kot

摘要:

深度学习模型被证明容易受到对抗性示例的影响。虽然对抗性训练可以增强模型的鲁棒性,但典型的方法在计算上是昂贵的。最近的研究提出了通过软标签将对对抗攻击的鲁棒性转移到不同的任务或模型上,与软标签相比,特征包含了丰富的语义信息,具有应用于不同下游任务的潜力。在本文中,我们提出了一种新的方法,称为引导对抗对比蒸馏(GACD),有效地将对抗鲁棒性从教师转移到具有特征的学生。我们首先将这一目标表述为对比学习,并将其与互信息联系起来。有了一个训练有素的教师模型作为锚点,学生们有望提取出与教师相似的特征。然后考虑到教师可能造成的误差,提出了样本重加权估计,以消除教师的负面影响。通过GACD,学生不仅学会了提取鲁棒的特征,而且还从老师那里获取了结构知识。通过在CIFAR-10、CIFAR-100和STL-10等流行数据集上的大量实验,我们证明了我们的方法可以有效地在不同模型甚至不同任务之间传递鲁棒性,并取得与现有方法相当或更好的结果。此外,我们提供了各种方法的详细分析,表明我们的方法产生的学生从教师那里捕获更多的结构知识,并在对抗攻击下学习到更多的鲁棒特征。

英文摘要:

Deep learning models are shown to be vulnerable to adversarial examples. Though adversarial training can enhance model robustness, typical approaches are computationally expensive. Recent works proposed to transfer the robustness to adversarial attacks across different tasks or models with soft labels.Compared to soft labels, feature contains rich semantic information and holds the potential to be applied to different downstream tasks. In this paper, we propose a novel approach called Guided Adversarial Contrastive Distillation (GACD), to effectively transfer adversarial robustness from teacher to student with features. We first formulate this objective as contrastive learning and connect it with mutual information. With a well-trained teacher model as an anchor, students are expected to extract features similar to the teacher. Then considering the potential errors made by teachers, we propose sample reweighted estimation to eliminate the negative effects from teachers. With GACD, the student not only learns to extract robust features, but also captures structural knowledge from the teacher. By extensive experiments evaluating over popular datasets such as CIFAR-10, CIFAR-100 and STL-10, we demonstrate that our approach can effectively transfer robustness across different models and even different tasks, and achieve comparable or better results than existing methods. Besides, we provide a detailed analysis of various methods, showing that students produced by our approach capture more structural knowledge from teachers and learn more robust features under adversarial attacks.

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

↑