arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.03108cs.LGcs.DCstat.ML
收藏

深度学习中模型并行的线性代数方法

A Linear Algebraic Approach to Model Parallelism in Deep Learning

Virginia Tech(弗吉尼亚理工大学)

Russell J. Hewett, Thomas J. Grady

摘要:

随着网络规模和复杂性的增长,在大型集群计算环境中训练深度神经网络(DNN)变得越来越必要。本地内存和处理限制需要强大的数据和模型并行来跨越计算节点边界。我们提出了一种线性代数方法来建模深度学习中的并行性,它允许DNN中任何张量的并行分布。而不是依赖于自动微分工具,这并不普遍支持分布式内存并行模型,我们表明,并行数据移动操作,例如,广播、求和-归约和晕圈交换是线性算子,通过定义相关的空间和内积,我们手动开发了DNN的基于梯度的训练所需的伴随或向后算子。我们使用这些并行原语构建分布式DNN层,与顺序层实现组合,并通过使用DistDL(基于PyTorch和MPI的分布式深度学习工具包)构建和训练分布式DNN来演示其应用。

英文摘要:

Training deep neural networks (DNNs) in large-cluster computing environments is increasingly necessary, as networks grow in size and complexity. Local memory and processing limitations require robust data and model parallelism for crossing compute node boundaries. We propose a linear-algebraic approach to model parallelism in deep learning, which allows parallel distribution of any tensor in the DNN. Rather than rely on automatic differentiation tools, which do not universally support distributed memory parallelism models, we show that parallel data movement operations, e.g., broadcast, sum-reduce, and halo exchange, are linear operators, and by defining the relevant spaces and inner products, we manually develop the adjoint, or backward, operators required for gradient-based training of DNNs. We build distributed DNN layers using these parallel primitives, composed with sequential layer implementations, and demonstrate their application by building and training a distributed DNN using DistDL, a PyTorch and MPI-based distributed deep learning toolkit.

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

↑