[Paper Review] Graph-less Neural Networks: Teaching Old MLPs New Tricks via Distillation
GLNN distills knowledge from GNNs into larger MLPs so that inference is graph-less and faster, while achieving GNN-like accuracy on multiple datasets.
Graph Neural Networks (GNNs) are popular for graph machine learning and have shown great results on wide node classification tasks. Yet, they are less popular for practical deployments in the industry owing to their scalability challenges incurred by data dependency. Namely, GNN inference depends on neighbor nodes multiple hops away from the target, and fetching them burdens latency-constrained applications. Existing inference acceleration methods like pruning and quantization can speed up GNNs by reducing Multiplication-and-ACcumulation (MAC) operations, but the improvements are limited given the data dependency is not resolved. Conversely, multi-layer perceptrons (MLPs) have no graph dependency and infer much faster than GNNs, even though they are less accurate than GNNs for node classification in general. Motivated by these complementary strengths and weaknesses, we bring GNNs and MLPs together via knowledge distillation (KD). Our work shows that the performance of MLPs can be improved by large margins with GNN KD. We call the distilled MLPs Graph-less Neural Networks (GLNNs) as they have no inference graph dependency. We show that GLNNs with competitive accuracy infer faster than GNNs by 146X-273X and faster than other acceleration methods by 14X-27X. Under a production setting involving both transductive and inductive predictions across 7 datasets, GLNN accuracies improve over stand-alone MLPs by 12.36% on average and match GNNs on 6/7 datasets. Comprehensive analysis shows when and why GLNNs can achieve competitive accuracies to GNNs and suggests GLNN as a handy choice for latency-constrained applications.
Motivation & Objective
- Bridge the gap between GNNs’ context through graph structure and MLPs’ fast, graph-free inference.
- Demonstrate that knowledge distillation from a GNN teacher to an MLP student can yield graph-less models with strong performance.
- Evaluate GLNNs under transductive, inductive, and production-style settings across diverse datasets.
- Quantify speedups against GNNs and other inference acceleration methods and analyze factors driving GLNN success.
Proposed method
- Train a GNN teacher (GraphSAGE) on a graph to generate soft targets z_v for each node.
- Train a student MLP with a combined loss: cross-entropy on true labels and KL-divergence to the teacher’s soft targets (knowledge distillation).
- Deploy the resulting GLNN, an MLP that has no graph dependency at inference time.
- Evaluate GLNNs in transductive, inductive, and production settings across multiple datasets.
- Study the effects of model size, mutual information between features and labels, and regularization via KD on performance.
- Compare against MLPs, GNNs, and other inference-acceleration methods (pruning, quantization, neighbor sampling).
Experimental results
Research questions
- RQ1Can KD from GNNs to MLPs produce graph-less models with competitive accuracy?
- RQ2How do GLNNs perform in both transductive and inductive settings and in production-like scenarios?
- RQ3What factors (model size, mutual information, inductive bias) drive GLNN performance gains?
- RQ4How do GLNNs compare to traditional inference-acceleration methods in latency and accuracy?
- RQ5What are the limitations and failure cases of GLNNs in graph-based tasks?
Key findings
- GLNNs substantially outperform similarly sized MLPs and match or approach GNN performance on several datasets.
- GLNNs achieve 146×–273× faster inference than vanilla GNNs and 14×–27× faster than other acceleration methods.
- In production-style settings with both inductive and transductive predictions, GLNNs improve over MLPs by 12.36% on average and match GNNs on 6/7 datasets.
- Enlarging the MLP (width) helps GLNNs close the gap to GNNs on larger datasets, preserving large gains over standard MLPs.
- KD acts as a regularizer and injects graph-aware inductive bias into MLPs, aiding their performance when node features are informative.
- GLNNs maintain competitive performance across different teacher architectures and are robust to many settings, though some challenging splits (e.g., certain Arxiv distributions) limit gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.