Learning MLPs on Graphs: A Unified View of Effectiveness, Robustness, and Efficiency

Yijun Tian, Chuxu Zhang, Zhichun Guo, Xiangliang Zhang, Nitesh ChawlaICLR 2023

Graph Neural Networks (GNNs) are the gold standard for modeling relational data, but they have a "speed limit." Because GNNs rely on recursive message passing—pulling information from a node’s neighbors, and their neighbors' neighbors—they are notoriously difficult to deploy in low-latency, real-time applications. This paper introduces NOSMOG (NOise-robust Structure-aware MLPs On Graphs), a framework that allows simple Multi-Layer Perceptrons (MLPs) to achieve GNN-level accuracy with a fraction of the computational cost.

The Scalability Bottleneck

While GNNs are highly effective, their multi-hop dependency makes them slow and memory-intensive during inference. Researchers have previously attempted to solve this using Knowledge Distillation (KD): training a "teacher" GNN and forcing a "student" MLP to mimic its outputs.

However, these student MLPs usually fall short for three reasons:

  1. Structural Blindness: MLPs only look at node features and ignore the graph's topology.
  2. Over-fitting to Labels: They try to match the teacher's final prediction too strictly, missing the nuanced similarity between nodes in the representation space.
  3. Noise Sensitivity: Unlike GNNs, which smooth out errors by averaging neighbor data, MLPs are highly sensitive to noisy or corrupted input features.

The NOSMOG Approach

To turn a standard MLP into a graph-aware powerhouse, the authors propose three core components:

NOSMOG Framework Overview
  • Incorporating Node Position Features: To give the MLP visibility into the graph structure, NOSMOG uses DeepWalk to generate positional encodings. These are concatenated with raw node features, allowing the MLP to "see" where a node sits in the broader network without recursive lookups.
  • Representational Similarity Distillation (RSD): Instead of just matching the teacher's final soft labels, NOSMOG forces the student MLP to ensure that nodes with similar representations in the GNN’s hidden layers are also similar in the MLP’s hidden layers. This preserves the structural affinity between nodes.
  • Adversarial Feature Augmentation: To handle noise, the authors use Projected Gradient Descent (PGD) to create "worst-case" perturbations of the input features during training. This teaches the MLP to remain stable even when data is messy.

Key Insights

  • Structure Over Message Passing: The primary weakness of MLPs isn't the lack of message passing itself, but the lack of structural context. Adding positional features lets the MLP learn the "geography" of the graph efficiently.
  • Similarity Matters More Than Labels: Matching the topology of the representation space is a much more powerful hint for a student model than just matching the final class prediction.
  • Robustness as a Regularizer: Adversarial training acts as a powerful regularizer that helps MLPs generalize better on graph data, where features are often correlated in complex ways.

Key Results

NOSMOG was evaluated across seven diverse datasets, ranging from small benchmarks (Cora, Citeseer) to large-scale OGB datasets (ogbn-arxiv, ogbn-products).

Accuracy vs. Inference Time
  • Superior Accuracy: NOSMOG outperformed the teacher GNNs by an average of 2.05% and the previous state-of-the-art distillation method (GLNN) by 6.63%. Surprisingly, it even outperformed GNNs on massive datasets like ogbn-arxiv and ogbn-products, where previous MLP methods struggled.
  • Massive Speedup: On the ogbn-products dataset, NOSMOG was 833x faster than a 3-layer GraphSAGE model, sitting squarely in the ideal high-accuracy, low-latency quadrant.
  • Noise Resilience: In experiments with added Gaussian noise, NOSMOG’s performance remained stable, while standard MLPs and even some GNNs saw their accuracy plummet.

Limitations and Future Work

While highly effective, NOSMOG faces challenges in extreme inductive settings where the test graph's distribution shifts significantly from the training graph. In these cases, its performance matches but doesn't always exceed GNNs. Additionally, the model currently relies on DeepWalk for positional encoding; exploring advanced alternatives like Laplacian Eigenmaps or Graph Transformer encodings could yield further improvements. Finally, as a distillation method, the student MLP's potential remains somewhat bounded by the quality of the teacher GNN.

Summary updated

BibTeX
@inproceedings{tian2023learning,
  author = {Yijun Tian and Chuxu Zhang and Zhichun Guo and Xiangliang Zhang and Nitesh Chawla},
  title = {{Learning MLPs on Graphs: A Unified View of Effectiveness, Robustness, and Efficiency}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Cs3r5KLdoj},
}
Figure