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

批量大小的限制

The Limit of the Batch Size

UC Berkeley(加州大学伯克利分校);UCLA(加州大学洛杉矶分校);TACC(得克萨斯高级计算中心)

Yang You, Yuhui Wang, Huan Zhang, Zhao Zhang, James Demmel, Cho-Jui Hsieh

摘要:

大批量训练是当前分布式深度学习系统的有效方法。它使研究人员能够将ImageNet/ResNet-50训练从29小时减少到1分钟左右。本文主要研究批量的极限问题。我们认为它可能会为AI超级计算机和算法设计者提供指导。我们提供详细的数值优化说明,以便进行逐步比较。此外,理解大批量训练的泛化和优化性能也很重要。Hoffer等人将“超慢扩散”理论引入大批量训练。然而,我们的实验结果与Hoffer等人的结论相矛盾。我们提供了全面的实验结果和详细的分析,以研究批量缩放和“超慢扩散”理论的局限性。这是我们第一次将ImageNet上的批量大小扩展到至少比以前的所有工作都大的数量级,并对这种设置下许多最先进的优化方案的性能进行了详细的研究。我们提出了一个优化配方,能够提高18%的前1名的测试精度相比,基线。

英文摘要:

Large-batch training is an efficient approach for current distributed deep learning systems. It has enabled researchers to reduce the ImageNet/ResNet-50 training from 29 hours to around 1 minute. In this paper, we focus on studying the limit of the batch size. We think it may provide a guidance to AI supercomputer and algorithm designers. We provide detailed numerical optimization instructions for step-by-step comparison. Moreover, it is important to understand the generalization and optimization performance of huge batch training. Hoffer et al. introduced "ultra-slow diffusion" theory to large-batch training. However, our experiments show contradictory results with the conclusion of Hoffer et al. We provide comprehensive experimental results and detailed analysis to study the limitations of batch size scaling and "ultra-slow diffusion" theory. For the first time we scale the batch size on ImageNet to at least a magnitude larger than all previous work, and provide detailed studies on the performance of many state-of-the-art optimization schemes under this setting. We propose an optimization recipe that is able to improve the top-1 test accuracy by 18% compared to the baseline.

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

↑