English

A Logic for Reasoning About Aggregate-Combine Graph Neural Networks

Artificial Intelligence 2025-03-28 v2 Machine Learning Logic in Computer Science

Abstract

We propose a modal logic in which counting modalities appear in linear inequalities. We show that each formula can be transformed into an equivalent graph neural network (GNN). We also show that a broad class of GNNs can be transformed efficiently into a formula, thus significantly improving upon the literature about the logical expressiveness of GNNs. We also show that the satisfiability problem is PSPACE-complete. These results bring together the promise of using standard logical methods for reasoning about GNNs and their properties, particularly in applications such as GNN querying, equivalence checking, etc. We prove that such natural problems can be solved in polynomial space.

Keywords

Cite

@article{arxiv.2405.00205,
  title  = {A Logic for Reasoning About Aggregate-Combine Graph Neural Networks},
  author = {Pierre Nunn and Marco Sälzer and François Schwarzentruber and Nicolas Troquard},
  journal= {arXiv preprint arXiv:2405.00205},
  year   = {2025}
}

Comments

arXiv admin note: text overlap with arXiv:2307.05150

R2 v1 2026-06-28T16:12:17.064Z