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

从预训练到微调,对比学习什么时候能保持对抗鲁棒性?

When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?

Massachusetts Institute of Technology(麻省理工学院);Michigan State University(密歇根州立大学);MIT-IBM Watson AI Lab, IBM Research(MIT-IBM沃森人工智能实验室,IBM研究院)

Lijie Fan, Sijia Liu, Pin-Yu Chen, Gaoyuan Zhang, Chuang Gan

摘要:

对比学习(Contrast learning,CL)可以学习可推广的特征表示,并通过在其上微调线性分类器来实现下游任务的最佳性能。然而,随着对抗鲁棒性在图像分类中变得至关重要,CL是否能够保持对下游任务的鲁棒性仍不清楚。主要的挑战是,在自监督预训练+监督微调的范式中,由于预训练和微调之间的学习任务不匹配,对抗鲁棒性很容易被遗忘。我们把这种挑战称为“跨任务鲁棒性可转移性”。为了解决上述问题,在本文中,我们重新审视和推进CL原则,通过镜头的鲁棒性增强。我们证明了(1)对比视图的设计很重要:图像的高频分量有利于提高模型的鲁棒性;(2)用伪监督刺激(例如,借助于特征聚类)有助于保持鲁棒性而不会忘记。配备了我们的新设计,我们提出了AdvCL,一种新的对抗性对比预训练框架。我们表明,AdvCL是能够提高跨任务的鲁棒性可转移性,而不会损失模型的准确性和微调效率。通过全面的实验研究,我们证明了AdvCL在多个数据集(CIFAR-10,CIFAR-100和STL-10)和微调方案(线性评估和全模型微调)上优于最先进的自监督鲁棒学习方法。

英文摘要:

Contrastive learning (CL) can learn generalizable feature representations and achieve the state-of-the-art performance of downstream tasks by finetuning a linear classifier on top of it. However, as adversarial robustness becomes vital in image classification, it remains unclear whether or not CL is able to preserve robustness to downstream tasks. The main challenge is that in the self-supervised pretraining + supervised finetuning paradigm, adversarial robustness is easily forgotten due to a learning task mismatch from pretraining to finetuning. We call such a challenge 'cross-task robustness transferability'. To address the above problem, in this paper we revisit and advance CL principles through the lens of robustness enhancement. We show that (1) the design of contrastive views matters: High-frequency components of images are beneficial to improving model robustness; (2) Augmenting CL with pseudo-supervision stimulus (e.g., resorting to feature clustering) helps preserve robustness without forgetting. Equipped with our new designs, we propose AdvCL, a novel adversarial contrastive pretraining framework. We show that AdvCL is able to enhance cross-task robustness transferability without loss of model accuracy and finetuning efficiency. With a thorough experimental study, we demonstrate that AdvCL outperforms the state-of-the-art self-supervised robust learning methods across multiple datasets (CIFAR-10, CIFAR-100, and STL-10) and finetuning schemes (linear evaluation and full model finetuning).

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

↑