arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.09833cs.LGcs.AI
收藏

随机梯度噪声与动力学特性的再认识

Revisiting the Characteristics of Stochastic Gradient Noise and Dynamics

University College London(伦敦大学学院);King’s College London(伦敦国王学院)

Yixin Wu, Rui Luo, Chen Zhang, Jun Wang, Yaodong Yang

摘要:

在本文中,我们描述了随机梯度的噪声,并分析了基于梯度的优化器在训练深度神经网络过程中噪声引起的动力学。具体来说,我们首先证明了随机梯度噪声具有有限的方差,因此经典的中心极限定理(CLT)适用,这表明梯度噪声是渐近高斯。这样的渐近结果验证了广泛接受的高斯噪声假设。我们澄清,最近观察到的现象中的梯度噪声重尾可能不是内在的属性,但不够的小批量的后果;梯度噪声,这是一个有限的i.i.d.随机变量,尚未达到CLT的渐进状态,因此偏离高斯分布。我们定量地测量了高斯近似噪声的优良性,这支持了我们的结论。其次,我们使用Langevin方程分析了随机梯度下降的噪声诱导动力学,并对优化器中的动量超参数给予了物理解释。然后,我们继续证明存在的稳态分布的随机梯度下降和近似的分布在一个小的学习率。

英文摘要:

In this paper, we characterize the noise of stochastic gradients and analyze the noise-induced dynamics during training deep neural networks by gradient-based optimizers. Specifically, we firstly show that the stochastic gradient noise possesses finite variance, and therefore the classical Central Limit Theorem (CLT) applies; this indicates that the gradient noise is asymptotically Gaussian. Such an asymptotic result validates the wide-accepted assumption of Gaussian noise. We clarify that the recently observed phenomenon of heavy tails within gradient noise may not be intrinsic properties, but the consequence of insufficient mini-batch size; the gradient noise, which is a sum of limited i.i.d. random variables, has not reached the asymptotic regime of CLT, thus deviates from Gaussian. We quantitatively measure the goodness of Gaussian approximation of the noise, which supports our conclusion. Secondly, we analyze the noise-induced dynamics of stochastic gradient descent using the Langevin equation, granting for momentum hyperparameter in the optimizer with a physical interpretation. We then proceed to demonstrate the existence of the steady-state distribution of stochastic gradient descent and approximate the distribution at a small learning rate.

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

↑