一句话:提出依赖感知的TGNN训练框架Cascade,通过调度空间/时间无关事件并自适应更新频率,在保持精度下加速训练。
时序图神经网络(TGNN)训练受输入事件之间固有时间关系限制:增大批次可提升并行度,但会导致记忆更新稀疏、信息过时并降低精度;小批次则延迟高、硬件利用率低。为此,本文提出Cascade训练框架,依据节点的空间与时间依赖自适应提升并行度。其拓扑感知调度器将空间独立事件放入同一批次;再利用节点记忆相似性打破稳定节点上的时间依赖,打包更多时间独立事件;并根据运行时反馈自适应决定节点更新频率。相比当时最优TGNN训练框架,Cascade平均加速2.3倍(最高5.1倍),且不损害模型精度。
Temporal graph neural networks (TGNN) have gained significant momentum in many real-world dynamic graph tasks. These models use graph changes (i.e., events) as inputs to update nodes' status vectors (i.e., memories), which are then exploited to assist predictions. Despite their improved accuracies, the efficiency of TGNN training is significantly limited due to the inherent temporal relationship between the input events. Although larger training batches can improve parallelism and speed up TGNN training, they lead to infrequent memory updates, which cause outdated information and reduced accuracy. This trade-off forces current methods to use small batches, resulting in high latency and underutilized hardware. To address this, we propose an efficient TGNN training framework, Cascade, to adaptively boost TGNN training parallelism based on nodes' spatial and temporal dependencies. Cascade adopts a topology-aware scheduler that includes as many spatial-independent events in the same batches. Moreover, it leverages node memories' similarities to break temporal dependencies on stabilized nodes, enabling it to pack more temporal-independent events in the same batches. Additionally, Cascade adaptively decides nodes' update frequencies based on runtime feedback. Compared to prior state-of-the-art TGNN training frameworks, our approach can averagely achieve 2.3x (up to 5.1x) speed up without jeopardizing the resulted models' accuracy.