深度学习中的凸性 I:损失与学习率的缩放定律
Convex Dominance in Deep Learning I: A Scaling Law of Loss and Learning Rate
AI总结:
本研究通过凸性视角构建了深度学习中损失与学习率的缩放定律,揭示了训练初期弱凸特性及学习率调度对损失预测的影响。
摘要:
深度学习具有非凸的损失景观,其优化动态难以分析或控制。然而,在各种任务、模型、优化器、超参数等方面,动态可以经验上呈现出类似凸的特性。在本工作中,我们考察了凸性及Lipschitz连续性在深度学习中的适用性,以便通过学习率调度精确控制损失动态。我们证明深度学习在训练初期很快变得弱凸,且损失可通过最后一个迭代的上界来预测,这进一步指导了最优学习率的缩放。通过凸性视角,我们构建了学习率与损失的缩放定律,其外推范围可达训练时间跨度的80倍和模型规模的70倍。
英文摘要:
Deep learning has non-convex loss landscape and its optimization dynamics is hard to analyze or control. Nevertheless, the dynamics can be empirically convex-like across various tasks, models, optimizers, hyperparameters, etc. In this work, we examine the applicability of convexity and Lipschitz continuity in deep learning, in order to precisely control the loss dynamics via the learning rate schedules. We illustrate that deep learning quickly becomes weakly convex after a short period of training, and the loss is predicable by an upper bound on the last iterate, which further informs the scaling of optimal learning rate. Through the lens of convexity, we build scaling laws of learning rates and losses that extrapolate as much as 80X across training horizons and 70X across model sizes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。