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

深度神经网络的超越数据和模型并行

Beyond Data and Model Parallelism for Deep Neural Networks

Zhihao Jia, Matei Zaharia, Alex Aiken

摘要:

训练深度神经网络(DNN)的计算需求已经增长到现在并行训练的标准实践。现有的深度学习系统通常使用数据或模型并行,但不幸的是,这些策略通常会导致次优并行性能。在本文中,我们为DNN定义了一个更全面的并行化策略搜索空间,称为SOAP,其中包括在样本,操作,属性和参数维度上并行化DNN的策略。我们还提出了FlexFlow,这是一个深度学习框架,它使用SOAP空间的引导随机搜索来为特定的并行机找到快速并行化策略。为了加速这种搜索,FlexFlow引入了一种新型的执行模拟器,可以准确地预测并行化策略的性能,并且比必须执行每个策略的先前方法快三个数量级。我们在两个GPU集群上使用六个真实DNN基准测试对FlexFlow进行了评估,结果表明,FlexFlow可以将训练吞吐量提高到最先进方法的3.8倍,即使包括搜索时间,也可以提高可扩展性。

英文摘要:

The computational requirements for training deep neural networks (DNNs) have grown to the point that it is now standard practice to parallelize training. Existing deep learning systems commonly use data or model parallelism, but unfortunately, these strategies often result in suboptimal parallelization performance. In this paper, we define a more comprehensive search space of parallelization strategies for DNNs called SOAP, which includes strategies to parallelize a DNN in the Sample, Operation, Attribute, and Parameter dimensions. We also propose FlexFlow, a deep learning framework that uses guided randomized search of the SOAP space to find a fast parallelization strategy for a specific parallel machine. To accelerate this search, FlexFlow introduces a novel execution simulator that can accurately predict a parallelization strategy's performance and is three orders of magnitude faster than prior approaches that have to execute each strategy. We evaluate FlexFlow with six real-world DNN benchmarks on two GPU clusters and show that FlexFlow can increase training throughput by up to 3.8x over state-of-the-art approaches, even when including its search time, and also improves scalability.

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

↑