[论文解读] When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning?
AdvCL通过使用对抗视图和高频视图以及伪监督,在对比学习中提升跨任务对抗鲁棒性,并在标准线性微调下实现最先进的鲁棒性能。
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).
研究动机与目标
- 激发在自监督预训练到有监督微调之间的鲁棒性保留(跨任务鲁棒性可迁移性)的动机。
- 开发一个鲁棒性增强的对比学习框架(AdvCL),在保持线性头部微调效率的同时。
- 研究视图设计和伪监督,以在不牺牲精度的情况下提升跨任务鲁棒性。
- 提供跨数据集和微调方案的充分实证证据,显示鲁棒性提升。
提出的方法
- 提出AdvCL,包含两大要素:鲁棒性感知视图(对抗视图和基于频率的视图)以及通过聚类(ClusterFit)实现的伪监督刺激。
- 定义一个四视图对比损失,覆盖 (tau1(x), tau2(x), x+delta, x_h),其中对抗扰动为 delta,高频分量为 x_h。
- 使用 ClusterFit 从潜在表示生成伪标签,并将伪分类对比正则化与平衡项 lambda 融合。
- 可选地扩展为对多个聚类数 K 的集成,以提升鲁棒性和泛化能力。
- 在 CIFAR-10/100 和 STL-10 上使用标准线性微调(SLF)和对抗性全微调(AFF)进行评估。
- 与基于 CL 的基线(ACL、RoCL)、AP-DPE 和监督对抗训练(AT)进行比较。
实验结果
研究问题
- RQ1对比学习是否能仅使用标准线性微调来提升对抗鲁棒性?
- RQ2在从预训练转移到微调时,CL应遵循哪些原则以保持鲁棒性(跨任务鲁棒性可迁移性)?
- RQ3视图设计和伪监督如何影响AdvCL中的鲁棒性和可迁移性?
- RQ4在提升鲁棒性的同时,AdvCL是否保持或提升微调效率?
主要发现
- AdvCL在SLF和AFF设定下相较基线带来显著的鲁棒性和精度提升(如在 CIFAR-10/100 上)。
- AdvCL在多个数据集在PGD和Auto-Attack下仅使用线性微调就达到最先进的鲁棒准确率。
- 使用高频分量作为额外视图比其他视图选择更能提升鲁棒性。
- 结合基于ClusterFit的伪标签(对 K 的集成)提升跨任务鲁棒性可迁移性。
- AdvCL显示出对抗性损失景观更平坦,表征中的类别分离更清晰,表明更好的可迁移性与可解释性。
- 在使用ResNet-18的CIFAR数据集上对Auto-Attack,AdvCL在鲁棒性上相较基线有显著提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。