Lune

NeurIPS2024Top-tier venue

Logical characterizations of recurrent graph neural networks with reals and floats

Veeti Ahvonen, Damian Heiman, Antti Kuusisto, Carsten Lutz

Abstract

In pioneering work from 2019, Barceló and coauthors identified logics that precisely match the expressive power of constant iteration-depth graph neural networks (GNNs) relative to properties definable in first-order logic. In this article, we give exact logical characterizations of recurrent GNNs in two scenarios: (1) in the setting with floating-point numbers and (2) with reals. For floats, the formalism matching recurrent GNNs is a rule-based modal logic with counting, while for reals we use a suitable infinitary modal logic, also with counting. These results give exact matches between logics and GNNs in the recurrent setting without relativising to a background logic in either case, but using some natural assumptions about floating-point arithmetic. Applying our characterizations, we also prove that, relative to graph properties definable in monadic second-order logic (MSO), our infinitary and rule-based logics are equally expressive. This implies that recurrent GNNs with reals and floats have the same expressive power over MSO-definable properties and shows that, for such properties, also recurrent GNNs with reals are characterized by a (finitary!) rule-based modal logic. In the general case, in contrast, the expressive power with floats is weaker than with reals. In addition to logic-oriented results, we also characterize recurrent GNNs, with both reals and floats, via distributed automata, drawing links to distributed computing models.

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.

7 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

  • The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product Logics cites The Logical Expressiveness of Graph Neural Networks
  • The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product Logics cites The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic
  • Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic cites The Descriptive Complexity of Graph Neural Networks
  • The Descriptive Complexity of Graph Neural Networks cites Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic
  • Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic cites The Logical Expressiveness of Graph Neural Networks
  • The Descriptive Complexity of Graph Neural Networks cites The Logical Expressiveness of Graph Neural Networks
  • Sound Logical Explanations for Mean Aggregation Graph Neural Networks cites Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic
  • Sound Logical Explanations for Mean Aggregation Graph Neural Networks cites The Descriptive Complexity of Graph Neural Networks
  • Sound Logical Explanations for Mean Aggregation Graph Neural Networks cites The Logical Expressiveness of Graph Neural Networks
  • Sound Logical Explanations for Mean Aggregation Graph Neural Networks cites The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic
  • Sound Logical Explanations for Mean Aggregation Graph Neural Networks cites Logical Characterizations of GNNs with Mean Aggregation
  • Aggregate-Combine-Readout GNNs Can Express Logical Classifiers Beyond the Logic C2 cites Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic
  • Aggregate-Combine-Readout GNNs Can Express Logical Classifiers Beyond the Logic C2 cites The Logical Expressiveness of Graph Neural Networks
  • Aggregate-Combine-Readout GNNs Can Express Logical Classifiers Beyond the Logic C2 cites Logical Characterizations of GNNs with Mean Aggregation
  • The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic cites Recurrent Graph Neural Networks and Their Connections to Bisimulation and Logic
  • The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic cites The Descriptive Complexity of Graph Neural Networks
  • The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order Logic cites The Logical Expressiveness of Graph Neural Networks
  • Logical Characterizations of GNNs with Mean Aggregation cites The Descriptive Complexity of Graph Neural Networks
  • Logical Characterizations of GNNs with Mean Aggregation cites The Logical Expressiveness of Graph Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers7

  1. Logical Characterizations of GNNs with Mean AggregationMoritz Schönherr, Carsten LutzAAAI 2026 · 7 citations
  2. The Correspondence Between Bounded Graph Neural Networks and Fragments of First-Order LogicBernardo Cuenca Grau, Eva Feng, Przemyslaw Andrzej WalegaAAAI 2026 · 4 citations
  3. The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product LogicsMarco Sälzer, Przemyslaw Andrzej Walega, Martin LangeNeurIPS 2025 · 3 citations
  4. Sound Logical Explanations for Mean Aggregation Graph Neural NetworksMatthew Morris, Ian HorrocksNeurIPS 2025 · 3 citations
  5. Aggregate-Combine-Readout GNNs Can Express Logical Classifiers Beyond the Logic C2Stan P. Hauke, Przemyslaw Andrzej WalegaAAAI 2026 · 3 citations

Builds on3

  1. Recurrent Graph Neural Networks and Their Connections to Bisimulation and LogicMaximilian Pflueger, David Tena Cucala, Egor V. KostylevAAAI 2024 · 20 citations
  2. The Logical Expressiveness of Graph Neural NetworksPablo Barceló, Egor V. Kostylev, Mikaël Monet, Jorge Pérez et al.ICLR 2020 · 17 citations
  3. The Descriptive Complexity of Graph Neural NetworksMartin GroheLICS 2023 · 7 citations

Related papers

  1. Expressive Power of Graph Transformers via LogicVeeti Ahvonen, Maurice Funk, Damian Heiman, Antti Kuusisto et al.AAAI 2026
  2. Are Targeted Messages More Effective?Martin Grohe, Eran RosenbluthLICS 2024
  3. Graph Neural Networks and Arithmetic CircuitsTimon Barlag, Vivian Holzapfel, Laura Strieker, Jonni Virtema et al.NeurIPS 2024 · 7 citations
  4. From Neural Networks to Logical Theories: The Correspondence between Fibring Modal Logics and Fibring Neural NetworksOuns El Harzli, Bernardo Cuenca Grau, Artur d'Avila Garcez, Ian Horrocks et al.ICLR 2026 · 1 citation
  5. Is uniform expressivity too restrictive? Towards efficient expressivity of GNNsSammy Khalife, Josué Tonelli-CuetoICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines