Distilling Graph Geometry: Knowledge Gap from GNNs to MLPs

Zhewei Chen, Hao Zhu, Jiaojiao Jiang, Ahad N. ZehmakanNeurIPS 2026

TL;DR

Graph Neural Networks (GNNs) are great at understanding connected data, but fetching neighbors at test time makes them sluggish in real-world production. While distilling GNNs into fast, graph-free Multi-Layer Perceptrons (MLPs) is a popular fix, standard methods treat every node the same—ignoring how graph topology actually shapes representations. This paper introduces $\text{G}^2\text{MLP}$, a training-time framework that uses graph curvature as a geometric compass to tell the student MLP where to focus on sharp decision boundaries and where to smooth out noise, boosting accuracy without adding a single millisecond to inference.

What Problem Does This Paper Address?

In latency-critical applications like fraud detection, running a GNN is expensive because classifying a single node requires pulling features from its multi-hop neighborhood. To get around this, researchers distill trained GNN "teachers" into structure-free MLP "students" that only need a node's raw features at test time.

Standard distillation (like GLNN) forces the MLP to mimic the GNN’s output probabilities (logits) equally across all nodes. The authors show that this uniform pressure misses a critical geometric mismatch. Message passing doesn't affect a graph uniformly: at sparse boundaries between communities, neighbor aggregation creates complex, informative signals; in dense interiors, aggregation blurs nodes together into clean, low-rank class prototypes.

Because a vanilla MLP only sees raw features, uniform distillation causes two opposite failure modes in its hidden representations:

  • Spectral underfit (on sparse graphs): The MLP fails to capture rich, graph-induced directions created by the teacher, ending up with a lower effective rank.
  • Spectral overfit (on dense graphs): Where the GNN has smoothed out irrelevant feature noise into tight clusters, the feature-only MLP retains spurious variation, resulting in an artificially high rank.
Figure 1: Two spectral failure modes of GNN-to-MLP distillation. (a) Singular-value spectra: GLNN exhibits spectral underfit on sparse graphs and spectral overfit on dense graphs. (b) Rank- direction sketch. (c) Per-dataset rank gap; bands mark the dominant mismatch channel (Table 8).

Methods

Ideally, you would fix this by aligning the full Neural Tangent Kernels of the teacher and student, weighted by the teacher's functional energy—an intractable math problem for real graphs. Instead, the authors build Graph Geometry-aware MLP ($\text{G}^2\text{MLP}$) via three clever training-time approximations:

  1. Global to Local Neighborhoods: Instead of comparing the whole graph at once, $\text{G}^2\text{MLP}$ looks at each node's 1-hop neighborhood distribution of hidden features and output logits.
  2. Fast Wasserstein Moment Matching: Comparing neighborhood distributions via exact Optimal Transport is cubic in neighborhood size. While Gaussian Wasserstein-2 ($\mathcal{W}_2$) distances exist in vision distillation, the authors adapt a closed-form diagonal Gaussian $\mathcal{W}_2$ surrogate to graph neighborhoods—matching local means and coordinate-wise variances in linear $O(d)$ time per node.
  3. Curvature-Adaptive Weighting (The Secret Sauce): They precompute Ollivier–Ricci curvature (ORC) on the graph's edges. Think of ORC as measuring structural overlap: negative/low curvature marks bottleneck bridges and boundaries, while positive/high curvature marks tightly knit cliques. $\text{G}^2\text{MLP}$ uses ORC to split the student's attention:
  4. Low-curvature boundary nodes get upweighted prediction-level (logit) alignment to capture hard boundary decisions and fix spectral underfit.
  5. High-curvature interior nodes get upweighted representation-level (hidden feature) alignment to mimic teacher smoothing and squash spectral overfit.

Crucially, curvature and neighborhoods are only touched during training. At deployment, you still just ship a standard, lightweight MLP.

Datasets

The authors use existing, standard graph benchmarks (no new datasets are introduced):

  • Citation Networks: Cora, Citeseer, and Pubmed.
  • Amazon Co-purchase Graphs: A-Computer and A-Photo.
  • Large-Scale OGB Benchmarks: ogbn-Arxiv and ogbn-Products (used to test scalability).

Key Insights and Ideas

  • Matching logits doesn't mean matching geometry: Two students can produce identical output probabilities while organizing their internal hidden spaces completely differently. Pointwise KL divergence is blind to neighborhood structure.
  • Graph curvature localizes representation noise: When the authors measured overfit energy across curvature quintiles, they found that spurious student variance consistently piles up in high-curvature (dense interior) regions across all tested benchmarks—even on graphs that underfit overall.
  • Students frequently beat their teachers: By combining smooth graph-distilled priors with raw feature sensitivity, $\text{G}^2\text{MLP}$ often outperforms the GNN and Graph Transformer teachers it learned from—at a tiny fraction of the compute.

Key Results

  • Node Classification: In transductive settings, $\text{G}^2\text{MLP}$ beats all canonical graph-free baselines across all 6 datasets (by 0.16 to 1.66 percentage points) and outperforms the GraphSAGE teacher itself on 5 out of 6 datasets (up to +4.02 pp on Citeseer).
  • Unseen Nodes (Inductive): Curvature-guided geometry generalizes remarkably well to held-out nodes, beating baselines by 2.07–2.69 pp on four benchmarks.
  • Speed & Scale: On ogbn-Arxiv, $\text{G}^2\text{MLP}$ runs 58$\times$ faster than a 3-layer GraphSAGE teacher (8.6 ms vs. 499.7 ms) while recovering 59.1% of the accuracy gap over a plain MLP (vs. 53.7% for GLNN). Using a fast common-neighbor curvature proxy on ogbn-Products, it hits 70.03% accuracy, topping prior graph-free records.
  • Versatility: Distilling from quadratic-cost Graph Transformers (GT, GraphGPS, NAGphormer), $\text{G}^2\text{MLP}$ beats vanilla KD in 15/15 test cases. On Link Prediction, it beats baselines across the board, jumping +4.70 AUC on Cora.

Limitations and Future Work

  • Gaussian Assumption Limits: Summarizing a node's neighborhood as a unimodal diagonal Gaussian works great in smooth, homophilic interiors, but may lose accuracy in multimodal or strongly heterophilic neighborhoods (where connected nodes have wildly different labels/features).
  • Exact Curvature Cost: Computing exact ORC requires solving optimal transport per edge, which is heavy on massive graphs—though the authors show fast $O(1)$ common-neighbor and Forman curvature approximations perform within 0.3 pp of exact ORC.
  • Future Directions: Extending curvature-stratified distillation to dynamic graphs (where topology and curvature shift over time) and heterogeneous graphs (with multiple node and edge types).

Summary updated

Abstract

GNN-to-MLP distillation aims to retain the predictive accuracy of a message-passing teacher while deploying a graph-free MLP at inference. Existing methods mainly transfer node-wise predictions or use confidence-based reweighting, but they do not specify where the student should preserve the teacher's graph-induced geometry. We show that this omission leads to two spectral failure modes in the student's representation space. On sparse graphs, the student suffers from *spectral underfit*, missing high-energy teacher directions induced by aggregation. On dense graphs, it suffers from *spectral overfit*, retaining spurious directions that the teacher has collapsed through aggregation. Motivated by an energy-weighted teacher--student alignment objective, we propose **Graph Geometry-aware MLP (G$^2$MLP)**, a training-time distillation framework guided by Ollivier--Ricci curvature. Curvature acts as a local proxy for allocating supervision between prediction-level and representation-level alignment. The deployed model is a standard MLP with no graph access at inference. Across node-classification benchmarks, G$^2$MLP improves over graph-free distillation baselines in most settings, reduces the teacher--student rank gap in both regimes, and transfers to Graph Transformer teachers and link prediction.
BibTeX
@inproceedings{chen2026distilling,
  author = {Zhewei Chen and Hao Zhu and Jiaojiao Jiang and Ahad N. Zehmakan},
  title = {{Distilling Graph Geometry: Knowledge Gap from GNNs to MLPs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=g12F7YzATu},
}
Figure