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

用于可扩展训练和推理的稀疏深度神经网络分区

Partitioning sparse deep neural networks for scalable training and inference

University of Warwick(华威大学)

Gunduz Vehbi Demirci, Hakan Ferhatosmanoglu

摘要:

最先进的深度神经网络(DNN)具有显著的计算和数据管理要求。训练数据和模型的大小都在持续增加。稀疏化和修剪方法被证明是有效的,在DNN中删除大部分连接。由此产生的稀疏网络提出了独特的挑战,以进一步提高深度学习中训练和推理的计算效率。用于训练稀疏DNN的随机梯度下降(SGD)算法中的前馈(推断)和反向传播步骤都涉及连续的稀疏矩阵向量乘法(SpMV)。我们首先介绍了一个分布式内存并行SpMV为基础的SGD算法的解决方案,以提高其可扩展性。并行化方法是基于权值矩阵的逐行划分,权值矩阵表示连续层之间的神经元连接。然后,我们提出了一种新的超图模型划分权重矩阵,以减少总的通信量,并确保处理器之间的计算负载平衡。在稀疏DNN上进行的实验表明,所提出的解决方案是高效和可扩展的。通过利用所提出的矩阵划分方案,我们的解决方案的性能进一步显着提高。

英文摘要:

The state-of-the-art deep neural networks (DNNs) have significant computational and data management requirements. The size of both training data and models continue to increase. Sparsification and pruning methods are shown to be effective in removing a large fraction of connections in DNNs. The resulting sparse networks present unique challenges to further improve the computational efficiency of training and inference in deep learning. Both the feedforward (inference) and backpropagation steps in stochastic gradient descent (SGD) algorithm for training sparse DNNs involve consecutive sparse matrix-vector multiplications (SpMVs). We first introduce a distributed-memory parallel SpMV-based solution for the SGD algorithm to improve its scalability. The parallelization approach is based on row-wise partitioning of weight matrices that represent neuron connections between consecutive layers. We then propose a novel hypergraph model for partitioning weight matrices to reduce the total communication volume and ensure computational load-balance among processors. Experiments performed on sparse DNNs demonstrate that the proposed solution is highly efficient and scalable. By utilizing the proposed matrix partitioning scheme, the performance of our solution is further improved significantly.

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

↑