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

再论对抗训练中的外部优化

Revisiting Outer Optimization in Adversarial Training

West Virginia University(西弗吉尼亚大学)

Ali Dabouei, Fariborz Taherkhani, Sobhan Soleymani, Nasser M. Nasrabadi

摘要:

尽管对抗训练和自然训练(AT和NT)之间存在根本区别,但AT方法通常采用动量SGD(MSGD)进行外部优化。本文旨在分析这种选择,通过调查被忽视的作用,外部优化AT。我们的探索性评估表明,与NT相比,AT会产生更高的梯度范数和方差。这种现象阻碍了AT的外部优化,因为MSGD的收敛速度高度依赖于梯度的方差。为此,我们提出了一种称为ENGM的优化方法,该方法将每个输入示例对平均小批量梯度的贡献正则化。我们证明了ENGM的收敛速度与梯度的方差无关,因此,它适用于AT。我们引入了一个技巧,以减少计算成本的ENGM使用经验观察梯度w.r.t.的范数之间的相关性。网络参数和输入示例。我们对CIFAR-10、CIFAR-100和TinyImageNet的广泛评估和消融研究表明,ENGM及其变体始终如一地提高了各种AT方法的性能。此外,ENGM弥补了AT的主要缺点,包括鲁棒的过拟合和对超参数设置的高敏感性。

英文摘要:

Despite the fundamental distinction between adversarial and natural training (AT and NT), AT methods generally adopt momentum SGD (MSGD) for the outer optimization. This paper aims to analyze this choice by investigating the overlooked role of outer optimization in AT. Our exploratory evaluations reveal that AT induces higher gradient norm and variance compared to NT. This phenomenon hinders the outer optimization in AT since the convergence rate of MSGD is highly dependent on the variance of the gradients. To this end, we propose an optimization method called ENGM which regularizes the contribution of each input example to the average mini-batch gradients. We prove that the convergence rate of ENGM is independent of the variance of the gradients, and thus, it is suitable for AT. We introduce a trick to reduce the computational cost of ENGM using empirical observations on the correlation between the norm of gradients w.r.t. the network parameters and input examples. Our extensive evaluations and ablation studies on CIFAR-10, CIFAR-100, and TinyImageNet demonstrate that ENGM and its variants consistently improve the performance of a wide range of AT methods. Furthermore, ENGM alleviates major shortcomings of AT including robust overfitting and high sensitivity to hyperparameter settings.

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

↑