arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.13703cs.LGcond-mat.dis-nn
收藏

剖析 SGD 噪声在深度学习不同训练区域中的效应

Dissecting the Effects of SGD Noise in Distinct Regimes of Deep Learning

École Polytechnique Fédérale de Lausanne(洛桑联邦理工学院);Massachusetts Institute of Technology(麻省理工学院)

Antonio Sclocchi, Mario Geiger, Matthieu Wyart

AI总结:

本文通过 (α,T) 相图研究 SGD 噪声在不同训练区域中对 MNIST 和 CIFAR10 分类性能的影响,发现噪声开始影响模型的特征温度 T_c 与训练集大小 P 呈幂律关系,并揭示 SGD 噪声通过迫使网络形成更强信号、延长训练时间而在训练后期发挥作用。

摘要:

理解随机梯度下降(SGD)中的噪声何时影响深度神经网络的泛化仍然是一个挑战,因为网络可能在不同的训练区域中运行,这一事实使问题更加复杂。本文研究当训练集大小 P 和初始化尺度 α 变化时,该噪声的幅度 T 如何影响性能。对于梯度下降,α 是一个关键参数,它控制网络是“惰性”的(α≫1)还是学习特征(α≪1)。对于 MNIST 和 CIFAR10 图像的分类,我们的核心结果是:(i)获得了 (α,T) 平面中的性能相图。它们表明,SGD 噪声可能有害,也可能有用,具体取决于训练区域。此外,尽管增大 T 或减小 α 都能使网络脱离惰性区域,但这些变化对性能可能产生相反的影响。(ii)最重要的是,我们发现 SGD 噪声开始影响已训练模型(并最终影响性能)的特征温度 T_c 是 P 的幂律。我们将这一发现与以下观察联系起来:关键动力学量,例如训练期间权重的总变化,以幂律形式同时依赖于 T 和 P。这些结果表明,SGD 噪声的一个关键效应发生在训练后期,通过影响所有数据被拟合的停止过程而产生作用。实际上,我们认为,由于 SGD 噪声,网络必须形成更强的“信号”,即更大的信息性权重,才能拟合数据,从而导致更长的训练时间。当训练集大小 P 增大时,也需要更强的信号和更长的训练时间。我们在感知器模型中证实了这些观点,在该模型中信号和噪声可以被精确测量。有趣的是,正如我们所解释的,表征 SGD 效应的指数取决于决策边界附近数据的密度。

英文摘要:

Understanding when the noise in stochastic gradient descent (SGD) affects generalization of deep neural networks remains a challenge, complicated by the fact that networks can operate in distinct training regimes. Here we study how the magnitude of this noise $T$ affects performance as the size of the training set $P$ and the scale of initialization $α$ are varied. For gradient descent, $α$ is a key parameter that controls if the network is `lazy'($α\gg1$) or instead learns features ($α\ll1$). For classification of MNIST and CIFAR10 images, our central results are: (i) obtaining phase diagrams for performance in the $(α,T)$ plane. They show that SGD noise can be detrimental or instead useful depending on the training regime. Moreover, although increasing $T$ or decreasing $α$ both allow the net to escape the lazy regime, these changes can have opposite effects on performance. (ii) Most importantly, we find that the characteristic temperature $T_c$ where the noise of SGD starts affecting the trained model (and eventually performance) is a power law of $P$. We relate this finding with the observation that key dynamical quantities, such as the total variation of weights during training, depend on both $T$ and $P$ as power laws. These results indicate that a key effect of SGD noise occurs late in training by affecting the stopping process whereby all data are fitted. Indeed, we argue that due to SGD noise, nets must develop a stronger `signal', i.e. larger informative weights, to fit the data, leading to a longer training time. A stronger signal and a longer training time are also required when the size of the training set $P$ increases. We confirm these views in the perceptron model, where signal and noise can be precisely measured. Interestingly, exponents characterizing the effect of SGD depend on the density of data near the decision boundary, as we explain.

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

↑