VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPs
Abstract
GNN-to-MLP distillation aims to utilize knowledge distillation (KD) to learn computationally-efficient multi-layer perceptron (student MLP) on graph data by mimicking the output representations of teacher GNN. Existing methods mainly make the MLP to mimic the GNN predictions over a few class labels. However, the class space may not be expressive enough for covering numerous diverse local graph structures, thus limiting the performance of knowledge transfer from GNN to MLP. To address this issue, we propose to learn a new powerful graph representation space by directly labeling nodes' diverse local structures for GNN-to-MLP distillation. Specifically, we propose a variant of VQ-VAE to learn a structure-aware tokenizer on graph data that can encode each node's local substructure as a discrete code. The discrete codes constitute a codebook as a new graph representation space that is able to identify different local graph structures of nodes with the corresponding code indices. Then, based on the learned codebook, we propose a new distillation target, namely soft code assignments, to directly transfer the structural knowledge of each node from GNN to MLP. The resulting framework VQGraph achieves new state-of-the-art performance on GNN-to-MLP distillation in both transductive and inductive settings across seven graph datasets. We show that VQGraph with better performance infers faster than GNNs by 828×, and also achieves accuracy improvement over GNNs and stand-alone MLPs by 3.90\
Benchmark Results
Tested on 5 datasets 4 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
Classic
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GraphSAGE+CNA | 0.9418
±0.0033 | |
| 2 | GCN+CNA | 0.9366
±0.0048 | |
| 3 | TransformerConv | 0.9350
±0.0058 | |
| 21 | GCN | 0.9004 | |
| 184 | VQGraph | 0.8611
±0.0126 best reported | best today: Node Identifiers: Compact, Discrete Representations for Efficient Graph Learning (ICLR 2024) |
| 348 | GLNN | 0.8360
±0.0022 best reported | best at pub: Frameless Graph Knowledge Distillation (2023) |
| 424 | NOSMOG | 0.8304
±0.0126 | This paper |
| 471 | Only-VQ | 0.8248
±0.0046 | This paper |
| 599 | AE+Class-based | 0.8111
±0.0101 | This paper |
| 628 | GNN | 0.8064
±0.0157 | This paper |
| 648 | Class-based | 0.8026
±0.0166 | This paper |
| 724 | MLP | 0.7768 |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | CNA | 0.9575
±0.0058 | |
| 2 | IS-GIB | 0.9390
±0.0187 | |
| 3 | EERM | 0.9112
±0.0145 | |
| 44 | GCN | 0.8033
±0.0088 | |
| 350 | MLP | 0.7289
±0.0010 | |
| 595 | GNN | 0.7049
±0.0153 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | LGTL | 0.9518
±0.0011 | |
| 2 | MixHop (LO) | 0.9513
±0.0038 | |
| 3 | GraphSAGE (LO) | 0.9511
±0.0036 | |
| 18 | GCN | 0.9296
±0.0015 | |
| 210 | MLP | 0.8690
±0.0074 | |
| 785 | GNN | 0.7556
±0.0206 | This paper |
Heterophilic Graphs
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | P^2GNN | 0.9672
±0.0147 | |
| 2 | DoG | 0.9660
±0.0210 | |
| 3 | GPF-plus | 0.9583
±0.0419 | |
| 34 | MLP | 0.9230
±0.0070 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 53 | GraphSAGE | 0.9000
±0.0365 | |
| 70 | GCNII | 0.8918
±0.0443 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: Piecewise Constant Spectral Graph Neural Network (TMLR 2025) |
| 103 | ACMGCN with our Graph VQ-VAE | 0.8703 | This paper |
| 108 | ACMGCN | 0.8649 | This paper |
| 261 | GCNII with our Graph VQ-VAE | 0.7904 | This paper |
| 275 | MLP with our Graph VQ-VAE | 0.7793 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | P^2GNN | 0.9541
±0.0272 | |
| 2 | ACM-GCN | 0.9480
±0.0380 | |
| 3 | RF-GCN | 0.9429 | |
| 24 | MLP | 0.9136
±0.0070 best reported | best at pub: Node-oriented Spectral Filtering for Graph Neural Networks (2022) |
| 35 | GCNII | 0.8918
±0.0396 best reported | best at pub: Convolutional Neural Networks on Graphs with Chebyshev Approximation, Revisited (NeurIPS 2022) best today: $P^2$GNN: Two Prototype Sets to boost GNN Performance (2026) |
| 102 | ACMGCN with our Graph VQ-VAE | 0.8459 | This paper |
| 114 | ACMGCN | 0.8405 | This paper |
| 138 | SAGE | 0.8269 | |
| 196 | MLP with our Graph VQ-VAE | 0.7829 | This paper |
| 197 | GCNII with our Graph VQ-VAE | 0.7829 | This paper |
