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

SpanGNN:通过生成子图训练实现内存高效的图神经网络

SpanGNN: Towards Memory-Efficient Graph Neural Networks via Spanning Subgraph Training

Beijing University of Posts and Telecommunications(北京邮电大学);Hong Kong University of Science and Technology(香港科技大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))

Xizhi Gu, Hongzheng Li, Shihong Gao, Xinyan Zhang, Lei Chen, Yingxia Shao

AI总结:

SpanGNN通过在一系列增量更新的生成子图上训练GNN,并结合方差缩减与噪声缩减的边采样策略,在保持模型准确率的同时显著降低峰值内存占用。

摘要:

图神经网络(GNN)在学习图数据方面具有卓越的能力。全图GNN训练通常具有较高的准确率,但在处理大规模图时会占用大量峰值内存,并遇到内存不足(Out-of-Memory)问题。为了解决这一内存问题,一种流行的方案是小批量(mini-batch)GNN训练。然而,小批量GNN训练会增加训练方差并牺牲模型准确率。在本文中,我们提出了一种新的利用生成子图(spanning subgraph)的内存高效GNN训练方法,称为SpanGNN。SpanGNN在一系列从空结构构建的生成子图上训练GNN模型。为了克服过高的峰值内存消耗问题,SpanGNN从原始图中选择一组边,在每个epoch之间增量更新生成子图。为了确保模型准确率,我们引入了两种类型的边采样策略(即方差缩减(variance-reduced)和噪声缩减(noise-reduced)),帮助SpanGNN为GNN学习选择高质量的边。我们在广泛使用的数据集上对SpanGNN进行了实验,证明了SpanGNN在模型性能和低峰值内存使用方面的优势。

英文摘要:

Graph Neural Networks (GNNs) have superior capability in learning graph data. Full-graph GNN training generally has high accuracy, however, it suffers from large peak memory usage and encounters the Out-of-Memory problem when handling large graphs. To address this memory problem, a popular solution is mini-batch GNN training. However, mini-batch GNN training increases the training variance and sacrifices the model accuracy. In this paper, we propose a new memory-efficient GNN training method using spanning subgraph, called SpanGNN. SpanGNN trains GNN models over a sequence of spanning subgraphs, which are constructed from empty structure. To overcome the excessive peak memory consumption problem, SpanGNN selects a set of edges from the original graph to incrementally update the spanning subgraph between every epoch. To ensure the model accuracy, we introduce two types of edge sampling strategies (i.e., variance-reduced and noise-reduced), and help SpanGNN select high-quality edges for the GNN learning. We conduct experiments with SpanGNN on widely used datasets, demonstrating SpanGNN's advantages in the model performance and low peak memory usage.

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

↑