Skip to main content
QUICK REVIEW

[Paper Review] MLPInit: Embarrassingly Simple GNN Training Acceleration with MLP Initialization

Xiaotian Han, Tong Zhao|arXiv (Cornell University)|Sep 30, 2022
Advanced Graph Neural NetworksComputer Science12 citations
TL;DR

MLPInit proposes a simple yet effective method to accelerate Graph Neural Network (GNN) training by initializing GNNs with weights from a pre-trained PeerMLP— an MLP with identical architecture and weight space. This approach achieves up to 33× speedup in training time and improves prediction accuracy by up to 7.97% on node classification and 17.81% on link prediction across multiple benchmarks.

ABSTRACT

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 extbf{\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}.

Motivation & Objective

  • Address the high computational cost and long training times of GNNs on large-scale graphs.
  • Investigate whether the weight space of message-passing GNNs and MLPs can be made equivalent.
  • Explore if training a PeerMLP first and using its converged weights to initialize a GNN can accelerate training and improve performance.
  • Develop a simple, plug-and-play initialization method that requires no architectural changes or hyperparameter tuning beyond standard GNN training.
  • Demonstrate that GNNs initialized with PeerMLP weights outperform both randomly initialized GNNs and their PeerMLP counterparts.

Proposed method

  • Define a PeerMLP as an MLP with identical architecture and weight dimensions to a given GNN, sharing the same trainable parameter space.
  • Train the PeerMLP on the same graph data using only node features, bypassing expensive sparse message passing and achieving faster convergence.
  • Use the converged weights of the PeerMLP as the initial weights for the corresponding GNN.
  • Fine-tune the GNN from this initialized state, leveraging the pre-learned feature representations to accelerate convergence.
  • Apply the method across diverse GNN architectures (e.g., GraphSAGE, GCN, ClusterGCN) and large-scale datasets (e.g., OGB-products, Reddit, Flickr).
  • Use standard training protocols with early stopping and validation-based model selection to ensure fair comparison with random initialization.

Experimental results

Research questions

  • RQ1Can the weight space of a GNN and its corresponding PeerMLP be made identical in terms of shape and dimension?
  • RQ2Does training a PeerMLP on node features alone lead to a representation that, when transferred to the GNN, improves downstream performance compared to random initialization?
  • RQ3Can the converged weights of a PeerMLP serve as an effective initialization for GNNs, reducing the number of training epochs required for convergence?
  • RQ4Does this initialization method consistently accelerate training across diverse GNN architectures and large-scale graph datasets?
  • RQ5Does the performance of the GNN initialized with PeerMLP weights exceed that of the PeerMLP itself on node classification and link prediction tasks?

Key findings

  • MLPInit achieves up to 33× speedup in GNN training time on the OGB-products dataset compared to random initialization.
  • GraphSAGE trained with MLPInit improves node classification accuracy by up to 7.97% across seven datasets compared to random initialization.
  • For link prediction, MLPInit improves Hits@10 performance by up to 17.81% across four datasets.
  • GNNs initialized with PeerMLP weights converge in less than half the number of epochs compared to randomly initialized counterparts.
  • The PeerMLP itself performs worse than the GNN when initialized with its converged weights, indicating that the GNN’s message-passing mechanism benefits from the transferred representation.
  • The method is robust across diverse GNN architectures (e.g., GraphSAGE, GCN, ClusterGCN, GraphSAINT) and datasets (e.g., Reddit, Flickr, OGB-arXiv, OGB-products).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.