Leveraging Classical Algorithms for Graph Neural Networks
Not on the map. Why?
Abstract (arXiv)
Neural networks excel at processing unstructured data but often fail to generalise out-of-distribution, whereas classical algorithms guarantee correctness but lack flexibility. We explore whether pretraining Graph Neural Networks (GNNs) on classical algorithms can improve their performance on molecular property prediction tasks from the Open Graph Benchmark: ogbg-molhiv (HIV inhibition) and ogbg-molclintox (clinical toxicity). GNNs trained on 24 classical algorithms from the CLRS Algorithmic Reasoning Benchmark are used to initialise and freeze selected layers of a second GNN for molecular prediction. Compared to a randomly initialised baseline, the pretrained models achieve consistent wins or ties, with the Segments Intersect algorithm pretraining yielding a 6% absolute gain on ogbg-molhiv and Dijkstra pretraining achieving a 3% gain on ogbg-molclintox. These results demonstrate embedding classical algorithmic priors into GNNs provides useful inductive biases, boosting performance on complex, real-world graph data.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 13 references that are in the map. First posted on arXiv 24 Oct 2025.
Builds on
12 of 13 references.
References · 12
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2018Taskonomy: Disentangling Task Transfer Learningcited by 634
- 2022GraphMAE: Self-Supervised Masked Graph Autoencoderscited by 448
- 2022Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanismcited by 171
- 2023Graph Foundation Models: Concepts, Opportunities and Challengescited by 103
- 2021Neural Algorithmic Reasoningcited by 94
- 2024Position: Graph Foundation Models are Already Herecited by 86
- 2021Neural Algorithmic Reasoners are Implicit Plannerscited by 21
- 2023Dual Algorithmic Reasoningcited by 21
- 2024GraphFM: A generalist graph transformer that learns transferable representations across diverse domainscited by 14
- 2021Reasoning-Modulated Representationscited by 13
- 2022Continuous Neural Algorithmic Plannerscited by 4
Built on by
Not cited yet.