Recursive Algorithmic Reasoning
Not on the map. Why?
Abstract (arXiv)
Learning models that execute algorithms can enable us to address a key problem in deep learning: generalizing to out-of-distribution data. However, neural networks are currently unable to execute recursive algorithms because they do not have arbitrarily large memory to store and recall state. To address this, we (1) propose a way to augment graph neural networks (GNNs) with a stack, and (2) develop an approach for capturing intermediate algorithm trajectories that improves algorithmic alignment with recursive algorithms over previous methods. The stack allows the network to learn to store and recall a portion of the state of the network at a particular time, analogous to the action of a call stack in a recursive algorithm. This augmentation permits the network to reason recursively. We empirically demonstrate that our proposals significantly improve generalization to larger input graphs over prior work on depth-first search (DFS).
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 16 of its 22 references that are in the map. First posted on arXiv 1 Jul 2023.
Builds on
16 of 22 references.
References · 16
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2017Neural Message Passing for Quantum Chemistrycited by 3,460
- 2022Neural Networks and the Chomsky Hierarchycited by 214
- 2019What Can Neural Networks Reason About?cited by 155
- 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
- 2015Neural Programmer-Interpreterscited by 96
- 2021Neural Algorithmic Reasoningcited by 92
- 2015Inferring Algorithmic Patterns with Stack-Augmented Recurrent Netscited by 76
- 2014A Clockwork RNNcited by 70
- 2022A Generalist Neural Algorithmic Learnercited by 58
- 2017Making Neural Programming Architectures Generalize via Recursioncited by 35
- 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 30
4 more
- 2021How to transfer algorithmic reasoning knowledge to learn new algorithms?cited by 22
- 2021Learning with Algorithmic Supervision via Continuous Relaxationscited by 21
- 2023Dual Algorithmic Reasoningcited by 21
- 2020Strong Generalization and Efficiency in Neural Programscited by 12
Built on by
Citing papers per year: 2024: 5; 2025: 3; 2026: 1.
9 papers.
- 2024The CLRS-Text Algorithmic Reasoning Language Benchmarkcited by 28
- 2024Discrete Neural Algorithmic Reasoningcited by 8
- 2024Benchmarking ChatGPT on Algorithmic Reasoningcited by 8
- 2025Primal-Dual Neural Algorithmic Reasoningcited by 8
- 2024Open-Book Neural Algorithmic Reasoningcited by 2
- 2026The Logical Expressiveness of Topological Neural Networkscited by 2
- 2024A Context-Enhanced Framework for Sequential Graph Reasoningcited by 1
- 2025Positional Encoding meets Persistent Homology on Graphscited by 1
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problemscited by 0
- 2026The Logical Expressiveness of Topological Neural Networks21 Apr 2026
- 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problems17 Sep 2025
- 2025Positional Encoding meets Persistent Homology on Graphs6 Jun 2025
- 2025Primal-Dual Neural Algorithmic Reasoning29 May 2025
- 2024Open-Book Neural Algorithmic Reasoning30 Dec 2024
- 2024A Context-Enhanced Framework for Sequential Graph Reasoning12 Dec 2024
- 2024The CLRS-Text Algorithmic Reasoning Language Benchmark6 Jun 2024
- 2024Benchmarking ChatGPT on Algorithmic Reasoning4 Apr 2024
- 2024Discrete Neural Algorithmic Reasoning18 Feb 2024