InferTurbo:一种用于加速巨型图上图神经网络全图推理的可扩展系统
InferTurbo: A Scalable System for Boosting Full-graph Inference of Graph Neural Network over Huge Graphs
AI总结:
针对巨型图GNN推理面临的可扩展性、采样不一致和冗余计算挑战,提出可扩展系统InferTurbo,采用类GAS模式及影子节点等策略实现无采样全图推理,2小时内完成千亿边规模图推理,性能显著优于传统流水线。
摘要:
GNN推理是一项复杂的任务,尤其是在具有巨型图的工业场景中,这主要面临三大挑战:针对巨型图全图推理的可扩展性、由随机加速策略(如采样)导致的不一致性,以及严重的冗余计算问题。为了解决上述挑战,我们提出了一种名为InferTurbo的可扩展系统,以加速工业场景中的GNN推理任务。受“像顶点一样思考”理念的启发,我们提出了一种类GAS(Gather-Apply-Scatter,收集-应用-散射)模式来描述GNN推理的计算范式和数据流。GNN的计算以迭代方式表达,其中顶点通过入边收集消息,并通过将这些消息转发至相关的GNN层来更新其状态信息,随后通过出边将更新后的信息发送给其他顶点。遵循该模式,所提出的InferTurbo可以使用替代后端(例如批处理系统或图计算系统)来构建。此外,InferTurbo引入了影子节点和部分收集等策略来处理具有大度数的节点,以实现更好的负载均衡。借助InferTurbo,可以在全图上分层进行GNN推理,而无需采样和冗余计算。实验结果表明,我们的系统对于在包含许多相邻边的中心节点上的图推理任务是鲁棒且高效的。同时,与传统的推理流水线相比,该系统获得了显著的性能提升,并且能够在2小时内完成对包含数百亿个节点和数千亿条边的图进行GNN推理任务。
英文摘要:
GNN inference is a non-trivial task, especially in industrial scenarios with giant graphs, given three main challenges, i.e., scalability tailored for full-graph inference on huge graphs, inconsistency caused by stochastic acceleration strategies (e.g., sampling), and the serious redundant computation issue. To address the above challenges, we propose a scalable system named InferTurbo to boost the GNN inference tasks in industrial scenarios. Inspired by the philosophy of ``think-like-a-vertex", a GAS-like (Gather-Apply-Scatter) schema is proposed to describe the computation paradigm and data flow of GNN inference. The computation of GNNs is expressed in an iteration manner, in which a vertex would gather messages via in-edges and update its state information by forwarding an associated layer of GNNs with those messages and then send the updated information to other vertexes via out-edges. Following the schema, the proposed InferTurbo can be built with alternative backends (e.g., batch processing system or graph computing system). Moreover, InferTurbo introduces several strategies like shadow-nodes and partial-gather to handle nodes with large degrees for better load balancing. With InferTurbo, GNN inference can be hierarchically conducted over the full graph without sampling and redundant computation. Experimental results demonstrate that our system is robust and efficient for inference tasks over graphs containing some hub nodes with many adjacent edges. Meanwhile, the system gains a remarkable performance compared with the traditional inference pipeline, and it can finish a GNN inference task over a graph with tens of billions of nodes and hundreds of billions of edges within 2 hours.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。