arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1711.00489cs.LGcs.CVcs.DCstat.ML
收藏

不要降低学习率,增加批量大小

Don't Decay the Learning Rate, Increase the Batch Size

Google Brain(谷歌大脑)

Samuel L. Smith, Pieter-Jan Kindermans, Chris Ying, Quoc V. Le

摘要:

降低学习率是常见的做法。在这里,我们展示了通常可以在训练和测试集上获得相同的学习曲线,而不是在训练过程中增加批量大小。这个过程是成功的随机梯度下降(SGD),SGD与动量,Nesterov动量,亚当。它在相同数量的训练时期后达到相同的测试精度,但参数更新更少,导致更大的并行性和更短的训练时间。我们可以通过增加学习率$ε$和缩放批量大小$B \propto ε$来进一步减少参数更新的次数。最后,可以增加动量系数$m$和缩放$B \propto 1/(1-m)$,尽管这倾向于稍微降低测试精度。至关重要的是,我们的技术允许我们重新利用现有的训练计划进行大批量训练,而无需超参数调整。我们在ImageNet上对ResNet-50进行训练,使其在30分钟内达到$76.1\%$验证准确性。

英文摘要:

It is common practice to decay the learning rate. Here we show one can usually obtain the same learning curve on both training and test sets by instead increasing the batch size during training. This procedure is successful for stochastic gradient descent (SGD), SGD with momentum, Nesterov momentum, and Adam. It reaches equivalent test accuracies after the same number of training epochs, but with fewer parameter updates, leading to greater parallelism and shorter training times. We can further reduce the number of parameter updates by increasing the learning rate $ε$ and scaling the batch size $B \propto ε$. Finally, one can increase the momentum coefficient $m$ and scale $B \propto 1/(1-m)$, although this tends to slightly reduce the test accuracy. Crucially, our techniques allow us to repurpose existing training schedules for large batch training with no hyper-parameter tuning. We train ResNet-50 on ImageNet to $76.1\%$ validation accuracy in under 30 minutes.

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

↑