arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2206.02001cs.LGcs.NAmath.NA
收藏

训练神经网络中极端数值敏感性与稳定边缘的基于PDE的解释

A PDE-based Explanation of Extreme Numerical Sensitivities and Edge of Stability in Training Neural Networks

Georgia Institute of Technology(佐治亚理工学院);University of California(加利福尼亚大学);Raytheon Technologies(雷神技术公司)

Yuxin Sun, Dong Lao, Ganesh Sundaramoorthi, Anthony Yezzi

AI总结:

本文用PDE数值分析解释深度网络训练中的极端浮点敏感性,将受抑制的不稳定性与EoS联系起来,并预测正则化和网络复杂度的作用。

摘要:

我们在当前使用随机梯度下降(SGD)及其变体训练深度网络的实践中发现了受抑制的数值不稳定性。我们表明,数值误差(量级为最小浮点位,因而也是深度网络训练中浮点算术所诱发的最极端或极限数值扰动)可能被显著放大,并导致显著的测试准确率方差(敏感性),其程度可与SGD随机性所导致的测试准确率方差相比。我们展示这很可能可追溯到优化动力学中受到抑制的不稳定性,即局限于若干迭代以及权重张量空间的局部区域。为此,我们提出一个利用偏微分方程(PDE)数值分析的理论框架,并分析卷积神经网络(CNN)的梯度下降PDE。我们表明,只有在学习率和权重衰减满足某些条件时,该PDE才是稳定的。我们表明,当这些条件被违反时,不稳定性并不会导致发散,而可能受到抑制。我们证明这是与CNN梯度下降相关的非线性PDE的结果:当离散化步长被过度驱动时,其局部线性化会发生变化,从而产生稳定化效应。我们将受抑制的不稳定性与最近发现的稳定边缘(Edge of Stability,EoS)现象联系起来;在该现象中,经典理论预测的稳定步长被超过,但损失仍继续优化并且依然收敛。由于受抑制的不稳定性发生在EoS处,我们的理论为EoS提供了新的见解和预测,特别是正则化的作用以及对网络复杂度的依赖性。

英文摘要:

We discover restrained numerical instabilities in current training practices of deep networks with stochastic gradient descent (SGD), and its variants. We show numerical error (on the order of the smallest floating point bit and thus the most extreme or limiting numerical perturbations induced from floating point arithmetic in training deep nets can be amplified significantly and result in significant test accuracy variance (sensitivities), comparable to the test accuracy variance due to stochasticity in SGD. We show how this is likely traced to instabilities of the optimization dynamics that are restrained, i.e., localized over iterations and regions of the weight tensor space. We do this by presenting a theoretical framework using numerical analysis of partial differential equations (PDE), and analyzing the gradient descent PDE of convolutional neural networks (CNNs). We show that it is stable only under certain conditions on the learning rate and weight decay. We show that rather than blowing up when the conditions are violated, the instability can be restrained. We show this is a consequence of the non-linear PDE associated with the gradient descent of the CNN, whose local linearization changes when over-driving the step size of the discretization, resulting in a stabilizing effect. We link restrained instabilities to the recently discovered Edge of Stability (EoS) phenomena, in which the stable step size predicted by classical theory is exceeded while continuing to optimize the loss and still converging. Because restrained instabilities occur at the EoS, our theory provides new insights and predictions about the EoS, in particular, the role of regularization and the dependence on the network complexity.

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

↑