[论文解读] A Simple Fine-tuning Is All You Need: Towards Robust Deep Learning Via Adversarial Fine-tuning
该论文提出了一种使用“慢启动、快速衰减”学习率调度策略的简单对抗性微调方法,显著将训练时间缩短8–10倍,同时在CIFAR-10、CIFAR-100和ImageNet上提升了模型的鲁棒性和泛化能力。与标准PGD对抗性训练不同,该方法通过微调预训练模型实现鲁棒性增强,而无需从头开始重新训练。
Adversarial Training (AT) with Projected Gradient Descent (PGD) is an effective approach for improving the robustness of the deep neural networks. However, PGD AT has been shown to suffer from two main limitations: i) high computational cost, and ii) extreme overfitting during training that leads to reduction in model generalization. While the effect of factors such as model capacity and scale of training data on adversarial robustness have been extensively studied, little attention has been paid to the effect of a very important parameter in every network optimization on adversarial robustness: the learning rate. In particular, we hypothesize that effective learning rate scheduling during adversarial training can significantly reduce the overfitting issue, to a degree where one does not even need to adversarially train a model from scratch but can instead simply adversarially fine-tune a pre-trained model. Motivated by this hypothesis, we propose a simple yet very effective adversarial fine-tuning approach based on a $ extit{slow start, fast decay}$ learning rate scheduling strategy which not only significantly decreases computational cost required, but also greatly improves the accuracy and robustness of a deep neural network. Experimental results show that the proposed adversarial fine-tuning approach outperforms the state-of-the-art methods on CIFAR-10, CIFAR-100 and ImageNet datasets in both test accuracy and the robustness, while reducing the computational cost by 8-10$ imes$. Furthermore, a very important benefit of the proposed adversarial fine-tuning approach is that it enables the ability to improve the robustness of any pre-trained deep neural network without needing to train the model from scratch, which to the best of the authors' knowledge has not been previously demonstrated in research literature.
研究动机与目标
- 为解决PGD对抗性训练(AT)中计算成本高和严重过拟合的问题,这些限制了其可扩展性和泛化能力。
- 探究在AT过程中有效学习率调度是否能够缓解过拟合并提升鲁棒泛化能力。
- 开发一种无需从头开始重新训练模型的方法,以增强对抗性鲁棒性,从而实现对任意预训练网络的后处理鲁棒性提升。
- 与现有AT方法相比,实现SOTA级别的鲁棒性和准确率,同时显著减少训练时间。
提出的方法
- 在对抗性微调过程中提出一种“慢启动、快速衰减”的学习率调度策略,以减少过拟合并提升泛化能力。
- 通过20次迭代、ε = 8/255或10/255的PGD攻击生成对抗性样本,用于微调过程中的对抗性训练。
- 使用所提出的学 习率调度策略,基于PGD生成的对抗性样本对预训练模型进行微调,避免了完整的重新训练过程。
- 采用学习率低的预热阶段,随后快速衰减,以稳定训练并防止过拟合。
- 在微调过程中,使用标准交叉熵损失函数,结合对抗性样本更新模型权重。
- 将该方法应用于ResNet、WideResNet和ResNet50架构,在CIFAR-10、CIFAR-100和ImageNet数据集上进行实验。
实验结果
研究问题
- RQ1在对抗性训练过程中,有效的学习率调度是否能够减少过拟合并提升泛化能力?
- RQ2对预训练模型进行对抗性微调,是否能够实现与从头开始完整对抗性训练相当或更优的鲁棒性?
- RQ3所提出的方法是否在保持或提升鲁棒性和干净准确率的同时,显著减少训练时间?
- RQ4该方法是否可普遍应用于任意预训练模型,而无需从头开始重新训练?
主要发现
- 所提出的对抗性微调(AFT)方法在CIFAR-10和CIFAR-100上相比标准PGD对抗性训练,将训练时间减少了8–10倍。
- 在CIFAR-10上,AFT实现了68.15%的自然准确率和ε = 8/255时23.29%的PGD鲁棒准确率,优于PGD AT和Free AT。
- 在ImageNet上,使用ResNet50-SWSL预训练模型,AFT实现了74.5%的自然准确率和ε = 2/255时50.5%的PGD鲁棒准确率,相比基线模型鲁棒性提升了7%。
- 该方法在不牺牲干净准确率的前提下提升了鲁棒性,其泛化能力优于PGD AT和Free AT。
- AFT方法在所有评估的数据集上均达到了SOTA性能,且可应用于任意预训练模型。
- “慢启动、快速衰减”学习率调度策略有效缓解了过拟合,即使在训练周期有限的情况下也能实现高鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。