The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic

Authors

  • Bernardo Cuenca Grau University of Oxford
  • Eva Feng University of Oxford
  • Przemysław Andrzej Wałęga Queen Mary, University of London

DOI:

https://doi.org/10.1609/aaai.v40i23.38987

Abstract

Graph Neural Networks (GNNs) address two key challenges in applying deep learning to graph-structured data: they handle varying size input graphs and ensure invariance under graph isomorphism. While GNNs have demonstrated broad applicability, understanding their expressive power remains an important question. In this paper, we propose GNN architectures that correspond precisely to prominent fragments of first-order logic (FO), including various modal logics as well as more expressive two-variable fragments. To establish these results, we apply methods from finite model theory of first-order and modal logics to the domain of graph representation learning. Our results provide a unifying framework for understanding the logical expressiveness of GNNs within FO.

Published

2026-03-14

How to Cite

Grau, B. C., Feng, E., & Wałęga, P. A. (2026). The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic. Proceedings of the AAAI Conference on Artificial Intelligence, 40(23), 19135–19142. https://doi.org/10.1609/aaai.v40i23.38987

Issue

Section

AAAI Technical Track on Knowledge Representation and Reasoning