Geodesic Graph Neural Network for Efficient Graph Representation Learning
Abstract
Graph Neural Networks (GNNs) have recently been applied to graph learning tasks and achieved state-of-the-art (SOTA) results. However, many competitive methods run GNNs multiple times with subgraph extraction and customized labeling to capture information that is hard for normal GNNs to learn. Such operations are time-consuming and do not scale to large graphs. In this paper, we propose an efficient GNN framework called Geodesic GNN (GDGNN) that requires only one GNN run and injects conditional relationships between nodes into the model without labeling. This strategy effectively reduces the runtime of subgraph methods. Specifically, we view the shortest paths between two nodes as the spatial graph context of the neighborhood around them. The GNN embeddings of nodes on the shortest paths are used to generate geodesic representations. Conditioned on the geodesic representations, GDGNN can generate node, link, and graph representations that carry much richer structural information than plain GNNs. We theoretically prove that GDGNN is more powerful than plain GNNs. We present experimental results to show that GDGNN achieves highly competitive performance with SOTA GNN models on various graph learning tasks while taking significantly less time.
Benchmark Results
Tested on 6 datasets 5 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
TU Dortmund
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9910
±0.0030 | |
| 2 | ID-GNN+BEC | 0.9830
±0.0360 | |
| 3 | SupCosine | 0.9830
±0.0250 | |
| 39 | GIN | 0.9330
±0.0290 best reported | best at pub: ProtGNN: Towards Self-Explaining Graph Neural Networks (AAAI 2021) |
| 63 | GCN | 0.9220
±0.0440 best reported | best at pub: Breaking the Limits of Message Passing Graph Neural Networks (ICML 2021) best today: Depth-Adaptive Graph Neural Networks via Learnable Bakry-Émery Curvature (KDD 2025) |
| 158 | GraphSAGE | 0.9040
±0.0780 | |
| 252 | GDGIN | 0.8940
±0.0710 | This paper |
| 315 | GDGCN | 0.8840
±0.0660 | This paper |
| 338 | Nested-GIN | 0.8790
±0.0820 | This paper |
| 403 | MLP | 0.8660
±0.0495 | |
| 529 | Nested-GCN | 0.8290
±0.1110 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | MSH-GNN | 0.9410
±0.0330 | |
| 2 | GRDL | 0.8260
±0.0120 | |
| 3 | GMN | 0.8225 | |
| 32 | GIN | 0.7880
±0.0410 best reported | best at pub: Breaking the Limits of Message Passing Graph Neural Networks (ICML 2021) best today: Permutation-Invariant graph partitioning: How graph neural networks capture structural interactions? (2023) Difference within reported uncertainty; not counted as underperformance. |
| 67 | SAGE | 0.7726
±0.0228 | |
| 148 | GCN | 0.7600
±0.0320 best reported | best at pub: GraphiT: Encoding Graph Structure in Transformers (2021) best today: Simplifying Graph Convolutional Networks with Redundancy-Free Neighbors (2025) Difference within reported uncertainty; not counted as underperformance. |
| 149 | MLP | 0.7600
±0.0320 | |
| 321 | Nested-GIN | 0.7390
±0.0510 | This paper |
| 330 | GDGCN | 0.7370
±0.0340 | This paper |
| 339 | GDGIN | 0.7360
±0.0250 | This paper |
| 353 | Nested-GCN | 0.7330
±0.0400 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | GC-GNN (GCN) | 0.9210
±0.0810 | |
| 2 | SUGAR | 0.8403
±0.0133 | |
| 3 | Ortho-g-U-Nets | 0.8387 | |
| 15 | SAGE | 0.8088
±0.0233 | |
| 43 | GCN | 0.7912
±0.0307 best reported | best at pub: Hierarchical Graph Capsule Network (AAAI 2020) |
| 74 | GIN | 0.7805
±0.0189 best reported | best at pub: Multi-grained Semantics-aware Graph Neural Networks (2020) |
| 80 | Nested-GIN | 0.7780
±0.0390 | This paper |
| 81 | GDGIN | 0.7780
±0.0360 | This paper |
| 87 | GDGCN | 0.7760
±0.0400 | This paper |
| 112 | Nested-GCN | 0.7630
±0.0380 | This paper |
OGB
| # | Model | ROC-AUC ↑ | Paper |
|---|---|---|---|
| 1 | Multi-RF Fusion with Multi-GNN Blending | 0.8476
±0.0002 | |
| 2 | HyperFusion | 0.8475
±0.0003 | |
| 3 | PAS+FPs | 0.8420
±0.0015 | |
| 9 | GatedGCN | 0.8090
±0.0160 | |
| 19 | DGSN | 0.8039
±0.0090 | This paper |
| 25 | PF-GNN | 0.8015
±0.0068 | This paper |
| 38 | GIN-AK+ | 0.7961
±0.0119 best reported | Difference within reported uncertainty; not counted as underperformance. |
| 60 | GDGIN | 0.7907
±0.0120 | This paper |
| 87 | Nested-GIN | 0.7834
±0.0186 | This paper |
| 109 | GIN | 0.7780
±0.0182 best reported | best at pub: GRPE: Relative Positional Encoding for Graph Transformer (2022) Difference within reported uncertainty; not counted as underperformance. |
| 160 | GraphSAGE | 0.7690
±0.0136 |
| # | Model | Hits@50 ↑ | Paper |
|---|---|---|---|
| 1 | PROXI | 0.7650
±0.0027 | |
| 2 | OGB Leader | 0.7129
±0.0018 | |
| 3 | GIDN | 0.7096
±0.0055 | |
| 9 | GCN | 0.6621
±0.0033 best reported | best at pub: OGB (NeurIPS 2020) best today: On the Impact of Feature Heterophily on Link Prediction with Graph Neural Networks (NeurIPS 2024) |
| 20 | SEAL | 0.6474
±0.0043 best reported | best at pub: Labeling Trick: A Theory of Using Graph Neural Networks for Multi-Node Representation Learning (NeurIPS 2020) best today: Node Identifiers: Compact, Discrete Representations for Efficient Graph Learning (ICLR 2024) |
| 28 | SAGE | 0.5944
±0.0137 | |
| 38 | GDGNN-Vert | 0.5474
±0.0048 | This paper |
| 42 | GDGNN-Hor | 0.5452
±0.0072 | This paper |
| 52 | DeeperGCN | 0.5273
±0.0047 | This paper |
| 60 | DeepWalk | 0.5040
±0.0030 best reported | best at pub: Formatting Instructions for ICLR 2021 Conference Submissions (2020) Difference within reported uncertainty; not counted as underperformance. |
| 94 | MLP | 0.4438
±0.0347 |
| # | Model | Hits@100 ↑ | Paper |
|---|---|---|---|
| 1 | OGB Leader | 0.6524
±0.0150 | |
| 2 | PRB | 0.6347
±0.0175 | |
| 3 | LPFormer | 0.6332
±0.0063 | |
| 9 | RA | 0.5324 best reported | best at pub: Pairwise Learning for Neural Link Prediction (2021) |
| 14 | SAGE | 0.5013
±0.0055 | |
| 19 | SEAL | 0.4880
±0.0316 | This paper |
| 23 | MLP | 0.4600 | |
| 25 | GDGNN-Vert | 0.4592
±0.0214 | This paper |
| 45 | GCN | 0.3084
±0.0178 best reported | best at pub: Formatting Instructions for ICLR 2021 Conference Submissions (2020) best today: Link Prediction with Untrained Message Passing Layers (2024) |
| 46 | DeepWalk | 0.2890
±0.0150 best reported | best at pub: Formatting Instructions for ICLR 2021 Conference Submissions (2020) Difference within reported uncertainty; not counted as underperformance. |
| 47 | GDGNN-Hor | 0.2879
±0.0380 | This paper |
