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

HyPar:面向深度学习加速器阵列的混合并行化

HyPar: Towards Hybrid Parallelism for Deep Learning Accelerator Array

Duke University(杜克大学);University of Southern California(南加州大学)

Linghao Song, Jiachen Mao, Youwei Zhuo, Xuehai Qian, Hai Li, Yiran Chen

摘要:

近年来,随着人工智能的兴起,深度神经网络(DNN)得到了广泛的应用。为了实现高性能和高能效,DNN的硬件加速(特别是推理)在学术界和工业界都得到了广泛的研究。然而,我们仍然面临两个挑战:大型DNN模型和数据集,这会导致频繁的片外内存访问;以及DNN的训练,这在最近的加速器设计中没有得到很好的探索。为了真正为深度和大型模型的训练提供高吞吐量和节能加速,我们不可避免地需要使用多个加速器来探索粗粒度并行性,而大多数现有架构中考虑的是层内的细粒度并行性。如何在加速器之间寻求最佳的计算和并行组织是加速器研究的关键问题。在本文中,受机器学习系统最近工作的启发,我们提出了一种解决方案HyPar,用于确定使用DNN加速器阵列进行深度神经网络训练的逐层并行性。HyPar为DNN加速器划分特征映射张量(输入和输出)、内核张量、梯度张量和误差张量。分区构成了加权层的并行性选择。优化目标是在训练一个完整的DNN过程中搜索一个最小化总通信的分区。为了解决这个问题,我们提出了一个通信模型来解释通信的来源和数量。然后,我们使用一个分层的逐层动态规划方法来搜索每一层的分区。

英文摘要:

With the rise of artificial intelligence in recent years, Deep Neural Networks (DNNs) have been widely used in many domains. To achieve high performance and energy efficiency, hardware acceleration (especially inference) of DNNs is intensively studied both in academia and industry. However, we still face two challenges: large DNN models and datasets, which incur frequent off-chip memory accesses; and the training of DNNs, which is not well-explored in recent accelerator designs. To truly provide high throughput and energy efficient acceleration for the training of deep and large models, we inevitably need to use multiple accelerators to explore the coarse-grain parallelism, compared to the fine-grain parallelism inside a layer considered in most of the existing architectures. It poses the key research question to seek the best organization of computation and dataflow among accelerators. In this paper, inspired by recent work in machine learning systems, we propose a solution HyPar to determine layer-wise parallelism for deep neural network training with an array of DNN accelerators. HyPar partitions the feature map tensors (input and output), the kernel tensors, the gradient tensors, and the error tensors for the DNN accelerators. A partition constitutes the choice of parallelism for weighted layers. The optimization target is to search a partition that minimizes the total communication during training a complete DNN. To solve this problem, we propose a communication model to explain the source and amount of communications. Then, we use a hierarchical layer-wise dynamic programming method to search for the partition for each layer.

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

↑