GraphFSA: A Finite State Automaton Framework for Algorithmic Learning on Graphs

Florian Grötschla, Joël Mathys, Christoffer Raun, Roger Wattenhofer
8/20/2024
cs.AI

No official code found. Best implementation: ETH-DISCO/graph-fsa (4 stars, last commit 2024-08-08).

Abstract

Many graph algorithms can be viewed as sets of rules that are iteratively applied, with the number of iterations dependent on the size and complexity of the input graph. Existing machine learning architectures often struggle to represent these algorithmic decisions as discrete state transitions. Therefore, we propose a novel framework: GraphFSA (Graph Finite State Automaton). GraphFSA is designed to learn a finite state automaton that runs on each node of a given graph. We test GraphFSA on cellular automata problems, showcasing its abilities in a straightforward algorithmic setting. For a comprehensive empirical evaluation of our framework, we create a diverse range of synthetic problems. As our main application, we then focus on learning more elaborate graph algorithms. Our findings suggest that GraphFSA exhibits strong generalization and extrapolation abilities, presenting an alternative approach to represent these algorithms.

View on arXivView PDF

Code Implementations(1)

ETH-DISCO/graph-fsaCommunity100%

GraphFSA

40Python, Jupyter NotebookAug 8, 20242 years ago

Similar Papers

Cite this paper

@article{grtschla2024graphfsa,
  title  = {GraphFSA: A Finite State Automaton Framework for Algorithmic Learning on Graphs},
  author = {Florian Grötschla and Joël Mathys and Christoffer Raun and Roger Wattenhofer},
  year   = {2024},
  eprint = {2408.11042},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.11042v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.11042.svg)](https://codeofpaper.com/paper/2408.11042)

Discussion