arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.15113cs.LGcs.DC
收藏

MSPipe:基于陈旧性感知流水线的高效时序图神经网络训练

MSPipe: Efficient Temporal GNN Training via Staleness-Aware Pipeline

The University of Hong Kong(香港大学)

Guangming Sheng, Junwei Su, Chao Huang, Chuan Wu

AI总结:

提出MSPipe框架,通过陈旧性感知的在线流水线调度和缓解机制,在不损失准确性的前提下将MTGNN训练加速至2.45倍,并保持与vanilla GNN相同的收敛率。

摘要:

基于记忆的时序图神经网络(MTGNNs)是一类利用节点记忆模块来捕获和保留长期时序依赖的时序图神经网络,与无记忆的同类网络相比,其性能更优。然而,MTGNNs中记忆模块为获取最新信息而进行的迭代读取和更新过程必须遵循时序依赖,这引入了显著的开销并限制了训练吞吐量。现有的针对静态图神经网络的优化方法因训练范式、模型架构的差异以及缺乏记忆模块而不能直接应用于MTGNNs。此外,这些方法未能有效应对时序依赖带来的挑战,因此对MTGNN训练无效。在本文中,我们提出了MSPipe,一个通用且高效的MTGNN框架,在保持模型准确性的同时最大化训练吞吐量。我们的设计通过将陈旧性整合到记忆模块中,解决了MTGNNs中获取和更新节点记忆状态所特有的挑战。然而,简单地在记忆模块中引入预定义的陈旧性界限以打破时序依赖,可能导致性能次优且缺乏跨不同模型和数据集的泛化能力。为解决此问题,我们在MSPipe中引入了一种在线流水线调度算法,该算法以最小的陈旧性策略性地打破时序依赖,并延迟记忆获取以获得更新的记忆状态。此外,我们设计了一种陈旧性缓解机制以增强训练收敛性和模型准确性。我们提供了收敛性分析,并证明MSPipe保持了与基于样本的vanilla GNN训练相同的收敛率。实验结果表明,MSPipe在不牺牲准确性的情况下实现了高达2.45倍的加速,使其成为高效MTGNN训练的有前景的解决方案。

英文摘要:

Memory-based Temporal Graph Neural Networks (MTGNNs) are a class of temporal graph neural networks that utilize a node memory module to capture and retain long-term temporal dependencies, leading to superior performance compared to memory-less counterparts. However, the iterative reading and updating process of the memory module in MTGNNs to obtain up-to-date information needs to follow the temporal dependencies. This introduces significant overhead and limits training throughput. Existing optimizations for static GNNs are not directly applicable to MTGNNs due to differences in training paradigm, model architecture, and the absence of a memory module. Moreover, they do not effectively address the challenges posed by temporal dependencies, making them ineffective for MTGNN training. In this paper, we propose MSPipe, a general and efficient framework for MTGNNs that maximizes training throughput while maintaining model accuracy. Our design addresses the unique challenges associated with fetching and updating node memory states in MTGNNs by integrating staleness into the memory module. However, simply introducing a predefined staleness bound in the memory module to break temporal dependencies may lead to suboptimal performance and lack of generalizability across different models and datasets. To solve this, we introduce an online pipeline scheduling algorithm in MSPipe that strategically breaks temporal dependencies with minimal staleness and delays memory fetching to obtain fresher memory states. Moreover, we design a staleness mitigation mechanism to enhance training convergence and model accuracy. We provide convergence analysis and prove that MSPipe maintains the same convergence rate as vanilla sample-based GNN training. Experimental results show that MSPipe achieves up to 2.45x speed-up without sacrificing accuracy, making it a promising solution for efficient MTGNN training.

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

↑