Training MLPs on Graphs without Supervision

Zehong Wang, Zheyuan Zhang, Chuxu Zhang, Yanfang Ye

Abstract

Graph Neural Networks (GNNs) are highly effective for graph-structured data but suffer from significant inference latency due to recursive neighborhood fetching. Multi-Layer Perceptrons (MLPs) offer a faster alternative but typically fail to capture structural information. We present SimMLP, a novel self-supervised framework that aligns MLP and GNN embeddings during pre-training. This approach allows the MLP to inherit structural inductive biases, achieving GNN-level performance with up to a 126x inference speedup. SimMLP demonstrates superior performance in node classification, link prediction, and graph classification, particularly in "cold-start" scenarios where structural data is missing at inference time.

Introduction

Graph Neural Networks (GNNs) have become the standard for learning on graph data, such as social networks and fraud detection systems. However, their reliance on "message passing"—the iterative fetching of data from a node’s neighbors—presents a major bottleneck for real-time applications. While MLPs are significantly faster because they only process individual node features, they traditionally ignore the graph's underlying structure, leading to poor accuracy.

Previous attempts to bridge this gap, such as knowledge distillation, often result in MLPs that merely mimic GNN outputs without internalizing structural patterns. SimMLP addresses this by creating an MLP-based model that is theoretically and practically equivalent to a GNN in its ability to leverage structure, but without the neighborhood-fetching overhead at runtime.

Methodology

SimMLP is a self-supervised framework built on three core pillars designed to transfer structural knowledge from a GNN to an MLP without requiring labels during the alignment phase.

  1. Dual Encoders: During training, the model employs a GNN encoder (utilizing graph structure) and an MLP encoder (utilizing only node features).
  2. Alignment Loss: A self-supervised loss function maximizes the alignment between GNN and MLP embeddings in a shared space, forcing the MLP to learn the structural context observed by the GNN.
  3. Preventing Model Collapse: To avoid trivial solutions where encoders produce identical, uninformative outputs, SimMLP uses two strategies: Consistency, which uses an MLP-based approximation of the GNN's aggregation step, and Augmentation, which employs random edge and feature masking to ensure robust feature learning.
The SimMLP framework: Dual encoders align embeddings during training, while only the MLP is used for inference.

Crucially, once training is complete, the GNN component is discarded. For inference, only the pre-trained MLP is utilized, eliminating the need for neighborhood data.

Experimental Evaluation

The authors conducted an exhaustive evaluation using 20 benchmark datasets across three major tasks: node classification (e.g., Cora, OGB-Arxiv), link prediction, and graph classification (e.g., MUTAG, IMDB-B). SimMLP was compared against standard GNNs (GraphSAGE, GAT) and other MLP-on-graph methods (GLNN, NOSMOG).

Results and Discussion

SimMLP demonstrates a remarkable balance between efficiency and predictive power. It achieved inference speedups of 90x to 126x compared to standard GNNs. On the OGB-Arxiv dataset, SimMLP reached 71.1% accuracy, outperforming other state-of-the-art MLP methods like GLNN (64.0%) and rivaling supervised GNNs.

SimMLP achieves GNN-level accuracy with significantly lower inference latency compared to state-of-the-art methods.

Beyond speed, SimMLP offers several key advantages:

  • Theoretical Equivalence: The authors provide mathematical proof via the Information Bottleneck principle that SimMLP is theoretically equivalent to an optimal GNN.
  • Cold-Start Performance: Because SimMLP does not require neighbors at inference time, it outperforms GNNs when new nodes join a graph without existing edges. It infers structural context from features alone.
  • Resource Efficiency: SimMLP is significantly more memory-efficient during training, requiring 3.8x to 6.8x less memory than contrastive GNN methods like GRACE.

Conclusion

SimMLP effectively decouples structural learning from inference execution. While its performance is dependent on the quality of node features and currently uses simplified aggregation strategies, it represents a significant step toward deploying high-performance graph models in latency-sensitive environments. Future work may explore more complex attention-based aggregation and the application of SimMLP to dynamic, rapidly evolving graph topologies.

Summary updated

BibTeX
@inproceedings{wang2025training,
  author = {Zehong Wang and Zheyuan Zhang and Chuxu Zhang and Yanfang Ye},
  title = {{Training MLPs on Graphs without Supervision}},
  booktitle = {WSDM},
  year = {2025},
  doi = {10.1145/3701551.3703550},
}
Figure