arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.11604cs.CVcs.CRcs.LGstat.ML
收藏

自然训练中的SGD超参数如何影响对抗鲁棒性?

How do SGD hyperparameters in natural training affect adversarial robustness?

Chennai Mathematical Institute(金奈数学研究所);Microsoft Research(微软研究院)

Sandesh Kamath, Amit Deshpande, K V Subrahmanyam

摘要:

学习率、批量大小和动量是SGD算法中三个重要的超参数。从Jastrzebski等人arXiv:1711.04623的工作中已知,神经网络的大批量训练产生不能很好地推广的模型。Yao et al. arXiv:1802.08241观察到大批量训练产生的模型具有较差的对抗鲁棒性。在同一篇论文中,作者训练模型与不同的批量大小和计算的特征值的损失函数的海森。他们观察到,随着批量大小的增加,海森的主导特征值变得更大。他们还表明,对抗性训练和小批量训练都会导致Hessian的主特征值下降或降低其频谱。他们将对抗训练和二阶信息相结合,提出了一种新的大批量训练算法,并获得了具有良好泛化能力的鲁棒模型。在本文中,我们经验性地观察了SGD超参数对使用未扰动样本训练的网络的准确性和对抗鲁棒性的影响。Jastrzebski等人考虑了具有固定学习率与批量大小比率的训练模型。他们观察到,比率越高,概括性越好。我们观察到,如Jastrzebski等人所提出的,以恒定的学习率与批量大小之比训练的网络,产量模型,推广良好,也有几乎恒定的对抗鲁棒性,独立于批量大小。我们观察到,动量是更有效的不同的批量大小和固定的学习率比恒定的学习率批量大小的比例为基础的SGD训练。

英文摘要:

Learning rate, batch size and momentum are three important hyperparameters in the SGD algorithm. It is known from the work of Jastrzebski et al. arXiv:1711.04623 that large batch size training of neural networks yields models which do not generalize well. Yao et al. arXiv:1802.08241 observe that large batch training yields models that have poor adversarial robustness. In the same paper, the authors train models with different batch sizes and compute the eigenvalues of the Hessian of loss function. They observe that as the batch size increases, the dominant eigenvalues of the Hessian become larger. They also show that both adversarial training and small-batch training leads to a drop in the dominant eigenvalues of the Hessian or lowering its spectrum. They combine adversarial training and second order information to come up with a new large-batch training algorithm and obtain robust models with good generalization. In this paper, we empirically observe the effect of the SGD hyperparameters on the accuracy and adversarial robustness of networks trained with unperturbed samples. Jastrzebski et al. considered training models with a fixed learning rate to batch size ratio. They observed that higher the ratio, better is the generalization. We observe that networks trained with constant learning rate to batch size ratio, as proposed in Jastrzebski et al., yield models which generalize well and also have almost constant adversarial robustness, independent of the batch size. We observe that momentum is more effective with varying batch sizes and a fixed learning rate than with constant learning rate to batch size ratio based SGD training.

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

↑