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

MLPInit:使用MLP初始化的极其简单的GNN训练加速方法

MLPInit: Embarrassingly Simple GNN Training Acceleration with MLP Initialization

Texas A&M University(德州农工大学);Snap Inc.(色拉布公司);Rice University(莱斯大学)

Xiaotian Han, Tong Zhao, Yozen Liu, Xia Hu, Neil Shah

AI总结:

本文提出MLPInit,一种通过用预训练的PeerMLP权重初始化GNN来加速训练的方法,在大幅提升训练速度的同时改善了预测精度。

摘要:

在大图上训练图神经网络(GNNs)是复杂且极其耗时的。这归因于稀疏矩阵乘法引起的开销,而在仅使用节点特征训练多层感知机(MLPs)时可以避免这些开销。MLPs通过忽略图上下文,对于图数据而言更简单且更快速,但它们通常会牺牲预测精度,限制了其在图数据上的应用。我们观察到,对于大多数基于消息传递的GNNs,我们可以通过设置具有相同形状的可训练参数,轻松推导出一个等效权重空间的类似MLP(我们称之为PeerMLP),这让我们好奇:使用来自完全训练的PeerMLP的权重的GNNs表现如何?令人惊讶的是,我们发现使用此类权重初始化的GNNs显著优于其PeerMLPs,这促使我们将PeerMLP训练作为GNN训练的前置初始化步骤。为此,我们提出了一种极其简单但极其有效的GNN训练加速初始化方法,称为MLPInit。我们在多个大规模图数据集和多种GNN架构上的广泛实验验证了MLPInit能够加速GNNs的训练(在OGB-Products上高达33倍加速),并通常提升预测性能(例如,在7个数据集上,GraphSAGE在节点分类任务上提升达7.97%,在4个数据集上,链接预测的指标Hits@10提升达17.81%)。代码可在https://github.com/snap-research/MLPInit-for-GNNs获取。

英文摘要:

Training graph neural networks (GNNs) on large graphs is complex and extremely time consuming. This is attributed to overheads caused by sparse matrix multiplication, which are sidestepped when training multi-layer perceptrons (MLPs) with only node features. MLPs, by ignoring graph context, are simple and faster for graph data, however they usually sacrifice prediction accuracy, limiting their applications for graph data. We observe that for most message passing-based GNNs, we can trivially derive an analog MLP (we call this a PeerMLP) with an equivalent weight space, by setting the trainable parameters with the same shapes, making us curious about \textbf{\emph{how do GNNs using weights from a fully trained PeerMLP perform?}} Surprisingly, we find that GNNs initialized with such weights significantly outperform their PeerMLPs, motivating us to use PeerMLP training as a precursor, initialization step to GNN training. To this end, we propose an embarrassingly simple, yet hugely effective initialization method for GNN training acceleration, called MLPInit. Our extensive experiments on multiple large-scale graph datasets with diverse GNN architectures validate that MLPInit can accelerate the training of GNNs (up to 33X speedup on OGB-Products) and often improve prediction performance (e.g., up to $7.97\%$ improvement for GraphSAGE across $7$ datasets for node classification, and up to $17.81\%$ improvement across $4$ datasets for link prediction on metric Hits@10). The code is available at \href{https://github.com/snap-research/MLPInit-for-GNNs}.

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

↑