arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.24206cs.LGcs.AImath.OCstat.ML
收藏

理解深度学习中中心流的优化

Understanding Optimization in Deep Learning with Central Flows

Carnegie Mellon University(卡内基梅隆大学);Flatiron Institute(弗拉提伦研究所);Princeton University(普林斯顿大学);U.C. Berkeley(加州大学伯克利分校)

Jeremy M. Cohen, Alex Damian, Ameet Talwalkar, J. Zico Kolter, Jason D. Lee

AI总结:

本文提出中心流理论,通过时间平均轨迹刻画深度学习优化器在稳定性边缘的动态,预测长时轨迹并解释梯度下降进展与自适应优化器行为。

摘要:

传统的优化理论无法描述深度学习中的优化动态,即使在确定性训练的简单设置下也是如此。挑战在于优化器通常运行在一个复杂、振荡的机制中,称为“稳定性边缘”。在本文中,我们发展了能够描述该机制下优化动态的理论。我们的关键见解是,虽然振荡优化器的*精确*轨迹可能难以分析,但*时间平均*(即平滑)轨迹通常更容易处理。为了分析优化器,我们推导出一个称为“中心流”的微分方程,该方程刻画了这种时间平均轨迹。我们通过实验表明,这些中心流能够以高数值精度预测通用神经网络的长时优化轨迹。通过解释这些中心流,我们能够理解梯度下降如何在损失有时上升的情况下仍取得进展;自适应优化器如何“适应”局部损失景观;以及自适应优化器如何隐式地导航到它们可以采取更大步长的区域。我们的结果表明,中心流可以成为推理深度学习优化的有价值的理论工具。

英文摘要:

Traditional theories of optimization cannot describe the dynamics of optimization in deep learning, even in the simple setting of deterministic training. The challenge is that optimizers typically operate in a complex, oscillatory regime called the "edge of stability." In this paper, we develop theory that can describe the dynamics of optimization in this regime. Our key insight is that while the *exact* trajectory of an oscillatory optimizer may be challenging to analyze, the *time-averaged* (i.e. smoothed) trajectory is often much more tractable. To analyze an optimizer, we derive a differential equation called a "central flow" that characterizes this time-averaged trajectory. We empirically show that these central flows can predict long-term optimization trajectories for generic neural networks with a high degree of numerical accuracy. By interpreting these central flows, we are able to understand how gradient descent makes progress even as the loss sometimes goes up; how adaptive optimizers "adapt" to the local loss landscape; and how adaptive optimizers implicitly navigate towards regions where they can take larger steps. Our results suggest that central flows can be a valuable theoretical tool for reasoning about optimization in deep learning.

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

↑