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

DiskGNN:为核外 GNN 训练弥合 I/O 效率与模型准确率

DiskGNN: Bridging I/O Efficiency and Model Accuracy for Out-of-Core GNN Training

Southern University of Science and Technology(南方科技大学);UC Berkeley(加州大学伯克利分校);Centre for Perceptual and Interactive Intelligence(感知与交互智能中心);New York University(纽约大学);Amazon(亚马逊);AWS Shanghai AI Lab(亚马逊云科技上海人工智能实验室)

Renjie Liu, Yichuan Wang, Xiao Yan, Haitian Jiang, Zhenkun Cai, Minjie Wang, Bo Tang, Jinyang Li

AI总结:

本文提出 DiskGNN,通过离线采样、连续特征打包、四级缓存、批量打包和流水线训练,解决核外 GNN 训练的读放大与分区准确率问题,较最先进系统提速超 8 倍且准确率不降。

摘要:

图神经网络(GNN)是专门面向图数据的机器学习模型,并在许多应用中得到广泛使用。为了在超出 CPU 内存的大规模图上训练 GNN,已有若干系统将数据存储在磁盘上并执行核外处理。然而,这些系统要么在读取通常小于一个磁盘页的节点特征时遭受读放大,要么因将图视为互不相连的分区而导致模型准确率下降。为弥补这一差距,我们构建了一个名为 DiskGNN 的系统,它实现了较高的 I/O 效率,从而在不损害模型准确率的情况下加快训练。DiskGNN 使用的关键技术是离线采样,它有助于将图采样与模型计算解耦。具体而言,通过提前执行图采样,DiskGNN 获取模型计算将访问的节点特征,并利用这些信息将目标节点特征在磁盘上连续打包,以避免读放大。此外,DiskGNN 还采用了包括四级特征存储在内的设计,以充分利用内存层次结构来缓存节点特征并减少磁盘访问;采用批量打包以加速特征打包过程;并采用流水线训练使磁盘访问与其他操作重叠。我们将 DiskGNN 与 Ginex 和 MariusGNN 进行了比较,后两者是核外 GNN 训练的最先进系统。结果表明,DiskGNN 能够将基线速度提升超过 8 倍,同时达到与其最佳模型准确率相匹配的水平。

英文摘要:

Graph neural networks (GNNs) are machine learning models specialized for graph data and widely used in many applications. To train GNNs on large graphs that exceed CPU memory, several systems store data on disk and conduct out-of-core processing. However, these systems suffer from either read amplification when reading node features that are usually smaller than a disk page or degraded model accuracy by treating the graph as disconnected partitions. To close this gap, we build a system called DiskGNN, which achieves high I/O efficiency and thus fast training without hurting model accuracy. The key technique used by DiskGNN is offline sampling, which helps decouple graph sampling from model computation. In particular, by conducting graph sampling beforehand, DiskGNN acquires the node features that will be accessed by model computation, and such information is utilized to pack the target node features contiguously on disk to avoid read amplification. Besides, \name{} also adopts designs including four-level feature store to fully utilize the memory hierarchy to cache node features and reduce disk access, batched packing to accelerate the feature packing process, and pipelined training to overlap disk access with other operations. We compare DiskGNN with Ginex and MariusGNN, which are state-of-the-art systems for out-of-core GNN training. The results show that DiskGNN can speed up the baselines by over 8x while matching their best model accuracy.

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

↑