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

论随机梯度下降的不同机制区间

On the different regimes of Stochastic Gradient Descent

Institute of Physics, Ecole Polytechnique Fédérale de Lausanne(洛桑联邦理工学院物理研究所)

Antonio Sclocchi, Matthieu Wyart

AI总结:

本文研究SGD在批量大小与学习率平面上的动力学转变,通过师生感知机模型划分噪声主导、大步长主导和GD三相,并发现临界批量随训练集规模按问题难度指数缩放。

摘要:

现代深度网络使用随机梯度下降(SGD)训练,其关键超参数是每一步考虑的数据数量(即批量大小 B)以及步长(即学习率 η)。对于较小的 B 和较大的 η,SGD对应于参数的随机演化,其噪声幅度由“温度”T≡η/B 控制。然而,人们观察到,当批量足够大、即 B≥B* 时,这种描述会失效;或者当温度足够小时,SGD会简化为梯度下降(GD)。理解这些交叉在何处发生仍是一个核心挑战。本文在师生感知机分类模型中解决了这些问题,并通过经验表明我们的关键预测仍适用于深度网络。具体而言,我们得到了 B-η 平面中的相图,将三种动力学相区分开:(i)由温度支配的噪声主导型SGD,(ii)由大初始步长主导的SGD,以及(iii)GD。这些不同的相也对应于泛化误差的不同区间。值得注意的是,我们的分析揭示,区分区间(i)和(ii)的批量大小 B* 随训练集大小 P 缩放,其幂指数刻画了分类问题的难度。

英文摘要:

Modern deep networks are trained with stochastic gradient descent (SGD) whose key hyperparameters are the number of data considered at each step or batch size $B$, and the step size or learning rate $η$. For small $B$ and large $η$, SGD corresponds to a stochastic evolution of the parameters, whose noise amplitude is governed by the ''temperature'' $T\equiv η/B$. Yet this description is observed to break down for sufficiently large batches $B\geq B^*$, or simplifies to gradient descent (GD) when the temperature is sufficiently small. Understanding where these cross-overs take place remains a central challenge. Here, we resolve these questions for a teacher-student perceptron classification model and show empirically that our key predictions still apply to deep networks. Specifically, we obtain a phase diagram in the $B$-$η$ plane that separates three dynamical phases: (i) a noise-dominated SGD governed by temperature, (ii) a large-first-step-dominated SGD and (iii) GD. These different phases also correspond to different regimes of generalization error. Remarkably, our analysis reveals that the batch size $B^*$ separating regimes (i) and (ii) scale with the size $P$ of the training set, with an exponent that characterizes the hardness of the classification problem.

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

↑