arXiv:2609.15932cs.AISep 2026

Manuscript Offprint

arXiv:2609.15932

Recurrent GraphNeural NetworkswithSet-BasedAggregation

Blai Bonet

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Recurrent GNNs iterate message passing to convergence, and their logical characterizations to date rely on multiset aggregation, graded (counting) logics, and halting or acceptance conditions that cannot be verified from the network's parameters. We study recurrent GNNs with set-based aggregation and identify sufficient conditions checkable from the weights for networks to compile into formulas and formulas into networks. The main result is an effective, two-directional equivalence between a class of networks and the Boolean closure of reachability and safety properties, the fragment BΣ1⋄\mathbf{B}\Sigma_1^\diamond of the modal μ\mu-calculus. The fragment is not an artifact: it is the exact expressive level of stabilization over finite vocabulary, which supports fixed points of a single polarity and Boolean combinations thereof, but not the composition of fixed points of opposite polarities. The correspondence needs no counting logic, no external halting signal, and no non-effective acceptance condition, yielding a verifiable path from weights to symbolic explanations for networks meeting the conditions.

Introduction

Graph neural networks (GNNs) (Scarselli et al. 2008) admit a precise reading as logic: a trained network can be compiled into formulas that describe what it computes, and formulas can be compiled into networks that realize them. For depth-bounded nets this correspondence is well understood, with first-order logic with counting characterizing exactly what such networks compute (Xu et al. 2018; Morris et al. 2019; Barceló et al. 2020; Grohe 2024). For recurrent GNNs, which iterate message passing to convergence rather than for a fixed number of layers, the picture is incomplete. Existing characterizations (Pflueger, Tena Cucala, and Kostylev 2024; Ahvonen et al. 2024; Bollen et al. 2025; Rosenbluth and Grohe 2026) are built for multiset aggregation, and their target logics, graded modal logic and the graded μ\mu-calculus, inherit its ability to count. This power is not free: the correspondences rest on explicit halting classifiers or on acceptance conditions that cannot be verified from the network's weights, and for the graded μ\mu-calculus, the setting with genuine alternation, the converse direction is known only conditionally (Bollen et al. 2025; Bollen and Vansummeren 2026).

We study recurrent GNNs with set-based aggregation, such as max and min, and show that this restriction yields what the multiset setting so far lacks: a complete, effective, two-directional correspondence with a fixed-point logic, under conditions checkable from the weights. The price is counting and alternation, and we prove the price is unavoidable. Concretely, we identify regularity, a semantic condition under which a converging net's fixed-point embedding at a vertex depends only on its atomic type and its neighbors' fixed points, not on the transient trajectory; the vocabulary, the set of embeddings reachable at convergence, which can be finite even when the transients are infinite in number; and admissibility, under which the net's run can be traded for a finite dynamical system (the game) iterating directly over the vocabulary. Converging regular nets with finite vocabulary whose game is admissible, ordered, and monotone are called RATCHET nets. Our contributions are the following:

  • A checkable framework for compiling recurrent nets. We introduce regularity, vocabulary, and admissibility, and give sufficient conditions verifiable from the weights: contraction (Theorem 11) and monotonicity (Theorem 11). Unlike the lim-inf and ever-reached acceptance conditions of prior work, membership in the resulting class does not depend on non-effective properties of infinite runs.

  • A general-purpose compiler into fixed-point logic. Every regular net with finite vocabulary and an admissible, ordered game compiles into a simultaneous inflationary fixed-point (IFP) formula of size linear in the net's quotient table, with no monotonicity required (Theorem 14).

  • A two-way correspondence. RATCHET nets compute exactly the vertex queries definable in BΣ1⋄\mathbf{B}\Sigma_1^\diamond, the Boolean closure of reachability (least fixed points over ⋄\diamond) and safety (greatest fixed points over □\square) in the modal μ\mu-calculus, with effective translations in both directions (Theorems 11 and 11). The net-to-logic direction answers, for this counting-free fragment, the converse question that Bollen et al. (2025) leave open in the graded setting; the logic-to-net direction is the counterpart of their Theorem 5.1, obtained without their halting classifier or counting apparatus.

  • A barrier showing BΣ1⋄\mathbf{B}\Sigma_1^\diamond is necessary. No converging regular net with finite vocabulary and admissible game, ordering and monotonicity are not even assumed, computes νY.⋄Y\nu Y.\diamond Y, μX.□X\mu X.\square X, or the alternation-free EF EG pp (Proposition 11). Stabilization over finite vocabulary supports fixed points of a single polarity and their Boolean combinations, but cannot certify that an inner fixed point of opposite polarity has stabilized. Indeed, BΣ1⋄\mathbf{B}\Sigma_1^\diamond omits queries from the

first level of the alternation hierarchy and is strictly contained in the alternation-free fragment (Corollary 11).

  • Two implemented compilers, net-to-logic and logic-to-net, that map RATCHET nets to BΣ1⋄B\Sigma_{1}^{\diamond}, and back, together with an extensive experimental validation.

The restriction to set-based aggregation is not arbitrary. Aggregators such as max and min are precisely the empirically preferred choice in neural algorithmic reasoning: max-aggregation message passing was found best suited for learning to execute classical graph algorithms and for size generalization (Veličković et al. 2020; Wittig et al. 2026); this preference has been explained (Xu et al. 2020, 2021; Dudzik and Veličković 2022), and it is the aggregation adopted by the generalist algorithmic learner of Ibarz et al. (2022). Our results give this architectural choice logical meaning.

The correspondence locates set-based recurrent GNNs within the landscape of stopping semantics. A fixed point built on top of one of the opposite polarity requires a certificate that the inner computation has stabilized: supplied externally by a halting classifier (Bollen et al. 2025), or manufactured internally by counters that grow with the graph (Bollen and Vansummeren 2026). Proposition 17 shows that with neither resource available, no certificate exists, and BΣ1⋄B\Sigma_{1}^{\diamond} is exactly what remains; details below.

Roadmap. After fixing the model and vertex types, we develop the recurrent case, RATCHET nets, and the IFP compiler. The central section establishes the equivalence with BΣ1⋄B\Sigma_{1}^{\diamond} and the barrier. We close with related work and conclusions.

References (32)