Learning Graph Algorithms With Recurrent Graph Neural Networks
Not on the map. Why?
Abstract (arXiv)
Classical graph algorithms work well for combinatorial problems that can be thoroughly formalized and abstracted. Once the algorithm is derived, it generalizes to instances of any size. However, developing an algorithm that handles complex structures and interactions in the real world can be challenging. Rather than specifying the algorithm, we can try to learn it from the graph-structured data. Graph Neural Networks (GNNs) are inherently capable of working on graph structures; however, they struggle to generalize well, and learning on larger instances is challenging. In order to scale, we focus on a recurrent architecture design that can learn simple graph problems end to end on smaller graphs and then extrapolate to larger instances. As our main contribution, we identify three essential techniques for recurrent GNNs to scale. By using (i) skip connections, (ii) state regularization, and (iii) edge convolutions, we can guide GNNs toward extrapolation. This allows us to train on small graphs and apply the same model to much larger graphs during inference. Moreover, we empirically validate the extrapolation capabilities of our GNNs on algorithmic datasets.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 22 of its 29 references that are in the map. First posted on arXiv 9 Dec 2022.
Builds on
22 of 29 references.
References · 22
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2017Graph Attention Networkscited by 8,923
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,304
- 2018Representation Learning on Graphs with Jumping Knowledge Networkscited by 877
- 2015Gated Graph Sequence Neural Networkscited by 796
- 2014Neural Turing Machinescited by 644
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 631
- 2020Towards Deeper Graph Neural Networkscited by 296
- 2020How Neural Networks Extrapolate: From Feedforward to Graph Neural Networkscited by 222
- 2019What graph neural networks cannot learn: depth vs widthcited by 201
10 more
- 2018Learning a SAT Solver from Single-Bit Supervisioncited by 200
- 2021Training Graph Neural Networks with 1000 Layerscited by 169
- 2021Can You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent Networkscited by 117
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 106
- 2020Learning the Travelling Salesperson Problem Requires Rethinking Generalizationcited by 98
- 2021Neural Algorithmic Reasoningcited by 94
- 2017Recurrent Relational Networkscited by 72
- 2019Approximation Ratios of Graph Neural Networks for Combinatorial Problemscited by 69
- 2022A Generalist Neural Algorithmic Learnercited by 59
- 2022A Theoretical Comparison of Graph Neural Network Extensionscited by 48
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1; 2026: 1.
6 papers.
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 12
- 2025Graph neural networks extrapolate out-of-distribution for shortest pathscited by 11
- 2024CoRe-GD: A Hierarchical Framework for Scalable Graph Visualization with GNNscited by 2
- 2024Algorithm-Informed Graph Neural Networks for Leakage Detection and Localization in Water Distribution Networkscited by 0
- 2024GraphFSA: A Finite State Automaton Framework for Algorithmic Learning on Graphscited by 0
- 2026Fitting Every Hint Is Not Enough: Premature Floods in Recurrent Algorithmic Reasonerscited by 0
- 2026Fitting Every Hint Is Not Enough: Premature Floods in Recurrent Algorithmic Reasoners10 Oct 2026
- 2025Graph neural networks extrapolate out-of-distribution for shortest paths24 Mar 2025
- 2024GraphFSA: A Finite State Automaton Framework for Algorithmic Learning on Graphs20 Aug 2024
- 2024Algorithm-Informed Graph Neural Networks for Leakage Detection and Localization in Water Distribution Networks5 Aug 2024
- 2024CoRe-GD: A Hierarchical Framework for Scalable Graph Visualization with GNNs9 Feb 2024
- 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoning21 Sep 2023