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

通过利用GPU上的稀疏性加速卷积神经网络

Accelerating convolutional neural network by exploiting sparsity on GPUs

Weizhi Xu, Yintai Sun, fhengyu Fan, Hui Yu, Xin Fu

AI总结:

针对CNN卷积运算耗时及特征图稀疏性导致的冗余计算与数据传输问题,提出两种GPU加速方法,分别通过减少零值计算和融合卷积池化层,在VGG-19等模型上实现最高4.3倍于cuDNN的加速。

摘要:

卷积神经网络(CNN)是一种重要的深度学习方法。卷积运算在CNN的总执行时间中占很大比例。用于卷积运算的特征图通常是稀疏的。对特征图中零值的乘法和加法对卷积结果是无用的。此外,传统方法中卷积层和池化层是分开计算的,这导致CPU和GPU之间频繁的数据传输。基于这些观察,我们提出了两种在GPU上加速CNN的新方法。第一种方法侧重于加速卷积运算并减少零值的计算。第二种方法将一个卷积层与随后的池化层的运算结合起来,以有效减少CPU和GPU之间的流量。对于第一种方法,我们从LeNet、AlexNet和GoogLeNet中提取一些卷积层,在GPU上的单层卷积相比cuDNN可以实现高达3.6倍的加速。在VGG-19上的实验在卷积运算上平均相比cuDNN实现了3.5倍的加速。对于第二种方法,在VGG-19上的实验平均相比cuDNN实现了4.3倍的加速。

英文摘要:

Convolutional neural network (CNN) is an important deep learning method. The convolution operation takes a large proportion of the total execution time for CNN. Feature maps for convolution operation are usually sparse. Multiplications and additions for zero values in the feature map are useless for convolution results. In addition, the convolution layer and pooling layer are computed separately in traditional methods, which leads to frequent data transfer between CPU and GPU. Based on these observations, we propose two new methods to accelerate CNN on GPUs. The first method focuses on accelerating convolution operation and reducing the calculation of zero values. The second method combines the operations of one convolution layer with the following pooling layer to effectively reduce traffic between CPU and GPU. For the first method, we extract some convolution layers from LeNet, AlexNet, and GoogLeNet, and can achieve up to 3.6X speedup over cuDNN for the single-layer convolution on GPU. Experiment on VGG-19 achieves 3.5X speedup over cuDNN for convolution operation on average. For the second method, the experiment on VGG-19 achieves 4.3X speedup over cuDNN on average.

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

↑