arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.14484cs.LG
收藏

稳定性边缘的自适应梯度方法

Adaptive Gradient Methods at the Edge of Stability

Google Research, Brain Team(谷歌研究院大脑团队)

Jeremy M. Cohen, Behrooz Ghorbani, Shankar Krishnan, Naman Agarwal, Sourabh Medapati, Michal Badura, Daniel Suo, David Cardoze, Zachary Nado, George E. Dahl, Justin Gilmer

AI总结:

本文实证发现Adam等自适应梯度方法在训练中会达到“自适应稳定性边缘”,并能通过调整预条件器继续进入高曲率区域,区别于非自适应方法在稳定性边缘的行为,为理解其训练动力学奠定基础。

摘要:

关于深度学习中Adam等自适应梯度方法的训练动力学,目前已知甚少。本文揭示了这些算法在全批量及足够大批量设置下的行为。具体而言,我们通过实验证明,在全批量训练过程中,预条件Hessian矩阵的最大特征值通常会平衡在某个特定数值——即梯度下降算法的稳定性阈值。对于步长为$η$且$β_1 = 0.9$的Adam,该稳定性阈值为$38/η$。在小批量训练中也会出现类似效应,尤其是当批量大小增大时。然而,尽管自适应方法在“自适应稳定性边缘”(AEoS)处进行训练,它们在此状态下的行为与非自适应方法在稳定性边缘(EoS)处的行为存在显著差异。非自适应算法在EoS处会被阻止进入损失景观的高曲率区域,而自适应梯度方法在AEoS处可以继续推进进入高曲率区域,同时调整预条件器以进行补偿。我们的发现可作为社区未来理解深度学习中自适应梯度方法的基础。

英文摘要:

Very little is known about the training dynamics of adaptive gradient methods like Adam in deep learning. In this paper, we shed light on the behavior of these algorithms in the full-batch and sufficiently large batch settings. Specifically, we empirically demonstrate that during full-batch training, the maximum eigenvalue of the preconditioned Hessian typically equilibrates at a certain numerical value -- the stability threshold of a gradient descent algorithm. For Adam with step size $η$ and $β_1 = 0.9$, this stability threshold is $38/η$. Similar effects occur during minibatch training, especially as the batch size grows. Yet, even though adaptive methods train at the ``Adaptive Edge of Stability'' (AEoS), their behavior in this regime differs in a significant way from that of non-adaptive methods at the EoS. Whereas non-adaptive algorithms at the EoS are blocked from entering high-curvature regions of the loss landscape, adaptive gradient methods at the AEoS can keep advancing into high-curvature regions, while adapting the preconditioner to compensate. Our findings can serve as a foundation for the community's future understanding of adaptive gradient methods in deep learning.

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

↑