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

FGSM对抗训练技巧包

Bag of Tricks for FGSM Adversarial Training

University of California, Santa Cruz(加州大学圣克鲁兹分校)

Zichao Li, Li Liu, Zeyu Wang, Yuyin Zhou, Cihang Xie

摘要:

对抗训练(AT)是一种计算简单的训练鲁棒网络的方法,其样本由快速梯度符号法(FGSM)生成,也称为FGSM-AT。然而,在其训练过程中,在arXiv:2001.03994 [cs.LG]中已经识别出“灾难性过拟合”的不稳定模式,其中鲁棒精度在单个训练步骤内突然下降到零。现有的方法使用梯度正则化或随机初始化技巧来减弱这个问题,但它们要么需要很高的计算成本,要么导致较低的鲁棒精度。在这项工作中,我们提供了第一项研究,从三个角度彻底研究了一系列技巧:数据挖掘,网络结构和优化,以克服FGSM-AT中的灾难性过拟合。令人惊讶的是,我们发现,简单的技巧,即,a)掩蔽部分像素(即使没有随机性),b)设置大的卷积步幅和平滑的激活函数,或c)正则化第一卷积层的权重,可以有效地解决过拟合问题。一系列网络架构上的广泛结果验证了每个建议的技巧的有效性,技巧的组合也进行了研究。例如,在CIFAR-10上使用PreActResNet-18进行训练,我们的方法对PGD-50攻击者的准确率为49.8%,对AutoAttack的准确率为46.4%,表明纯FGSM-AT能够实现强大的学习器。代码和模型可在https://github.com/UCSC-VLAA/Bag-of-Tricks-for-FGSM-AT上公开获取。

英文摘要:

Adversarial training (AT) with samples generated by Fast Gradient Sign Method (FGSM), also known as FGSM-AT, is a computationally simple method to train robust networks. However, during its training procedure, an unstable mode of "catastrophic overfitting" has been identified in arXiv:2001.03994 [cs.LG], where the robust accuracy abruptly drops to zero within a single training step. Existing methods use gradient regularizers or random initialization tricks to attenuate this issue, whereas they either take high computational cost or lead to lower robust accuracy. In this work, we provide the first study, which thoroughly examines a collection of tricks from three perspectives: Data Initialization, Network Structure, and Optimization, to overcome the catastrophic overfitting in FGSM-AT. Surprisingly, we find that simple tricks, i.e., a) masking partial pixels (even without randomness), b) setting a large convolution stride and smooth activation functions, or c) regularizing the weights of the first convolutional layer, can effectively tackle the overfitting issue. Extensive results on a range of network architectures validate the effectiveness of each proposed trick, and the combinations of tricks are also investigated. For example, trained with PreActResNet-18 on CIFAR-10, our method attains 49.8% accuracy against PGD-50 attacker and 46.4% accuracy against AutoAttack, demonstrating that pure FGSM-AT is capable of enabling robust learners. The code and models are publicly available at https://github.com/UCSC-VLAA/Bag-of-Tricks-for-FGSM-AT.

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

↑