[论文解读] Graph Neural Network Training Systems: A Performance Comparison of Full-Graph and Mini-Batch
本文对图神经网络(GNN)的全图训练与小批量训练系统进行了全面的实证比较,评估了多种数据集、GNN架构及硬件配置下的代表性系统。研究发现,小批量训练在保持相近准确率的同时,收敛速度始终比全图训练快2.4倍至15.2倍,凸显了将准确率达成时间作为性能指标的重要性,并强调应为每种方法单独进行超参数调优。
Graph Neural Networks (GNNs) have gained significant attention in recent years due to their ability to learn representations of graph-structured data. Two common methods for training GNNs are mini-batch training and full-graph training. Since these two methods require different training pipelines and systems optimizations, two separate classes of GNN training systems emerged, each tailored for one method. Works that introduce systems belonging to a particular category predominantly compare them with other systems within the same category, offering limited or no comparison with systems from the other category. Some prior work also justifies its focus on one specific training method by arguing that it achieves higher accuracy than the alternative. The literature, however, has incomplete and contradictory evidence in this regard. In this paper, we provide a comprehensive empirical comparison of representative full-graph and mini-batch GNN training systems. We find that the mini-batch training systems consistently converge faster than the full-graph training ones across multiple datasets, GNN models, and system configurations. We also find that mini-batch training techniques converge to similar to or often higher accuracy values than full-graph training ones, showing that mini-batch sampling is not necessarily detrimental to accuracy. Our work highlights the importance of comparing systems across different classes, using time-to-accuracy rather than epoch time for performance comparison, and selecting appropriate hyperparameters for each training method separately.
研究动机与目标
- 为解决文献中全图与小批量GNN训练系统之间缺乏一致实证比较的问题。
- 通过在多样化数据集和GNN模型上使用代表性系统,评估全图与小批量训练方法之间的性能权衡。
- 探究在收敛速度与最终准确率方面,是否存在一种训练方法始终优于另一种。
- 评估每种方法对超参数选择的敏感性,特别是模型深度与隐藏维度大小的影响。
- 倡导在未来的系统评估中,优先采用准确率达成时间而非训练轮次时间作为主要性能指标。
提出的方法
- 本研究在Reddit、Cora以及OGB数据集等多组数据集上,评估了具有代表性的全图训练系统(如PipeGCN)与小批量训练系统(如DGL)。
- 采用准确率达成时间作为收敛度量标准,即达到目标验证准确率阈值所需的时间,而非基于训练轮次的指标。
- 针对每种训练方法,独立执行超参数搜索,以确保公平比较,重点关注初始学习率、批量大小以及模型架构(深度与宽度)。
- 评估涵盖多种GNN模型:GCN、GraphSAGE与GAT,覆盖不同硬件配置与图规模。
- 作者分析了模型深度与隐藏维度对准确率与收敛速度的影响,尤其关注深层GNN中的过平滑问题。
- 对系统级优化技术(如图划分、消息传递模式与数据加载策略)进行分析,以识别每种方法的性能瓶颈。
实验结果
研究问题
- RQ1在多样化数据集与GNN模型上,小批量训练是否始终比全图训练收敛更快?
- RQ2当为每种方法独立调优超参数时,全图与小批量训练系统是否能达到相似的最终准确率?
- RQ3两种训练方法对模型超参数(如深度与隐藏维度大小)变化的敏感性如何?
- RQ4在系统比较中,使用准确率达成时间而非训练轮次时间作为性能指标,其影响是什么?
- RQ5哪种训练方法对超参数变化更具鲁棒性,且在深层GNN中更不易出现过平滑问题?
主要发现
- 在所有评估的数据集、GNN模型与硬件环境下,小批量训练系统的收敛速度比全图训练系统快2.4倍至15.2倍。
- 当为每种方法独立调优超参数时,两种训练方法均能达到相近的最终准确率,表明二者在准确率方面无本质优势差异。
- 与全图训练相比,小批量训练对超参数变化(尤其是模型深度与隐藏维度大小)具有显著更强的鲁棒性。
- 全图训练对超参数选择更为敏感,在不同配置下的准确率波动更大。
- 小批量训练在深层GNN中更不易出现过平滑问题,即使在8层网络中也未观察到显著准确率下降;而全图训练则更早且更严重地出现性能退化。
- 本研究证明,准确率达成时间作为性能指标比训练轮次时间更具实际意义,尤其在收敛标准不一致时更为适用。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。