arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2210.10737cs.LGcs.AI
收藏

RSC:通过随机化稀疏计算加速图神经网络训练

RSC: Accelerating Graph Neural Networks Training via Randomized Sparse Computations

Rice University(莱斯大学);The Hong Kong Polytechnic University(香港理工大学)

Zirui Liu, Shengyuan Chen, Kaixiong Zhou, Daochen Zha, Xiao Huang, Xia Hu

AI总结:

本文提出RSC框架,通过逐层和逐epoch优化计算资源分配、缓存采样矩阵及切换机制,首次实现用近似运算加速GNNs稀疏计算,在精度几乎无损下获11.6倍单算子与1.6倍端到端加速。

摘要:

图神经网络(GNNs)的训练极其耗时,因为基于稀疏图的运算难以被硬件加速。现有技术探索通过基于采样的近似来降低时间复杂度,以牺牲计算精度换取效率。基于此思想,先前的工作成功加速了基于稠密矩阵的运算(如卷积和线性运算),且精度下降可忽略不计。然而,与稠密矩阵不同,稀疏矩阵以不规则数据格式存储,导致每行/列的非零元素数量不同。因此,相比稠密矩阵,近似稀疏运算面临两个独特挑战:(1) 由于计算仅在非零元素上执行,我们无法直接控制近似稀疏运算的效率;(2) 由于不规则的数据格式,对稀疏矩阵进行子采样效率更低。为解决这些问题,我们的核心思想是通过逐层和逐epoch优化计算资源分配来控制精度与效率的权衡。具体而言,针对第一个挑战,我们为不同的稀疏运算定制计算资源,同时将总使用资源限制在一定预算内。针对第二个挑战,我们缓存先前采样的稀疏矩阵以减少逐epoch的采样开销。最后,我们提出一种切换机制,以提升使用近似运算训练的GNNs的泛化能力。为此,我们提出Randomized Sparse Computation,首次展示了使用近似运算训练GNNs的潜力。在实际应用中,rsc可实现单次稀疏运算高达11.6倍的加速,以及1.6倍的端到端实际运行时间加速,且精度下降可忽略不计。

英文摘要:

The training of graph neural networks (GNNs) is extremely time consuming because sparse graph-based operations are hard to be accelerated by hardware. Prior art explores trading off the computational precision to reduce the time complexity via sampling-based approximation. Based on the idea, previous works successfully accelerate the dense matrix based operations (e.g., convolution and linear) with negligible accuracy drop. However, unlike dense matrices, sparse matrices are stored in the irregular data format such that each row/column may have different number of non-zero entries. Thus, compared to the dense counterpart, approximating sparse operations has two unique challenges (1) we cannot directly control the efficiency of approximated sparse operation since the computation is only executed on non-zero entries; (2) sub-sampling sparse matrices is much more inefficient due to the irregular data format. To address the issues, our key idea is to control the accuracy-efficiency trade off by optimizing computation resource allocation layer-wisely and epoch-wisely. Specifically, for the first challenge, we customize the computation resource to different sparse operations, while limit the total used resource below a certain budget. For the second challenge, we cache previous sampled sparse matrices to reduce the epoch-wise sampling overhead. Finally, we propose a switching mechanisms to improve the generalization of GNNs trained with approximated operations. To this end, we propose Randomized Sparse Computation, which for the first time demonstrate the potential of training GNNs with approximated operations. In practice, rsc can achieve up to $11.6\times$ speedup for a single sparse operation and a $1.6\times$ end-to-end wall-clock time speedup with negligible accuracy drop.

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

↑