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

面向LSTM及其他客户的大批量培训

Large-Batch Training for LSTM and Beyond

Google(谷歌);UC Berkeley(加州大学伯克利分校);UCLA(加州大学洛杉矶分校)

Yang You, Jonathan Hseu, Chris Ying, James Demmel, Kurt Keutzer, Cho-Jui Hsieh

摘要:

大批量训练方法使研究人员能够利用大规模分布式处理,并大大加快了深度神经网络(DNN)的训练。例如,通过将批量大小从256扩展到32K,研究人员已经能够将ResNet50在ImageNet上的训练时间从29小时减少到2.2分钟(Ying等人,2018年)。在本文中,我们提出了一种新的方法,称为线性历元逐步预热(LEGW),以更好地进行大批量训练。通过LEGW,我们能够使用Sqrt Scaling方案对CNN和RNN进行大批量训练。LEGW使得Sqrt Scaling方案在实践中是有用的,因此我们实现了比线性Scaling学习率方案更好的结果。对于LSTM应用程序,我们能够将批量大小扩展到64倍,而不会失去准确性,也不会调整超参数。对于CNN应用程序,即使我们将批量大小扩展到32K,LEGW也能够实现相同的精度。LEGW比以前的大批量自动调优技术工作得更好。LEGW在相同硬件上的四个基于LSTM的应用程序的基线上实现了5.3倍的平均加速比。我们还提供了一些理论解释LEGW。

英文摘要:

Large-batch training approaches have enabled researchers to utilize large-scale distributed processing and greatly accelerate deep-neural net (DNN) training. For example, by scaling the batch size from 256 to 32K, researchers have been able to reduce the training time of ResNet50 on ImageNet from 29 hours to 2.2 minutes (Ying et al., 2018). In this paper, we propose a new approach called linear-epoch gradual-warmup (LEGW) for better large-batch training. With LEGW, we are able to conduct large-batch training for both CNNs and RNNs with the Sqrt Scaling scheme. LEGW enables Sqrt Scaling scheme to be useful in practice and as a result we achieve much better results than the Linear Scaling learning rate scheme. For LSTM applications, we are able to scale the batch size by a factor of 64 without losing accuracy and without tuning the hyper-parameters. For CNN applications, LEGW is able to achieve the same accuracy even as we scale the batch size to 32K. LEGW works better than previous large-batch auto-tuning techniques. LEGW achieves a 5.3X average speedup over the baselines for four LSTM-based applications on the same hardware. We also provide some theoretical explanations for LEGW.

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

↑