arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2301.02312cs.LG
收藏

训练轨迹,小批量损失和学习率的奇怪作用

Training trajectories, mini-batch losses and the curious role of the learning rate

Google Research(谷歌研究院)

Mark Sandler, Andrey Zhmoginov, Max Vladymyrov, Nolan Miller

摘要:

随机梯度下降在深度学习的几乎所有应用中都起着基础性的作用。然而,它收敛到全局最小值的能力仍然笼罩在神秘之中。在本文中,我们建议研究的损失函数的行为固定的小批量沿SGD轨迹。我们表明,损失函数在一个固定的批次似乎是显着的凸状。特别是对于ResNet,任何固定小批量的损失都可以通过二次函数精确建模,并且可以在足够大的学习率的梯度下降的一个步骤中达到非常低的损失值。我们提出了一个简单的模型,可以分析随机小批量和全批量的梯度之间的关系。我们的分析,使我们能够发现的等价性之间的聚合和特定的学习率调度。特别是,对于指数移动平均(EMA)和随机权重平均,我们表明我们提出的模型与ImageNet上观察到的训练轨迹相匹配。我们的理论模型预测,一个更简单的平均技术,平均只有两个点的许多步骤分开,显着提高精度相比,基线。我们使用ResNet架构在ImageNet和其他数据集上验证了我们的发现。

英文摘要:

Stochastic gradient descent plays a fundamental role in nearly all applications of deep learning. However its ability to converge to a global minimum remains shrouded in mystery. In this paper we propose to study the behavior of the loss function on fixed mini-batches along SGD trajectories. We show that the loss function on a fixed batch appears to be remarkably convex-like. In particular for ResNet the loss for any fixed mini-batch can be accurately modeled by a quadratic function and a very low loss value can be reached in just one step of gradient descent with sufficiently large learning rate. We propose a simple model that allows to analyze the relationship between the gradients of stochastic mini-batches and the full batch. Our analysis allows us to discover the equivalency between iterate aggregates and specific learning rate schedules. In particular, for Exponential Moving Average (EMA) and Stochastic Weight Averaging we show that our proposed model matches the observed training trajectories on ImageNet. Our theoretical model predicts that an even simpler averaging technique, averaging just two points a many steps apart, significantly improves accuracy compared to the baseline. We validated our findings on ImageNet and other datasets using ResNet architecture.

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

↑