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

使用全批次损失的一维抛物线模型估计训练期间的学习率

Using a one dimensional parabolic model of the full-batch loss to estimate learning rates during training

University of Tübingen(图宾根大学)

Maximus Mutschler, Kevin Laube, Andreas Zell

摘要:

深度学习的一个基本挑战是自动为随机梯度下降找到最佳步长。在传统优化中,线搜索是确定步长的常用方法。深度学习的一个问题是,在整批损失上找到合适的步长是不可行的昂贵。因此,经典的线搜索方法,设计的损失没有固有的噪声,通常是不适用的。最近的实证研究结果表明,除其他外,整批损失的行为局部抛物线的方向上的嘈杂的更新步骤的方向。此外,最佳更新步长的趋势变化缓慢。通过利用这些和更多的发现,这项工作介绍了一种线搜索方法,近似的全批次损失与抛物线估计超过几个小批量。学习率在训练期间从这样的抛物线导出。在进行的实验中,我们的方法与SGD相当,其中Momentum使用分段恒定学习率调度进行调整,并且在验证和测试准确性方面通常优于其他用于深度学习的线搜索方法。此外,我们的方法是深度学习的第一线搜索方法,该方法在多个推理中采样更大的批量大小,以便在低批量场景中仍然工作。

英文摘要:

A fundamental challenge in Deep Learning is to find optimal step sizes for stochastic gradient descent automatically. In traditional optimization, line searches are a commonly used method to determine step sizes. One problem in Deep Learning is that finding appropriate step sizes on the full-batch loss is unfeasibly expensive. Therefore, classical line search approaches, designed for losses without inherent noise, are usually not applicable. Recent empirical findings suggest, inter alia, that the full-batch loss behaves locally parabolically in the direction of noisy update step directions. Furthermore, the trend of the optimal update step size changes slowly. By exploiting these and more findings, this work introduces a line-search method that approximates the full-batch loss with a parabola estimated over several mini-batches. Learning rates are derived from such parabolas during training. In the experiments conducted, our approach is on par with SGD with Momentum tuned with a piece-wise constant learning rate schedule and often outperforms other line search approaches for Deep Learning across models, datasets, and batch sizes on validation and test accuracy. In addition, our approach is the first line search approach for Deep Learning that samples a larger batch size over multiple inferences to still work in low-batch scenarios.

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

↑