Lune

LICS2023Top-tier venue

The Descriptive Complexity of Graph Neural Networks

Martin Grohe

Abstract

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 boundeddepth 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) 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 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 TC 0 .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

22 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic cites The Logical Expressiveness of Graph Neural Networks
  • Logical characterizations of recurrent graph neural networks with reals and floats cites Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic
  • Logical characterizations of recurrent graph neural networks with reals and floats cites The Logical Expressiveness of Graph Neural Networks
  • Are Targeted Messages More Effective? cites The Logical Expressiveness of Graph Neural Networks
  • Exponentially Improving the Complexity of Simulating the Weisfeiler-Lehman Test with Graph Neural Networks cites The Logical Expressiveness of Graph Neural Networks
  • WL meet VC cites Exponentially Improving the Complexity of Simulating the Weisfeiler-Lehman Test with Graph Neural Networks
  • WL meet VC cites The Logical Expressiveness of Graph Neural Networks
  • Weisfeiler-Leman at the margin: When more expressivity matters cites Exponentially Improving the Complexity of Simulating the Weisfeiler-Lehman Test with Graph Neural Networks
  • Weisfeiler-Leman at the margin: When more expressivity matters cites WL meet VC
  • Weisfeiler-Leman at the margin: When more expressivity matters cites The Logical Expressiveness of Graph Neural Networks
  • Weisfeiler-Leman at the margin: When more expressivity matters cites Fine-grained Expressivity of Graph Neural Networks
  • Fine-grained Expressivity of Graph Neural Networks cites Exponentially Improving the Complexity of Simulating the Weisfeiler-Lehman Test with Graph Neural Networks
  • Fine-grained Expressivity of Graph Neural Networks cites WL meet VC
  • Fine-grained Expressivity of Graph Neural Networks cites The Logical Expressiveness of Graph Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers22

  1. WL meet VCChristopher Morris, Floris Geerts, Jan Tönshoff, Martin GroheICML 2023 · 36 citations
  2. Fine-grained Expressivity of Graph Neural NetworksJan Böker, Ron Levie, Ningyuan Huang, Soledad Villar et al.NeurIPS 2023 · 34 citations
  3. Recurrent Graph Neural Networks and Their Connections to Bisimulation and LogicMaximilian Pflueger, David Tena Cucala, Egor V. KostylevAAAI 2024 · 20 citations
  4. Logical characterizations of recurrent graph neural networks with reals and floatsVeeti Ahvonen, Damian Heiman, Antti Kuusisto, Carsten LutzNeurIPS 2024 · 19 citations
  5. Weisfeiler-Leman at the margin: When more expressivity mattersBilly Joe Franks, Christopher Morris, Ameya Velingker, Floris GeertsICML 2024 · 15 citations

Builds on4

  1. Exponentially Improving the Complexity of Simulating the Weisfeiler-Lehman Test with Graph Neural NetworksAnders Aamand, Justin Y. Chen, Piotr Indyk, Shyam Narayanan et al.NeurIPS 2022 · 27 citations
  2. Recurrent Graph Neural Networks and Their Connections to Bisimulation and LogicMaximilian Pflueger, David Tena Cucala, Egor V. KostylevAAAI 2024 · 20 citations
  3. The Logical Expressiveness of Graph Neural NetworksPablo Barceló, Egor V. Kostylev, Mikaël Monet, Jorge Pérez et al.ICLR 2020 · 17 citations
  4. Are Targeted Messages More Effective?Martin Grohe, Eran RosenbluthLICS 2024

Related papers

  1. Graph Neural Networks and Arithmetic CircuitsTimon Barlag, Vivian Holzapfel, Laura Strieker, Jonni Virtema et al.NeurIPS 2024 · 7 citations
  2. Is uniform expressivity too restrictive? Towards efficient expressivity of GNNsSammy Khalife, Josué Tonelli-CuetoICLR 2025
  3. Logical Characterizations of GNNs with Mean AggregationMoritz Schönherr, Carsten LutzAAAI 2026 · 7 citations
  4. What do Graph Neural Networks learn? Insights from Tropical GeometryTuan Anh Pham, Vikas GargNeurIPS 2024 · 5 citations
  5. The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order LogicBernardo Cuenca Grau, Eva Feng, Przemyslaw Andrzej WalegaAAAI 2026 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines