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

用于弹性分布式训练的动态小批量SGD:资源边界中的学习

Dynamic Mini-batch SGD for Elastic Distributed Training: Learning in the Limbo of Resources

Amazon Web Services(亚马逊云科技)

Haibin Lin, Hang Zhang, Yifei Ma, Tong He, Zhi Zhang, Sheng Zha, Mu Li

摘要:

随着对用于深度学习算法的训练能力的日益增长的需求以及数据中心中的计算资源的快速增长,期望动态地调度不同的分布式深度学习任务以最大化资源利用并降低成本。在这个过程中,不同的任务可能会在不同的时间接收不同数量的机器,我们称之为弹性分布式训练。尽管最近在大型小批量分布式训练中取得了成功,但这些方法很少在弹性分布式训练环境中进行测试,并且在我们的实验中,当我们立即相对于批量大小线性调整学习率时,性能会下降。我们观察到的一个困难是,随机动量估计中的噪声会随着时间的推移而累积,并且当批量大小变化时会产生延迟效应。因此,我们建议随着时间的推移平滑地调整学习率,以减轻噪声动量估计的影响。我们在图像分类,目标检测和语义分割的实验表明,我们提出的动态SGD方法达到稳定的性能时,不同的GPU数量从8到128。我们还提供了理论上的理解线性学习率调度的最优性和随机动量的影响。

英文摘要:

With an increasing demand for training powers for deep learning algorithms and the rapid growth of computation resources in data centers, it is desirable to dynamically schedule different distributed deep learning tasks to maximize resource utilization and reduce cost. In this process, different tasks may receive varying numbers of machines at different time, a setting we call elastic distributed training. Despite the recent successes in large mini-batch distributed training, these methods are rarely tested in elastic distributed training environments and suffer degraded performance in our experiments, when we adjust the learning rate linearly immediately with respect to the batch size. One difficulty we observe is that the noise in the stochastic momentum estimation is accumulated over time and will have delayed effects when the batch size changes. We therefore propose to smoothly adjust the learning rate over time to alleviate the influence of the noisy momentum estimation. Our experiments on image classification, object detection and semantic segmentation have demonstrated that our proposed Dynamic SGD method achieves stabilized performance when varying the number of GPUs from 8 to 128. We also provide theoretical understanding on the optimality of linear learning rate scheduling and the effects of stochastic momentum.

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

↑