Martin Grohe - The Descriptive Complexity of Graph Neural Networks

theoretics:12238 - TheoretiCS, December 4, 2024, Volume 3 - https://doi.org/10.46298/theoretics.24.25
The Descriptive Complexity of Graph Neural NetworksArticle

Authors: Martin Grohe ORCID

We analyse the power of graph neural networks (GNNs) in terms of Boolean circuit complexity and descriptive complexity.
We prove that the graph queries that can be computed by a polynomial-size bounded-depth family of GNNs are exactly those definable in the guarded fragment GFO+C of first-order logic with counting and with built-in relations.
This puts GNNs in the circuit complexity class (non-uniform) $\text{TC}^0$.
Remarkably, the GNN families may use arbitrary real weights and a wide class of activation functions that includes the standard ReLU, logistic "sigmoid", and hyperbolic tangent functions. If the GNNs are allowed to use random initialisation and global readout (both standard features of GNNs widely used in practice), they can compute exactly the same queries as bounded depth Boolean circuits with threshold gates, that is, exactly the queries in $\text{TC}^0$.
Moreover, we show that queries computable by a single GNN with piecewise linear activations and rational weights are definable in GFO+C without built-in relations. Therefore, they are contained in uniform $\text{TC}^0$.

Comment: Journal version for TheoretiCS


Volume: Volume 3
Published on: December 4, 2024
Accepted on: October 24, 2024
Submitted on: September 6, 2023
Keywords: Computer Science - Logic in Computer Science, Computer Science - Computational Complexity, Computer Science - Machine Learning
Funding:
    Source : OpenAIRE Graph
  • Symmetry and Similarity; Code: 101054974

Consultation statistics

This page has been seen 822 times.
This article's PDF has been downloaded 1009 times.