arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1805.04170cs.DCcs.LG
收藏

通过张量切片在深度学习中统一数据、模型和混合算法

Unifying Data, Model and Hybrid Parallelism in Deep Learning via Tensor Tiling

New York University(纽约大学)

Minjie Wang, Chien-chin Huang, Jinyang Li

摘要:

深度学习系统已成为许多领域的重要工具,但不断增加的模型大小意味着必须加速训练以保持此类系统的实用性。目前的系统,如Tensorflow和MXNet,专注于一种特定的并行化策略,即数据并行,它需要大的训练批量才能扩展。我们将寻找最佳并行化策略的问题转化为寻找最佳平铺的问题,以最少的总体通信来划分张量。我们提出了一个算法,可以找到最佳的平铺。我们的并行化解决方案是数据并行和模型并行的混合。我们构建了一个可执行自动并行化的NetBeans系统。基于它找到的最佳平铺,CubeBean自动将现有深度学习系统前端捕获的串行CubeBean图转换为并行CubeBean图。我们的评估表明,对于AlexNet和VGG,CubeBean比纯数据并行快1.5倍-4倍。我们在一个新的系统中展示了这种自动平铺,该系统可以作为Tensorflow,MXNet和其他系统的后端。

英文摘要:

Deep learning systems have become vital tools across many fields, but the increasing model sizes mean that training must be accelerated to maintain such systems' utility. Current systems like Tensorflow and MXNet focus on one specific parallelization strategy, data parallelism, which requires large training batch sizes in order to scale. We cast the problem of finding the best parallelization strategy as the problem of finding the best tiling to partition tensors with the least overall communication. We propose an algorithm that can find the optimal tiling. Our resulting parallelization solution is a hybrid of data parallelism and model parallelism. We build the SoyBean system that performs automatic parallelization. SoyBean automatically transforms a serial dataflow graph captured by an existing deep learning system frontend into a parallel dataflow graph based on the optimal tiling it has found. Our evaluations show that SoyBean is 1.5x-4x faster than pure data parallelism for AlexNet and VGG. We present this automatic tiling in a new system, SoyBean, that can act as a backend for Tensorflow, MXNet, and others.

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

↑