VersaGNN:一个用于图神经网络的通用加速器
VersaGNN: a Versatile accelerator for Graph neural networks
摘要:
\textit{Graph Neural Network}(GNN)是一种很有前途的分析图结构数据的方法,它通过节点级消息传递巧妙地捕获它们的依赖信息。它在节点分类、图匹配、聚类和图生成等许多任务中都取得了最先进的性能。由于GNN在非欧几里德数据上操作,它们不规则的数据访问模式会在传统架构(如GPU和CPU)上造成相当大的计算成本和开销。我们的分析表明,GNN采用混合计算模型。\textit{Aggregation}(或\textit{Message Passing})阶段执行向量加法,其中以不规则步幅获取向量。\textit{Transformation}(或\textit{Node Embedding})阶段可以是密集矩阵乘法或稀疏-密集矩阵乘法。在这项工作中,我们提出了\textit{VersaGNN},一个超高效的,基于systolic-array的通用硬件加速器,统一了密集和稀疏矩阵乘法。通过将这种单一优化的脉动阵列应用于聚合和转换阶段,我们显着降低了芯片尺寸和能耗。然后,我们将计算引擎划分为分块脉动阵列,以支持\textit{Strassen}的密集矩阵乘法算法,从而大大减少乘法的数量,并实现GNN的高吞吐量计算。为了平衡稀疏-密集矩阵乘法的工作量,我们还引入了一种贪婪算法,将压缩格式的稀疏子矩阵合并为压缩子矩阵,以减少计算周期。与当前最先进的GNN软件框架相比,\textit{VersaGNN}在CPU上实现了平均3712 $\times$的加速比和1301.25 $\times$的能量减少,在GPU上实现了35.4 $\times$的加速比和17.66 $\times$的能量减少。
英文摘要:
\textit{Graph Neural Network} (GNN) is a promising approach for analyzing graph-structured data that tactfully captures their dependency information via node-level message passing. It has achieved state-of-the-art performances in many tasks, such as node classification, graph matching, clustering, and graph generation. As GNNs operate on non-Euclidean data, their irregular data access patterns cause considerable computational costs and overhead on conventional architectures, such as GPU and CPU. Our analysis shows that GNN adopts a hybrid computing model. The \textit{Aggregation} (or \textit{Message Passing}) phase performs vector additions where vectors are fetched with irregular strides. The \textit{Transformation} (or \textit{Node Embedding}) phase can be either dense or sparse-dense matrix multiplication. In this work, We propose \textit{VersaGNN}, an ultra-efficient, systolic-array-based versatile hardware accelerator that unifies dense and sparse matrix multiplication. By applying this single optimized systolic array to both aggregation and transformation phases, we have significantly reduced chip sizes and energy consumption. We then divide the computing engine into blocked systolic arrays to support the \textit{Strassen}'s algorithm for dense matrix multiplication, dramatically scaling down the number of multiplications and enabling high-throughput computation of GNNs. To balance the workload of sparse-dense matrix multiplication, we also introduced a greedy algorithm to combine sparse sub-matrices of compressed format into condensed ones to reduce computational cycles. Compared with current state-of-the-art GNN software frameworks, \textit{VersaGNN} achieves on average 3712$\times$ speedup with 1301.25$\times$ energy reduction on CPU, and 35.4$\times$ speedup with 17.66$\times$ energy reduction on GPU.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。