Recursive Algorithmic Reasoning

07/01/2023
by   Dulhan Jayalath, et al.
0

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).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/29/2022

Graph Neural Networks are Dynamic Programmers

Recent advances in neural algorithmic reasoning with graph neural networ...
research
06/27/2023

Asynchronous Algorithmic Alignment with Cocycles

State-of-the-art neural algorithmic reasoners make use of message passin...
research
07/18/2023

Neural Priority Queues for Graph Neural Networks

Graph Neural Networks (GNNs) have shown considerable success in neural a...
research
02/20/2023

Neural Algorithmic Reasoning with Causal Regularisation

Recent work on neural algorithmic reasoning has investigated the reasoni...
research
10/03/2019

How does the Mind store Information?

How we store information in our mind has been a major intriguing open qu...
research
10/26/2021

How to transfer algorithmic reasoning knowledge to learn new algorithms?

Learning to execute algorithms is a fundamental problem that has been wi...
research
06/23/2022

Recursive Reinforcement Learning

Recursion is the fundamental paradigm to finitely describe potentially i...

Please sign up or login with your details

Forgot password? Click here to reset