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

SENSEi:用于加速图神经网络的输入敏感编译

SENSEi: Input-Sensitive Compilation for Accelerating GNNs

University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);NVIDIA(英伟达)

Damitha Lenadora, Vimarsh Sathia, Gerasimos Gerogiannis, Serif Yesil, Josep Torrellas, Charith Mendis

AI总结:

针对图神经网络加速问题,提出SENSEi输入敏感编译系统,通过矩阵重结合枚举与剪枝、在线轻量代价模型选优,在GPU和CPU上实现了多种GNN的显著加速,且可与不同GNN系统协同优化。

摘要:

多年来,研究人员已提出众多框架与优化技术来加速图神经网络(GNN)。与这些系统中探索的优化方案相比,我们观察到,GNN计算的不同矩阵重结合方式会产生全新的输入敏感性能表现。基于这一观察,我们提出了SENSEi系统:该系统根据GNN计算的不同矩阵重结合方式,提供多种稀疏与稠密矩阵基元组合方案,并依据输入属性从中选择最优方案。SENSEi分两个阶段运行:(1)离线编译阶段:枚举所有能产生不同稀疏-稠密矩阵组合的有效重结合方式,并采用与输入无关的剪枝技术,剔除明显无收益的候选方案;(2)在线运行时系统:对剩余候选方案进行探索,利用轻量级代价模型,结合输入图的特征与给定硬件平台上的嵌入维度,选择最优的重结合方式。在广泛的配置下,SENSEi在GPU和CPU上分别实现了图卷积网络最高2.012倍和1.85倍的加速,在图注意力网络上分别实现了最高6.294倍和16.274倍的加速。我们还证明,该技术可推广至各类GNN变体,包括需要采样的GNN模型。此外,SENSEi的技术与底层GNN系统无关,可在多种不同的实现方案中产生协同优化效果。

英文摘要:

Over the years, many frameworks and optimization techniques have been proposed to accelerate graph neural networks (GNNs). Compared to the optimizations explored in these systems, we observe that different matrix re-associations of GNN computations lead to novel input-sensitive performance behavior. We leverage this observation to propose SENSEi, a system that exposes different sparse and dense matrix primitive compositions based on different matrix re-associations of GNN computations and selects the best among them based on input attributes. SENSEi executes in two stages: (1) an offline compilation stage that enumerates all valid re-associations leading to different sparse-dense matrix compositions and uses input-oblivious pruning techniques to prune away clearly unprofitable candidates and (2) an online runtime system that explores the remaining candidates and uses light-weight cost models to select the best re-association based on the input graph and the embedding sizes on a given hardware platform. On a wide range of configurations, SENSEi achieves speedups of up to $2.012\times$ and $1.85\times$ on graph convolutional networks and up to $6.294\times$ and $16.274\times$ on graph attention networks, on GPUs and CPUs respectively. We also show that its technique generalizes to GNN variants, including those that require sampling. Furthermore, we show that SENSEi's techniques are agnostic to the underlying GNN system, and can be used to yield synergistic improvements across a diverse set of implementations.

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

↑