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

DBS:分布式深度神经网络训练的动态批量

DBS: Dynamic Batch Size For Distributed Deep Neural Network Training

Sichuan University(四川大学)

Qing Ye, Yuhao Zhou, Mingjia Shi, Yanan Sun, Jiancheng Lv

摘要:

具有数据并行的同步策略,如同步随机梯度下降(S-SGD)和模型平均方法,在深度神经网络(DNN)的分布式训练中得到了广泛的应用,这主要是由于其易于实现且具有良好的性能。特别地,集群的每个工作者托管DNN的副本和具有固定minibatch大小的均匀划分的共享,以保持DNN的训练收敛。在这些策略中,由于网络传输的同步和延迟,不同计算能力的工作者需要相互等待,这必然会造成高性能工作者的计算浪费,从而导致集群的利用率相对较低.为了缓解这个问题,我们提出了动态批量(DBS)策略用于DNN的分布式训练。具体地说,首先根据上一个epoch的实际情况对每个worker的性能进行评估,然后根据worker的当前性能动态调整批大小和集群划分,从而提高集群的利用率.为了验证所提策略的有效性,进行了大量的实验,实验结果表明,所提策略能够充分利用聚类的性能,减少训练时间,对不相关任务的干扰具有良好的鲁棒性.此外,还对所提出的策略的收敛性进行了严格的理论分析.

英文摘要:

Synchronous strategies with data parallelism, such as the Synchronous StochasticGradient Descent (S-SGD) and the model averaging methods, are widely utilizedin distributed training of Deep Neural Networks (DNNs), largely owing to itseasy implementation yet promising performance. Particularly, each worker ofthe cluster hosts a copy of the DNN and an evenly divided share of the datasetwith the fixed mini-batch size, to keep the training of DNNs convergence. In thestrategies, the workers with different computational capability, need to wait foreach other because of the synchronization and delays in network transmission,which will inevitably result in the high-performance workers wasting computation.Consequently, the utilization of the cluster is relatively low. To alleviate thisissue, we propose the Dynamic Batch Size (DBS) strategy for the distributedtraining of DNNs. Specifically, the performance of each worker is evaluatedfirst based on the fact in the previous epoch, and then the batch size and datasetpartition are dynamically adjusted in consideration of the current performanceof the worker, thereby improving the utilization of the cluster. To verify theeffectiveness of the proposed strategy, extensive experiments have been conducted,and the experimental results indicate that the proposed strategy can fully utilizethe performance of the cluster, reduce the training time, and have good robustnesswith disturbance by irrelevant tasks. Furthermore, rigorous theoretical analysis hasalso been provided to prove the convergence of the proposed strategy.

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

↑