arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.08272cs.DC
收藏

异构环境下分散训练的任务分配

Task allocation for decentralized training in heterogeneous environment

Yongyue Chao, Mingxue Liao, Jiaxin Gao

摘要:

大规模深度学习的需求越来越大,分布式训练是当前的主流解决方案。Ring AllReduce是一种广泛使用的数据并行分散算法。但是在异构环境下,每个工作者计算的数据量相同,使得不同工作者之间存在大量的等待时间损失,使得算法无法很好地适应异构集群。资源没有得到应有的利用。本文设计了一种静态分配算法的实现。将数据集人为分配给每个工人,按比例抽取样本进行训练,从而加快了网络在异构环境下的训练速度。在一机多卡和多机多卡上验证了该算法下网络模型的收敛性和对训练速度的影响。在此可行性的基础上,我们提出了一种自适应分配算法,允许每台机器找到它需要的数据,以适应当前的环境。自适应分配算法与相同比例分配算法相比,训练时间减少了近1/3 ~ 1/2,为了更好地体现算法在异构集群中的适用性,我们将性能较差的工作者替换为性能较好的工作者,或者将性能较差的工作者添加到异构集群中。实验结果表明,随着整体性能的提高,训练时间会减少。这意味着资源得到了充分利用。此外,该算法不仅适用于离散问题,而且适用于大多数异构情况。它可以用作AllReduce及其变体算法的插件。

英文摘要:

The demand for large-scale deep learning is increasing, and distributed training is the current mainstream solution. Ring AllReduce is widely used as a data parallel decentralized algorithm. However, in a heterogeneous environment, each worker calculates the same amount of data, so that there is a lot of waiting time loss among different workers, which makes the algorithm unable to adapt well to heterogeneous clusters. Resources are not used as they should be. In this paper, we design an implementation of static allocation algorithm. The dataset is artificially allocated to each worker, and samples are drawn proportionally for training, thereby speeding up the training speed of the network in a heterogeneous environment. We verify the convergence and influence on training speed of the network model under this algorithm on one machine with multi-card and multi-machine with multi-card. On this basis of feasibility, we propose a self-adaptive allocation algorithm that allows each machine to find the data it needs to adapt to the current environment. The self-adaptive allocation algorithm can reduce the training time by nearly one-third to half compared to the same proportional allocation.In order to better show the applicability of the algorithm in heterogeneous clusters, We replace a poorly performing worker with a good performing worker or add a poorly performing worker to the heterogeneous cluster. Experimental results show that training time will decrease as the overall performance improves. Therefore, it means that resources are fully used. Further, this algorithm is not only suitable for straggler problems, but also for most heterogeneous situations. It can be used as a plug-in for AllReduce and its variant algorithms.

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

↑