Repetition Makes Perfect: Recurrent Graph Neural Networks Match Message-Passing Limit

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Rosenbluth, Eran, Grohe, Martin
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911513324814336
author Rosenbluth, Eran
Grohe, Martin
author_facet Rosenbluth, Eran
Grohe, Martin
contents We precisely characterize the expressivity of computable Recurrent Graph Neural Networks (recurrent GNNs). We prove that recurrent GNNs with finite-precision parameters, sum aggregation, and ReLU activation, can compute any graph algorithm that respects the natural message-passing invariance induced by the Color Refinement (or Weisfeiler-Leman) algorithm. While it is well known that the expressive power of GNNs is limited by this invariance [Morris et al., AAAI 2019; Xu et al., ICLR 2019], we establish that recurrent GNNs can actually match this limit. This is in contrast to non-recurrent GNNs, which have the power of Weisfeiler-Leman only in a very weak, "non-uniform", sense where each graph size requires a different GNN to compute with. Our construction introduces only a polynomial overhead in both time and space. Furthermore, we show that by incorporating random initialization, for connected graphs recurrent GNNs can express all graph algorithms. In particular, any polynomial-time graph algorithm can be emulated on connected graphs in polynomial time by a recurrent GNN with random initialization.
format Preprint
id arxiv_https___arxiv_org_abs_2505_00291
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Repetition Makes Perfect: Recurrent Graph Neural Networks Match Message-Passing Limit
Rosenbluth, Eran
Grohe, Martin
Machine Learning
Computational Complexity
68T05, 68T07
I.2.6
We precisely characterize the expressivity of computable Recurrent Graph Neural Networks (recurrent GNNs). We prove that recurrent GNNs with finite-precision parameters, sum aggregation, and ReLU activation, can compute any graph algorithm that respects the natural message-passing invariance induced by the Color Refinement (or Weisfeiler-Leman) algorithm. While it is well known that the expressive power of GNNs is limited by this invariance [Morris et al., AAAI 2019; Xu et al., ICLR 2019], we establish that recurrent GNNs can actually match this limit. This is in contrast to non-recurrent GNNs, which have the power of Weisfeiler-Leman only in a very weak, "non-uniform", sense where each graph size requires a different GNN to compute with. Our construction introduces only a polynomial overhead in both time and space. Furthermore, we show that by incorporating random initialization, for connected graphs recurrent GNNs can express all graph algorithms. In particular, any polynomial-time graph algorithm can be emulated on connected graphs in polynomial time by a recurrent GNN with random initialization.
title Repetition Makes Perfect: Recurrent Graph Neural Networks Match Message-Passing Limit
topic Machine Learning
Computational Complexity
68T05, 68T07
I.2.6
url https://arxiv.org/abs/2505.00291