arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1807.05031stat.MLcs.LG
收藏

关于DNN损失的最尖锐方向与SGD步长的关系

On the Relation Between the Sharpest Directions of DNN Loss and the SGD Step Length

Jagiellonian University(雅盖隆大学);Mila / University of Montreal(Mila / 蒙特利尔大学);Facebook AI Research(Facebook人工智能研究院);Ruhr University Bochum(波鸿鲁尔大学);University of Edinburgh(爱丁堡大学)

Stanisław Jastrzębski, Zachary Kenton, Nicolas Ballas, Asja Fischer, Yoshua Bengio, Amos Storkey

摘要:

具有大学习率或小批量的神经网络的基于随机梯度下降(SGD)的训练通常在权重空间的良好泛化的平坦区域中结束,如训练损失的Hessian的小特征值所指示的。然而,沿着SGD轨迹的曲率知之甚少。实证研究表明,初始SGD访问越来越尖锐的区域,达到最大的尖锐度决定的学习率和批量的SGD。当研究SGD动力学在这个初始阶段的最尖锐的方向,我们发现,SGD步骤是大的曲率相比,通常无法最大限度地减少损失沿最尖锐的方向。此外,在这些方向上使用降低的学习率可以提高训练速度,同时与vanilla SGD相比,可以获得更清晰和更好的泛化解决方案。总之,我们对SGD在最尖锐方向的子空间中的动态分析表明,它们影响SGD转向的区域(较大的学习率或较小的批量大小导致访问更广泛的区域),整体训练速度以及最终模型的泛化能力。

英文摘要:

Stochastic Gradient Descent (SGD) based training of neural networks with a large learning rate or a small batch-size typically ends in well-generalizing, flat regions of the weight space, as indicated by small eigenvalues of the Hessian of the training loss. However, the curvature along the SGD trajectory is poorly understood. An empirical investigation shows that initially SGD visits increasingly sharp regions, reaching a maximum sharpness determined by both the learning rate and the batch-size of SGD. When studying the SGD dynamics in relation to the sharpest directions in this initial phase, we find that the SGD step is large compared to the curvature and commonly fails to minimize the loss along the sharpest directions. Furthermore, using a reduced learning rate along these directions can improve training speed while leading to both sharper and better generalizing solutions compared to vanilla SGD. In summary, our analysis of the dynamics of SGD in the subspace of the sharpest directions shows that they influence the regions that SGD steers to (where larger learning rate or smaller batch size result in wider regions visited), the overall training speed, and the generalization ability of the final model.

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

↑