arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.05007cs.CVcs.LG
收藏

使用可学习的对抗训练来提升快速对抗训练

Boosting Fast Adversarial Training with Learnable Adversarial Initialization

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);University of Chinese Academy of Sciences(中国科学院大学);Tencent Inc.(腾讯公司);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Shenzhen Research Institute of Big Data(深圳大数据研究院);Sun Yat-sen University(中山大学)

Xiaojun Jia, Yong Zhang, Baoyuan Wu, Jue Wang, Xiaochun Cao

摘要:

对抗性训练(AT)已被证明是有效的,通过利用对抗性的例子进行训练,提高模型的鲁棒性。然而,大多数AT方法都面临着昂贵的时间和计算成本,在多个步骤中计算梯度生成对抗性的例子。为了提高训练效率,快速AT方法采用快速梯度符号法(FGSM),只需计算一次梯度。不幸的是,鲁棒性远远不能令人满意。一个原因可能来自初始化方式。现有的快速AT通常使用随机样本不可知初始化,这促进了效率,但阻碍了进一步的鲁棒性改进。到目前为止,快速AT中的初始化仍然没有被广泛探索。在本文中,我们使用样本相关的对抗初始化来提升快速AT,即,来自生成网络的输出,该生成网络以良性图像及其来自目标网络的梯度信息为条件。由于生成网络和目标网络在训练阶段联合优化,因此前者可以自适应地生成相对于后者的有效初始化,这促使鲁棒性逐渐提高。四个基准数据库上的实验评估表明,我们提出的方法比国家的最先进的快速AT方法的优越性,以及先进的多步AT方法的鲁棒性。该代码在https://github.com//jiaxiaojunQAQ//FGSM-SDI上发布。

英文摘要:

Adversarial training (AT) has been demonstrated to be effective in improving model robustness by leveraging adversarial examples for training. However, most AT methods are in face of expensive time and computational cost for calculating gradients at multiple steps in generating adversarial examples. To boost training efficiency, fast gradient sign method (FGSM) is adopted in fast AT methods by calculating gradient only once. Unfortunately, the robustness is far from satisfactory. One reason may arise from the initialization fashion. Existing fast AT generally uses a random sample-agnostic initialization, which facilitates the efficiency yet hinders a further robustness improvement. Up to now, the initialization in fast AT is still not extensively explored. In this paper, we boost fast AT with a sample-dependent adversarial initialization, i.e., an output from a generative network conditioned on a benign image and its gradient information from the target network. As the generative network and the target network are optimized jointly in the training phase, the former can adaptively generate an effective initialization with respect to the latter, which motivates gradually improved robustness. Experimental evaluations on four benchmark databases demonstrate the superiority of our proposed method over state-of-the-art fast AT methods, as well as comparable robustness to advanced multi-step AT methods. The code is released at https://github.com//jiaxiaojunQAQ//FGSM-SDI.

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

↑