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

Escoin:基于GPU的高效稀疏卷积神经网络推理

Escoin: Efficient Sparse Convolutional Neural Network Inference on GPUs

University of Texas at Austin(德克萨斯大学奥斯汀分校)

Xuhao Chen

摘要:

深度神经网络在许多人工智能应用(例如计算机视觉)中已经实现了显著的准确性,但代价是大量参数和高计算复杂性。权值修剪可以通过去除网络中的冗余参数来压缩DNN模型,但它会带来权值矩阵的稀疏性,从而使GPU上的计算效率低下。虽然修剪可以去除80%以上的权重,但在GPU上运行模型时,它实际上会损害推理性能(速度)。两个主要问题导致GPU上的性能不令人满意。首先,降低矩阵乘法上的卷积减少了数据重用机会并浪费了内存带宽。其次,修剪带来的稀疏性使得计算不规则,这导致在大规模并行GPU上运行时效率低下。为了克服这两个限制,我们提出了Escort,一个有效的稀疏卷积神经网络的GPU。我们选择直接计算稀疏卷积,而不是使用降低方法。然后,我们为直接稀疏卷积内核编排并行性和局部性,并应用定制的优化技术来进一步提高性能。在NVIDIA GPU上的测试表明,与CUBLAS和SPARSE相比,Escort可以分别将稀疏卷积速度提高2.63倍和3.07倍,推理速度提高1.43倍和1.69倍。

英文摘要:

Deep neural networks have achieved remarkable accuracy in many artificial intelligence applications, e.g. computer vision, at the cost of a large number of parameters and high computational complexity. Weight pruning can compress DNN models by removing redundant parameters in the networks, but it brings sparsity in the weight matrix, and therefore makes the computation inefficient on GPUs. Although pruning can remove more than 80% of the weights, it actually hurts inference performance (speed) when running models on GPUs. Two major problems cause this unsatisfactory performance on GPUs. First, lowering convolution onto matrix multiplication reduces data reuse opportunities and wastes memory bandwidth. Second, the sparsity brought by pruning makes the computation irregular, which leads to inefficiency when running on massively parallel GPUs. To overcome these two limitations, we propose Escort, an efficient sparse convolutional neural networks on GPUs. Instead of using the lowering method, we choose to compute the sparse convolutions directly. We then orchestrate the parallelism and locality for the direct sparse convolution kernel, and apply customized optimization techniques to further improve performance. Evaluation on NVIDIA GPUs show that Escort can improve sparse convolution speed by 2.63x and 3.07x, and inference speed by 1.43x and 1.69x, compared to CUBLAS and CUSPARSE respectively.

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

↑