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

图神经网络的缓存优先边采样加速SpMM核

Accelerating SpMM Kernel with Cache-First Edge Sampling for Graph Neural Networks

University of Washington(华盛顿大学);Facebook Inc.(Facebook公司)

Chien-Yu Lin, Liang Luo, Luis Ceze

摘要:

图神经网络(GNN)是一种新兴的深度学习模型类,可以从高度表达的图结构数据中提取有意义的表示,因此在更广泛的应用中越来越受欢迎。然而,当前的GNN遭受其稀疏密集矩阵乘法(SpMM)运算符的性能差,即使在使用强大的GPU时也是如此。我们的分析表明,在NVIDIA先进的V100 GPU上运行流行的GNN模型时,95%的推理时间可以花在SpMM上。这种SpMM性能瓶颈阻碍了GNN对大规模问题的适用性或更复杂的GNN模型的开发。为了解决这个推理时间瓶颈,我们引入了ES-SpMM,缓存优先边缘采样机制和协同设计的SpMM内核。ES-SpMM使用边采样来缩小图形的大小,以适应GPU的共享内存。因此,它降低了计算成本,提高了SpMM的缓存局部性。为了评估ES-SpMM的性能,我们将其与流行的GNN框架DGL集成,并使用代表性的GNN模型和数据集对其进行测试。我们的研究结果表明,ES-SpMM比高度优化的cuSPARSE SpMM内核性能高出4.35倍,没有精度损失,45.3倍,精度损失小于1%。

英文摘要:

Graph neural networks (GNNs), an emerging deep learning model class, can extract meaningful representations from highly expressive graph-structured data and are therefore gaining popularity for wider ranges of applications. However, current GNNs suffer from the poor performance of their sparse-dense matrix multiplication (SpMM) operator, even when using powerful GPUs. Our analysis shows that 95% of the inference time could be spent on SpMM when running popular GNN models on NVIDIA's advanced V100 GPU. Such SpMM performance bottleneck hinders GNNs' applicability to large-scale problems or the development of more sophisticated GNN models. To address this inference time bottleneck, we introduce ES-SpMM, a cache-first edge sampling mechanism and codesigned SpMM kernel. ES-SpMM uses edge sampling to downsize the graph to fit into GPU's shared memory. It thus reduces the computation cost and improves SpMM's cache locality. To evaluate ES-SpMM's performance, we integrated it with a popular GNN framework, DGL, and tested it using representative GNN models and datasets. Our results show that ES-SpMM outperforms the highly optimized cuSPARSE SpMM kernel by up to 4.35x with no accuracy loss and by 45.3x with less than a 1% accuracy loss.

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

↑