arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.02533cs.LGcs.CV
收藏

通过鲁棒关键微调提升对抗训练的泛化能力

Improving Generalization of Adversarial Training via Robust Critical Fine-Tuning

University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, CAS(中国科学院自动化研究所);Microsoft Research(微软研究院);City University of Hong Kong(香港城市大学)

Kaijie Zhu, Jindong Wang, Xixu Hu, Xing Xie, Ge Yang

AI总结:

本文提出鲁棒性关键微调(RiFT),通过模块鲁棒关键性度量识别非鲁棒关键模块并微调,再与对抗训练权重插值,在不牺牲对抗鲁棒性的前提下提升模型泛化能力约1.5%。

摘要:

深度神经网络容易受到对抗样本的攻击,这在关键应用中构成了显著的安全风险。对抗训练(Adversarial Training, AT)是一种成熟的增强对抗鲁棒性的技术,但它往往以降低泛化能力为代价。本文提出了鲁棒性关键微调(Robustness Critical Fine-Tuning, RiFT),这是一种在不牺牲对抗鲁棒性的前提下增强泛化能力的新方法。RiFT的核心思想是通过在非鲁棒关键模块上微调对抗训练后的模型,来利用冗余的鲁棒性容量。为此,我们引入了模块鲁棒关键性(module robust criticality, MRC),该度量在最坏情况权重扰动下评估给定模块对模型鲁棒性的重要性。利用该度量,我们将MRC值最低的模块识别为非鲁棒关键模块,并微调其权重以获得微调后的权重。随后,我们在对抗训练权重与微调权重之间进行线性插值,以得到最优的微调模型权重。我们在CIFAR10、CIFAR100和Tiny-ImageNet数据集上训练的ResNet18、ResNet34和WideResNet34-10模型上验证了RiFT的有效性。实验表明,RiFT能够在保持甚至略微增强对抗鲁棒性的同时,将泛化能力和分布外鲁棒性显著提升约1.5%。代码可在https://github.com/microsoft/robustlearn获取。

英文摘要:

Deep neural networks are susceptible to adversarial examples, posing a significant security risk in critical applications. Adversarial Training (AT) is a well-established technique to enhance adversarial robustness, but it often comes at the cost of decreased generalization ability. This paper proposes Robustness Critical Fine-Tuning (RiFT), a novel approach to enhance generalization without compromising adversarial robustness. The core idea of RiFT is to exploit the redundant capacity for robustness by fine-tuning the adversarially trained model on its non-robust-critical module. To do so, we introduce module robust criticality (MRC), a measure that evaluates the significance of a given module to model robustness under worst-case weight perturbations. Using this measure, we identify the module with the lowest MRC value as the non-robust-critical module and fine-tune its weights to obtain fine-tuned weights. Subsequently, we linearly interpolate between the adversarially trained weights and fine-tuned weights to derive the optimal fine-tuned model weights. We demonstrate the efficacy of RiFT on ResNet18, ResNet34, and WideResNet34-10 models trained on CIFAR10, CIFAR100, and Tiny-ImageNet datasets. Our experiments show that \method can significantly improve both generalization and out-of-distribution robustness by around 1.5% while maintaining or even slightly enhancing adversarial robustness. Code is available at https://github.com/microsoft/robustlearn.

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

↑