Papers › VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPs

VQGraph: Rethinking Graph Representation Space for Bridging GNNs and MLPs

4 Aug 2023arXiv:2308.02117archive 2025-07-28

Ling Yang, Ye Tian, Minkai Xu, Zhongyi Liu, Shenda Hong, Wei Qu, Wentao Zhang, Bin Cui, Muhan Zhang, Jure Leskovec

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 828x, and also achieves accuracy improvement over GNNs and stand-alone MLPs by 3.90% and 28.05% on average, respectively. Code: https://github.com/YangLing0818/VQGraph.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.02117")

Code

Syntology Ran 23 of 30 code samples harvested from 1 repository linked to this paper; 7 have no recorded run. Of those that ran: 1 ran · honoured contract; 4 ran · violated contract; 5 ran · our draft was wrong; 7 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: official repository: 30 samples from 1 repository, 23 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

yangling0818/vqgraph officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

30 samples harvested; 23 ran; 1 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
4ran · violated contract
5ran · our draft was wrong
7ran · fixture could not drive it
6ran
7unverified

Licence: 30 of the 30 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from yangling0818/vqgraph. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

CosineSimCodebook yangling0818/vqgraph/vq.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 0b4fc7f49d1b58ba · report
all_gather_variably_sized yangling0818/vqgraph/vq.py official repository ran no licence file found · pointer only · 2e60cd798dd2182c · report
batched_bincount yangling0818/vqgraph/vq.py official repository ran · our draft was wrong no licence file found · pointer only · 309924b930360692 · report
batched_embedding yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it no licence file found · pointer only · 5ebe8a85905da07b · report
batched_sample_vectors yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · c1c89ffd41de10bb · report
default YangLing0818/VQGraph/vq.py official repository ran · violated contract fingerprinted no licence file found · pointer only · 60fff7c3c400d7ff · report
exists YangLing0818/VQGraph/vq.py official repository ran · violated contract no licence file found · pointer only · aa5486a3650902d8 · report
get_training_config YangLing0818/VQGraph/utils.py official repository ran no licence file found · pointer only · 5b7ca3c80fc2a11a · report
gumbel_noise yangling0818/vqgraph/vq.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · d85a55ec5c2984ef · report
gumbel_sample yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it no licence file found · pointer only · b91addd507f9e21a · report
idx_split YangLing0818/VQGraph/utils.py official repository ran no licence file found · pointer only · ba7dbda11c083fd7 · report
is_binary_bag_of_words YangLing0818/VQGraph/data_preprocess.py official repository ran no licence file found · pointer only · 77c12b26c7311bbd · report
kmeans yangling0818/vqgraph/vq.py official repository ran · our draft was wrong no licence file found · pointer only · aa0a7d67c59e2d8b · report
l2norm YangLing0818/VQGraph/vq.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · eca6cdf05972a95e · report
laplace_smoothing yangling0818/vqgraph/vq.py official repository ran · violated contract no licence file found · pointer only · b5240484210b398a · report
normalize YangLing0818/VQGraph/data_preprocess.py official repository ran · violated contract no licence file found · pointer only · aa9c29936dee40a7 · report
orthogonal_loss_fn yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 527a2ecf26715268 · report
pad_shape yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 64ec7553b1fd0e74 · report
sample_multinomial yangling0818/vqgraph/vq.py official repository ran · our draft was wrong no licence file found · pointer only · cf379aef60d216c3 · report
sample_vectors yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · ada1d74afbd92171 · report
sample_vectors_distributed yangling0818/vqgraph/vq.py official repository ran · fixture could not drive it no licence file found · pointer only · 1ec5828275165f9e · report
to_binary_bag_of_words YangLing0818/VQGraph/data_preprocess.py official repository ran · our draft was wrong no licence file found · pointer only · c1b14a7851940dca · report
train_mini_batch YangLing0818/VQGraph/train_and_eval.py official repository ran no licence file found · pointer only · 7a052a0b26ca317a · report
EuclideanCodebook yangling0818/vqgraph/vq.py official repository unverified no licence file found · pointer only · b6e2f12aa29482a4 · report
VectorQuantize yangling0818/vqgraph/vq.py official repository unverified no licence file found · pointer only · 81cfe04feebb1487 · report
all_gather_sizes yangling0818/vqgraph/vq.py official repository unverified no licence file found · pointer only · cee1bd208302c3f3 · report
noop yangling0818/vqgraph/vq.py official repository unverified no licence file found · pointer only · 02dd009b7cb924bb · report
train YangLing0818/VQGraph/train_and_eval.py official repository unverified no licence file found · pointer only · be348e82ea1b9cc3 · report
train_sage YangLing0818/VQGraph/train_and_eval.py official repository unverified no licence file found · pointer only · c5f57af6d7f73831 · report
uniform_init yangling0818/vqgraph/vq.py official repository unverified no licence file found · pointer only · f9a12a99a3e74bc8 · report

Tasks

Knowledge DistillationQuantizationTransfer Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Knowledge DistillationVQ-VAE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections