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

踩在边缘上:曲率感知学习率调谐器

Stepping on the Edge: Curvature Aware Learning Rate Tuners

Google DeepMind(谷歌DeepMind)

Vincent Roulet, Atish Agarwala, Jean-Bastien Grill, Grzegorz Swirszcz, Mathieu Blondel, Fabian Pedregosa

AI总结:

该研究分析了学习率调优与曲率的闭环反馈,发现经典调谐器长期表现不佳,提出优先稳定曲率的CDAT方法,揭示了联合动态对自适应学习率设计的关键意义。

摘要:

曲率信息——尤其是损失海森矩阵的最大特征值,即锐度(sharpness)——通常是学习率调谐器的设计基础。然而,近期研究表明,曲率信息在训练过程中会呈现复杂的动态变化,从锐度上升阶段最终进入稳定状态。我们分析了学习率调优与曲率之间的闭环反馈效应。研究发现,经典学习率调谐器或许能实现更大的单步损失下降,但在全批次训练场景下,其长期表现最终不如恒定学习率。这类调谐器会破坏锐度的稳定性,我们通过一个简化的学习率与曲率联合动态模型解释了这一现象。为进一步探究这些效应,我们提出了一种新的学习率调优方法——曲率动态感知调优(Curvature Dynamics Aware Tuning, CDAT),该方法优先保障长期曲率稳定,而非追求目标函数的瞬时进展。在全批次场景下,CDAT在深度学习目标上表现出与预设预热调度类似的特性,性能优于调优后的恒定学习率。在小批次场景下,我们观察到随机性会引入混杂效应,这解释了部分学习率调谐器在合适批次大小下取得成功的原因。我们的研究结果凸显了理解学习率与曲率的联合动态(而非仅关注贪婪最小化),对于诊断调优失效问题、设计有效的自适应学习率调谐器具有关键作用。

英文摘要:

Curvature information -- particularly, the largest eigenvalue of the loss Hessian, known as the sharpness -- often forms the basis for learning rate tuners. However, recent work has shown that the curvature information undergoes complex dynamics during training, going from a phase of increasing sharpness to eventual stabilization. We analyze the closed-loop feedback effect between learning rate tuning and curvature. We find that classical learning rate tuners may yield greater one-step loss reduction, yet they ultimately underperform in the long term when compared to constant learning rates in the full batch regime. These models break the stabilization of the sharpness, which we explain using a simplified model of the joint dynamics of the learning rate and the curvature. To further investigate these effects, we introduce a new learning rate tuning method, Curvature Dynamics Aware Tuning (CDAT), which prioritizes long term curvature stabilization over instantaneous progress on the objective. In the full batch regime, CDAT shows behavior akin to prefixed warm-up schedules on deep learning objectives, outperforming tuned constant learning rates. In the mini batch regime, we observe that stochasticity introduces confounding effects that explain the previous success of some learning rate tuners at appropriate batch sizes. Our findings highlight the critical role of understanding the joint dynamics of the learning rate and curvature, beyond greedy minimization, to diagnose failures and design effective adaptive learning rate tuners.

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

↑