arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2107.09133cs.LGcond-mat.stat-mechq-bio.NCstat.ML
收藏

SGD的极限动力学:修正损失、相空间振荡与反常扩散

The Limiting Dynamics of SGD: Modified Loss, Phase Space Oscillations, and Anomalous Diffusion

Stanford University(斯坦福大学);NTT Research(NTT研究所);Facebook AI Research(Facebook人工智能研究院)

Daniel Kunin, Javier Sagastuy-Brena, Lauren Gillespie, Eshed Margalit, Hidenori Tanaka, Surya Ganguli, Daniel L. K. Yamins

AI总结:

本文通过推导SGD的连续时间模型和解析求解线性回归相空间动力学,揭示了修正损失与概率流导致的反常扩散机制,并在ResNet-18/ImageNet上验证了理论预测。

摘要:

在这项工作中,我们探索了使用随机梯度下降(SGD)训练的深度神经网络的极限动力学。正如先前观察到的,在性能收敛很久之后,网络继续通过一种反常扩散过程在参数空间中移动,其中移动距离随梯度更新次数呈幂律增长,且具有非平凡的指数。我们揭示了优化超参数、梯度噪声中的结构以及训练结束时的Hessian矩阵之间的复杂相互作用,这解释了这种反常扩散。为了建立这种理解,我们首先推导了具有有限学习率和批大小的SGD的连续时间模型,作为欠阻尼Langevin方程。我们在线性回归的背景下研究该方程,在那里我们可以推导出参数及其瞬时速度从初始化到平稳状态的相空间动力学的精确解析表达式。利用Fokker-Planck方程,我们表明驱动这些动力学的关键因素不是原始训练损失,而是修正损失(隐式正则化速度)与概率流(引起相空间振荡)的组合。我们在ImageNet上训练的ResNet-18模型的动力学中识别了该理论的定性和定量预测。通过统计物理的视角,我们揭示了使用SGD训练的深度神经网络的反常极限动力学的机制起源。

英文摘要:

In this work we explore the limiting dynamics of deep neural networks trained with stochastic gradient descent (SGD). As observed previously, long after performance has converged, networks continue to move through parameter space by a process of anomalous diffusion in which distance travelled grows as a power law in the number of gradient updates with a nontrivial exponent. We reveal an intricate interaction between the hyperparameters of optimization, the structure in the gradient noise, and the Hessian matrix at the end of training that explains this anomalous diffusion. To build this understanding, we first derive a continuous-time model for SGD with finite learning rates and batch sizes as an underdamped Langevin equation. We study this equation in the setting of linear regression, where we can derive exact, analytic expressions for the phase space dynamics of the parameters and their instantaneous velocities from initialization to stationarity. Using the Fokker-Planck equation, we show that the key ingredient driving these dynamics is not the original training loss, but rather the combination of a modified loss, which implicitly regularizes the velocity, and probability currents, which cause oscillations in phase space. We identify qualitative and quantitative predictions of this theory in the dynamics of a ResNet-18 model trained on ImageNet. Through the lens of statistical physics, we uncover a mechanistic origin for the anomalous limiting dynamics of deep neural networks trained with SGD.

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

↑