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

理解随机梯度下降与自适应梯度方法之间的鲁棒性差异

Understanding the robustness difference between stochastic gradient descent and adaptive gradient methods

University of Toronto(多伦多大学);Vector Institute(向量研究所);University of Oxford(牛津大学)

Avery Ma, Yangchen Pan, Amir-massoud Farahmand

AI总结:

本文通过合成数据集实验和深度学习实验证明,SGD训练的模型因权重范数更小、Lipschitz常数更小而对输入扰动更鲁棒,而自适应梯度方法因利用无关频率导致对扰动更敏感。

摘要:

随机梯度下降(SGD)和自适应梯度方法(如 Adam 和 RMSProp)已被广泛用于训练深度神经网络。我们通过实验表明,虽然使用这些方法训练的模型在标准泛化性能上的差异很小,但使用 SGD 训练的模型在输入扰动下表现出更强的鲁棒性。值得注意的是,我们的研究表明自然数据集中存在无关频率,对这些频率的改变不会影响模型的泛化性能。然而,使用自适应方法训练的模型对这些变化表现出敏感性,这表明它们对无关频率的使用可能导致对扰动敏感的解决方案。为了更好地理解这一差异,我们在一个模拟自然信号的合成数据集上研究了梯度下降(GD)和符号梯度下降(signGD)的学习动态。在三维输入空间中,使用 GD 和 signGD 优化的模型标准风险接近于零,但它们的对抗风险各不相同。我们的结果表明,线性模型对 $\ell_2$-范数有界变化的鲁棒性与模型参数的权重范数成反比:权重范数越小意味着鲁棒性越好。在深度学习的背景下,我们的实验表明,使用 SGD 训练的神经网络具有更小的 Lipschitz 常数,这解释了它们比使用自适应梯度方法训练的模型对输入扰动具有更好的鲁棒性。

英文摘要:

Stochastic gradient descent (SGD) and adaptive gradient methods, such as Adam and RMSProp, have been widely used in training deep neural networks. We empirically show that while the difference between the standard generalization performance of models trained using these methods is small, those trained using SGD exhibit far greater robustness under input perturbations. Notably, our investigation demonstrates the presence of irrelevant frequencies in natural datasets, where alterations do not affect models' generalization performance. However, models trained with adaptive methods show sensitivity to these changes, suggesting that their use of irrelevant frequencies can lead to solutions sensitive to perturbations. To better understand this difference, we study the learning dynamics of gradient descent (GD) and sign gradient descent (signGD) on a synthetic dataset that mirrors natural signals. With a three-dimensional input space, the models optimized with GD and signGD have standard risks close to zero but vary in their adversarial risks. Our result shows that linear models' robustness to $\ell_2$-norm bounded changes is inversely proportional to the model parameters' weight norm: a smaller weight norm implies better robustness. In the context of deep learning, our experiments show that SGD-trained neural networks have smaller Lipschitz constants, explaining the better robustness to input perturbations than those trained with adaptive gradient methods.

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

↑