StreamTGN:一种高效的流式时间图神经网络服务系统
StreamTGN: A GPU-Efficient Serving System for Streaming Temporal Graph Neural Networks
AI总结:
StreamTGN通过利用时间图更新的局部性,将流式时间图神经网络推理的复杂度从O(|V|)降低到O(|A|),实现高达4.5倍至739倍的加速,同时保持精度一致。
摘要:
时间图神经网络(TGNs)在动态图任务中取得最先进的性能,但现有系统仅关注训练加速,在推理时每次新边触发O(|V|)的嵌入更新,尽管只有少量节点受影响。我们提出StreamTGN,首个利用时间图更新固有局部性的流式TGN推理系统:在L层TGN中,新边仅影响端点L跳内的节点,通常在百万节点图中少于0.2%。StreamTGN维护持久的GPU驻留节点内存,并使用脏标志传播来确定受影响集合A,将每批复杂度从O(|V|)降低到O(|A|)且无精度损失。Drift-aware自适应重建调度和带宽流式传输进一步最大化吞吐量。在八个时间图(2K-2.6M节点)上的实验显示,TGN和TGAT的加速分别为4.5×-739×和最高4,207×,精度一致。StreamTGN与训练优化独立:结合SWIFT与StreamTGN在三种架构(TGN、TGAT、DySAT)上实现24×端到端加速。
英文摘要:
Temporal Graph Neural Networks (TGNs) achieve state-of-the-art performance on dynamic graph tasks, yet existing systems focus exclusively on accelerating training -- at inference time, every new edge triggers $O(|V|)$ embedding updates even though only a small fraction of nodes are affected. We present \textbf{StreamTGN}, the first streaming TGN inference system exploiting the inherent locality of temporal graph updates: in an $L$-layer TGN, a new edge affects only nodes within $L$ hops of the endpoints, typically less than 0.2\% on million-node graphs. StreamTGN maintains persistent GPU-resident node memory and uses dirty-flag propagation to identify the affected set $\mathcal{A}$, reducing per-batch complexity from $O(|V|)$ to $O(|\mathcal{A}|)$ with zero accuracy loss. Drift-aware adaptive rebuild scheduling and batched streaming with relaxed ordering further maximize throughput. Experiments on eight temporal graphs (2K--2.6M nodes) show 4.5$\times$--739$\times$ speedup for TGN and up to 4,207$\times$ for TGAT, with identical accuracy. StreamTGN is orthogonal to training optimizations: combining SWIFT with StreamTGN yields 24$\times$ end-to-end speedup across three architectures (TGN, TGAT, DySAT).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。