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

面向磁盘式GNN训练的内存竞争与I/O拥塞缓解方法

Reducing Memory Contention and I/O Congestion for Disk-based GNN Training

ShanghaiTech University(上海科技大学)

Qisheng Jiang, Lei Jia, Chundong Wang

AI总结:

针对磁盘式GNN训练中内存竞争与I/O拥塞问题,提出GNNDrive系统,通过整体缓冲区管理和异步特征提取优化,在Papers100M数据集上训练GraphSAGE时性能显著优于现有最先进系统。

摘要:

图神经网络(GNNs)已得到广泛应用。具备高维特征的大规模图日益常见,在普通机器上训练这类GNN并非易事。对于超大规模图,即便采用基于采样的GNN训练方法也无法高效运行,因为训练过程中很难将图的全部数据保存在内存中。此前已有研究利用固态硬盘(SSD)或其他存储设备扩展内存空间以支撑GNN训练,因此内存与I/O是实现高效磁盘式训练的关键。我们发现,当前最先进(SoTA)的磁盘式GNN训练系统存在严重问题:图的拓扑数据与特征数据之间存在内存竞争,且从SSD加载训练数据时会出现严重的I/O拥塞。为此我们开发了GNNDrive系统。GNNDrive的核心设计包括两点:1)通过跨采样与提取环节的整体缓冲区管理,最大限度降低内存占用;2)采用异步特征提取策略避免I/O拥塞。该系统还避免了关键路径上耗时的数据准备工作,充分利用软硬件资源。实验表明GNNDrive性能优异:例如在Papers100M数据集上训练GraphSAGE模型时,GNNDrive的速度分别比当前最先进的PyG+、Ginex和MariusGNN快16.9倍、2.6倍和2.7倍。

英文摘要:

Graph neural networks (GNNs) gain wide popularity. Large graphs with high-dimensional features become common and training GNNs on them is non-trivial on an ordinary machine. Given a gigantic graph, even sample-based GNN training cannot work efficiently, since it is difficult to keep the graph's entire data in memory during the training process. Leveraging a solid-state drive (SSD) or other storage devices to extend the memory space has been studied in training GNNs. Memory and I/Os are hence critical for effectual disk-based training. We find that state-of-the-art (SoTA) disk-based GNN training systems severely suffer from issues like the memory contention between a graph's topological and feature data, and severe I/O congestion upon loading data from SSD for training. We accordingly develop GNNDrive. GNNDrive 1) minimizes the memory footprint with holistic buffer management across sampling and extracting, and 2) avoids I/O congestion through a strategy of asynchronous feature extraction. It also avoids costly data preparation on the critical path and makes the most of software and hardware resources. Experiments show that GNNDrive achieves superior performance. For example, when training with the Papers100M dataset and GraphSAGE model, GNNDrive is faster than SoTA PyG+, Ginex, and MariusGNN by 16.9x, 2.6x, and 2.7x, respectively.

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

↑