Understanding Optimization in Deep Learning with Central Flows

ML Adam等 LFDDR
深度学习中的优化问题即使在确定性(即全批量)训练这种简单设置下仍然理解不足。一个主要的困难在于,优化器的行为很大程度上是由复杂的振荡动力学隐式决定的,这被称为“稳定边缘”。本文的主要贡献在于展示了一个优化器的隐式行为可以通过一个“中心流”显式捕捉:这是一个微分方程,用于建模时间平均的优化轨迹。我们证明,这些流可以以高度数值精度预测通用神经网络的长期优化轨迹。通过解释这些流,我们首次揭示了1)RMSProp如何精确地适应局部损失景观,以及2)一种“通过正则化加速”的机制,其中自适应优化器隐式地导航到低曲率区域,在这些区域中它们可以采取更大的步长。这一机制是这些自适应优化器有效性的关键。总体而言,我们认为中心流构成了理解深度学习中优化问题的一个有前途的工具。
Optimization in deep learning remains poorly understood, even in the simple setting of deterministic (i.e. full-batch) training. A key difficulty is that much of an optimizer's behavior is implicitly determined by complex oscillatory dynamics, referred to as the "edge of stability." The main contribution of this paper is to show that an optimizer's implicit behavior can be explicitly captured by a "central flow:" a differential equation which models the time-averaged optimization trajectory. We show that these flows can empirically predict long-term optimization trajectories of generic neural networks with a high degree of numerical accuracy. By interpreting these flows, we reveal for the first time 1) the precise sense in which RMSProp adapts to the local loss landscape, and 2) an "acceleration via regularization" mechanism, wherein adaptive optimizers implicitly navigate towards low-curvature regions in which they can take larger steps. This mechanism is key to the efficacy of these adaptive optimizers. Overall, we believe that central flows constitute a promising tool for reasoning about optimization in deep learning.
许愿