arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2006.10901cs.LGcs.DCstat.ML
收藏

用于深度学习的稀疏GPU内核

Sparse GPU Kernels for Deep Learning

Stanford University(斯坦福大学);Google Brain(谷歌大脑);DeepMind

Trevor Gale, Matei Zaharia, Cliff Young, Erich Elsen

摘要:

科学工作负载传统上利用高水平的稀疏性来加速计算并减少内存需求。虽然深度神经网络可以变得稀疏,但在GPU上实现实际的加速是困难的,因为这些应用具有相对中等的稀疏性水平,不足以使现有的稀疏内核优于其密集的对应物。在这项工作中,我们研究了深度学习应用中的稀疏矩阵,并确定了可用于加速计算的有利属性。基于这些见解,我们开发了高性能的GPU内核的两个稀疏矩阵运算广泛适用于神经网络:稀疏矩阵稠密矩阵乘法和采样稠密矩阵乘法。我们的内核在Nvidia V100 GPU上达到单精度峰值的27%。使用我们的内核,我们展示了稀疏的Transformer和MobileNet模型,实现了1.2- 2.1倍的加速比和高达12.8倍的内存节省,而不牺牲准确性。

英文摘要:

Scientific workloads have traditionally exploited high levels of sparsity to accelerate computation and reduce memory requirements. While deep neural networks can be made sparse, achieving practical speedups on GPUs is difficult because these applications have relatively moderate levels of sparsity that are not sufficient for existing sparse kernels to outperform their dense counterparts. In this work, we study sparse matrices from deep learning applications and identify favorable properties that can be exploited to accelerate computation. Based on these insights, we develop high-performance GPU kernels for two sparse matrix operations widely applicable in neural networks: sparse matrix-dense matrix multiplication and sampled dense-dense matrix multiplication. Our kernels reach 27% of single-precision peak on Nvidia V100 GPUs. Using our kernels, we demonstrate sparse Transformer and MobileNet models that achieve 1.2-2.1x speedups and up to 12.8x memory savings without sacrificing accuracy.

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

↑