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

InkStream:通过增量更新在流图上实现实时 GNN 推理

InkStream: Real-time GNN Inference on Streaming Graphs via Incremental Update

National University of Singapore(新加坡国立大学)

Dan Wu, Zhaoying Li, Tulika Mitra

AI总结:

本文提出 InkStream,利用事件驱动的层间传播与层内增量更新,在流图上以极低开销实现与全量推理一致的实时 GNN 推理,并在 CPU/GPU 集群上取得显著加速。

摘要:

为静态图设计的经典图神经网络(GNN)推理方法并不适合随时间演化的流图。流图固有的动态性要求持续更新,这给 GPU 上的加速带来了独特挑战。我们基于两个关键洞察来应对这些挑战:(1)在 k 跳邻域内,当模型使用 min 或 max 作为聚合函数时,相当一部分节点不会受到被修改边的影响;(2)当模型权重保持不变而图结构发生变化时,节点嵌入可以随时间增量演化,只需计算邻域中受影响的部分。基于这些洞察,我们提出了一种名为 InkStream 的新方法,专为实时推理而设计,以最少的内存访问和计算量,同时确保输出与传统方法完全相同。InkStream 的运行原则是仅在必要时传播和获取数据。它使用基于事件的系统来控制层间影响传播以及节点嵌入的层内增量更新。InkStream 具有高度可扩展性,并且易于配置,允许用户创建和处理自定义事件。我们展示了只需不到 10 行额外用户代码,即可支持 GCN、GraphSAGE 和 GIN 等流行 GNN 模型。我们在四个大图上使用三种 GNN 模型进行的实验表明,InkStream 在 CPU 集群上实现了 2.5–427× 的加速,在两个不同的 GPU 集群上实现了 2.4–343× 的加速,同时产生与在最新图快照上进行 GNN 模型推理完全相同的输出。

英文摘要:

Classic Graph Neural Network (GNN) inference approaches, designed for static graphs, are ill-suited for streaming graphs that evolve with time. The dynamism intrinsic to streaming graphs necessitates constant updates, posing unique challenges to acceleration on GPU. We address these challenges based on two key insights: (1) Inside the $k$-hop neighborhood, a significant fraction of the nodes is not impacted by the modified edges when the model uses min or max as aggregation function; (2) When the model weights remain static while the graph structure changes, node embeddings can incrementally evolve over time by computing only the impacted part of the neighborhood. With these insights, we propose a novel method, InkStream, designed for real-time inference with minimal memory access and computation, while ensuring an identical output to conventional methods. InkStream operates on the principle of propagating and fetching data only when necessary. It uses an event-based system to control inter-layer effect propagation and intra-layer incremental updates of node embedding. InkStream is highly extensible and easily configurable by allowing users to create and process customized events. We showcase that less than 10 lines of additional user code are needed to support popular GNN models such as GCN, GraphSAGE, and GIN. Our experiments with three GNN models on four large graphs demonstrate that InkStream accelerates by 2.5-427$\times$ on a CPU cluster and 2.4-343$\times$ on two different GPU clusters while producing identical outputs as GNN model inference on the latest graph snapshot.

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

↑