Logical Characterizations of GNNs with Mean Aggregation

Moritz Schönherr, Carsten Lutz
7/24/2025
cs.AIcs.LO

No confident code implementation found for this paper.

Abstract

We study the expressive power of graph neural networks (GNNs) with mean as the aggregation function, with the following results. In the non-uniform setting, such GNNs have exactly the same expressive power as ratio modal logic, which has modal operators expressing that at least a certain ratio of the successors of a vertex satisfies a specified property. In the uniform setting, the expressive power relative to MSO is exactly that of modal logic, and thus identical to the (absolute) expressive power of GNNs with max aggregation. The proof, however, depends on constructions that are not satisfactory from a practical perspective. This leads us to making the natural assumptions that combination functions are continuous and classification functions are thresholds. The resulting class of GNNs with mean aggregation turns out to be much less expressive: relative to MSO and in the uniform setting, it has the same expressive power as alternation-free modal logic. This is in contrast to the expressive power of GNNs with max and sum aggregation, which is not affected by these assumptions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{schnherr2025logical,
  title  = {Logical Characterizations of GNNs with Mean Aggregation},
  author = {Moritz Schönherr and Carsten Lutz},
  year   = {2025},
  eprint = {2507.18145},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.18145v2}
}

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/2507.18145.svg)](https://codeofpaper.com/paper/2507.18145)

Discussion