arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1708.02983cs.DC
收藏

在GPU和Knights Landing集群上扩展深度学习

Scaling Deep Learning on GPU and Knights Landing clusters

Yang You, Aydin Buluc, James Demmel

摘要:

深度神经网络的训练速度已经成为深度学习研发的一大瓶颈。例如,在一个Nvidia K20 GPU上通过ImageNet数据集训练GoogleNet需要21天。为了加快训练过程,当前的深度学习系统严重依赖硬件加速器。然而,与CPU相比,这些加速器具有有限的片上存储器。为了处理大型数据集,它们需要从CPU内存或远程处理器获取数据。我们使用自托管的英特尔Knights Landing(KNL)集群和多GPU集群作为目标平台。从算法方面来看,目前的分布式机器学习系统主要是针对云系统设计的。这些方法是异步的,因为云系统的网络速度慢,容错要求高。我们专注于弹性平均SGD(EASGD)来设计HPC集群的算法。原始EASGD采用轮询方式进行通信和更新。通信按机器等级ID排序,这在HPC群集上效率很低。首先,我们重新设计了四个高效的算法HPC系统,以改善EASGD的集群上的可伸缩性差。Async EASGD、Async MEASGD和Hogwild EASGD比现有同类产品(Async SGD、Async MSGD和Hogwild SGD)的\textcolor{black}{than}更快。在所有的比较中。最后,我们设计了Sync EASGD,它在所有方法中具有最佳性能,同时具有确定性。除了算法的改进,我们使用一些系统算法的协同设计技术,以扩大算法。通过将通信百分比从87%降低到14%,我们的Sync EASGD在同一平台上实现了5.3倍于原始EASGD的加速。我们在4253个KNL核上获得了91.5%的弱伸缩效率,这高于最先进的实现。

英文摘要:

The speed of deep neural networks training has become a big bottleneck of deep learning research and development. For example, training GoogleNet by ImageNet dataset on one Nvidia K20 GPU needs 21 days. To speed up the training process, the current deep learning systems heavily rely on the hardware accelerators. However, these accelerators have limited on-chip memory compared with CPUs. To handle large datasets, they need to fetch data from either CPU memory or remote processors. We use both self-hosted Intel Knights Landing (KNL) clusters and multi-GPU clusters as our target platforms. From an algorithm aspect, current distributed machine learning systems are mainly designed for cloud systems. These methods are asynchronous because of the slow network and high fault-tolerance requirement on cloud systems. We focus on Elastic Averaging SGD (EASGD) to design algorithms for HPC clusters. Original EASGD used round-robin method for communication and updating. The communication is ordered by the machine rank ID, which is inefficient on HPC clusters. First, we redesign four efficient algorithms for HPC systems to improve EASGD's poor scaling on clusters. Async EASGD, Async MEASGD, and Hogwild EASGD are faster \textcolor{black}{than} their existing counterparts (Async SGD, Async MSGD, and Hogwild SGD, resp.) in all the comparisons. Finally, we design Sync EASGD, which ties for the best performance among all the methods while being deterministic. In addition to the algorithmic improvements, we use some system-algorithm codesign techniques to scale up the algorithms. By reducing the percentage of communication from 87% to 14%, our Sync EASGD achieves 5.3x speedup over original EASGD on the same platform. We get 91.5% weak scaling efficiency on 4253 KNL cores, which is higher than the state-of-the-art implementation.

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

↑