arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.00924cs.LG
收藏

LMC:通过具有可证明收敛性的子图采样实现 GNN 快速训练

LMC: Fast Training of GNNs via Subgraph Sampling with Provable Convergence

University of Science and Technology of China(中国科学技术大学)

Zhihao Shi, Xize Liang, Jie Wang

AI总结:

针对大规模 GNN 训练中的邻居爆炸与子图采样梯度偏差问题,本文提出可证明收敛的 LMC,通过前后向消息补偿获得准确小批量梯度并提升效率。

摘要:

基于消息传递的图神经网络(GNN)已在许多实际应用中取得巨大成功。然而,在大规模图上训练 GNN 会受到众所周知的邻居爆炸问题的影响,即节点的依赖关系数量随消息传递层数呈指数级增长。子图级采样方法是一类很有前景的小批量训练技术,它们在反向传播中丢弃小批量之外的消息,以避免邻居爆炸问题,但代价是降低梯度估计的准确性。这给其收敛性分析和收敛速度带来了重大挑战,从而严重限制其可靠的实际应用。为应对这一挑战,我们提出一种具有收敛保证的新型子图级采样方法,即局部消息补偿(Local Message Compensation,LMC)。据我们所知,LMC 是首个具有可证明收敛性的子图级采样方法。LMC 的关键思想是基于反向传播的消息传递形式,在反向传播中检索被丢弃的消息。通过在前向传播和反向传播中对被丢弃的消息进行高效且有效的补偿,LMC 能够计算准确的小批量梯度,从而加快收敛。我们进一步证明,LMC 会收敛到 GNN 的一阶驻点。在大规模基准任务上的实验表明,LMC 在效率方面显著优于最先进的子图级采样方法。

英文摘要:

The message passing-based graph neural networks (GNNs) have achieved great success in many real-world applications. However, training GNNs on large-scale graphs suffers from the well-known neighbor explosion problem, i.e., the exponentially increasing dependencies of nodes with the number of message passing layers. Subgraph-wise sampling methods -- a promising class of mini-batch training techniques -- discard messages outside the mini-batches in backward passes to avoid the neighbor explosion problem at the expense of gradient estimation accuracy. This poses significant challenges to their convergence analysis and convergence speeds, which seriously limits their reliable real-world applications. To address this challenge, we propose a novel subgraph-wise sampling method with a convergence guarantee, namely Local Message Compensation (LMC). To the best of our knowledge, LMC is the {\it first} subgraph-wise sampling method with provable convergence. The key idea of LMC is to retrieve the discarded messages in backward passes based on a message passing formulation of backward passes. By efficient and effective compensations for the discarded messages in both forward and backward passes, LMC computes accurate mini-batch gradients and thus accelerates convergence. We further show that LMC converges to first-order stationary points of GNNs. Experiments on large-scale benchmark tasks demonstrate that LMC significantly outperforms state-of-the-art subgraph-wise sampling methods in terms of efficiency.

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

↑