arXiv:2610.16993cs.LGOct 2026

Manuscript Offprint

arXiv:2610.16993

Constant-Depth Rational-Weight GNNs and their Connection to Schanuel's Conjecture

Daumantas Kojelis, Carsten Lutz

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

ABSTRACT

A landmark result states that the expressive power of graph neural networks (GNNs) is bounded from above by the 1-dimensional Weisfeiler-Leman (1-WL) test. We ask whether a constant-depth GNN can match the expressive power of 1-WL while using only rational weights. We prove that this is the case when Schanuel's conjecture, a famous open problem from transcendental number theory, is taken to be true. Our GNN construction works even with integer weights, and more generally with a broad range of rational weights. As the activation function, it may use logistic sigmoid, hyperbolic tangent, or related functions. It is uniform across all graph sizes. We also prove a partial converse: if a GNN with exponentiation, hyperbolic sine or hyperbolic cosine as activation matches the expressive power of the 1-WL test in a slightly more expressive setting where graphs may contain certain auxiliary vertices, then this implies Schanuel's conjecture restricted to the numbers that arise in computations of the GNN. We also conduct experiments showing that the constructed GNNs indeed match the 1-WL test.

1 INTRODUCTION

A fundamental result in the theory of graph neural networks (GNNs) is that their expressive power is bounded from above by the 1-dimensional Weisfeiler–Leman (1-WL) test, in a version also known as color refinement; see Xu et al. (2019); Morris et al. (2019). In particular, if two vertices, or two graphs, cannot be distinguished by 1-WL, then they cannot be distinguished by a standard message-passing GNN either. Apart from motivating a lot of research on how to break the 1-WL barrier, this raises the converse question: to what extent can GNNs actually attain the 1-WL upper bound? This question has been answered in several different ways.

It was shown in Xu et al. (2019) that GNNs of constant depth L match the expressive power of L-round 1-WL when the aggregation and combination functions, as well as the graph-level readout, are injective. They instantiate this in an architecture called graph isomorphism networks (GINs) where combination function are represented as feedforward neural networks (FNNs) with ReLU activation. A more economic construction was proposed in Aamand et al. (2022). An important caveat to these results is that they are non-uniform, that is, the construction of the GNN depends on the maximum size of the input graphs. A uniform result was obtained by Bravo et al. (2024), refining a result by Amir et al. (2023). Their construction works with any non-polynomial analytic activation function, such as logistic sigmoid, and yields GNNs of internal dimension 1, that is, embeddings associate vertices with real numbers rather than with vectors of reals. While, remarkably, Bravo et al. show that in an L-layer GNN almost every choice of real-valued weights suffices to match L-round 1-WL, they do not establish that rational, or more generally finitely representable, weights suffice. It is interesting to contrast this with the result of Khalife & Basu (2026) which states that it is impossible for a constant-depth GNN with a piecewise polynomial activation function such as ReLU to match the expressive power of even 2-round 1-WL.

A complementary result was recently obtained by Rosenbluth & Grohe (2026). They show that recurrent GNNs with rational, finite-precision weights and ReLU activation can attain the 1-WL limit. That is, there is a recurrent GNN that distinguishes two vertices, or graphs, if and only if some number of 1-WL rounds is able to distinguish them. Note that recurrence significantly changes the game: allowing the number of GNN iterations to depend on the input makes it possible to simulate message-passing algorithms, potentially using a non-constant number of iterations for each round of the 1-WL algorithm. When working with fixed-depth GNNs, in contrast, a single round of 1-WL must be simulated by only a constant number of GNN layers.

These results leave open a natural question, addressed in this article: Can a constant-depth GNN uniformly match the expressive power of 1-WL while using only rational weights? We answer this question conditionally on Schanuel's conjecture, a famous unsolved problem in transcendental number theory. Assuming the conjecture, we show that for a broad class of activation functions, including logistic sigmoid, hyperbolic tangent and the exponential function exe^x, L-layer GNNs with rational weights can uniformly match the L-round 1-WL test, both at the vertex and at the graph level. Like all results discussed above, we use sum aggregation. Our construction yields GNNs of internal dimension 1 and works even with very simple weights: we may use self-weight 1, aggregation-weight 2, and bias 0 in every message-passing layer. This also resolves, under Schanuel's conjecture, an open question from Bravo et al. (2024) concerning the use of common weights in every layer. More generally, our construction applies to a broad range of rational weight choices, just as the result of Bravo et al. applies to almost every choice of real-valued weights. The appearance of Schanuel's conjecture can be understood from the arithmetic of sum aggregation. If the scalar embeddings at a given layer are linearly independent over Q, then their sum uniquely encodes any finite multiset. To iterate this argument, the activation function must produce embeddings that are again linearly independent over Q. Consider the basic case of exponential activation exe^x. If a1,…,ana_1, \ldots, a_n are embeddings and m1,…,mnm_1, \ldots, m_n are their multiplicities in a multiset, then em1a1+⋯+mnan=(ea1)m1⋯(ean)mne^{m_1 a_1 + \cdots + m_n a_n} = (e^{a_1})^{m_1} \cdots (e^{a_n})^{m_n}. Thus, different multisets naturally give rise to different monomials in the exponentials of the previous embeddings. Schanuel's conjecture provides the transcendence properties needed to ensure that these new values have the required independence.

Our connection to transcendental number theory also has a partial converse. In the slightly more expressive setting of graphs with a certain kind of auxiliary vertices akin to virtual nodes Gilmer et al. (2017); Hu et al. (2020), we prove that the existence of an L-layer GNN with exponentiation, sinh or cosh activation (and scalar embeddings on the final level) that attains the expressive power of L-round 1-WL implies the restriction of Schanuel's conjecture to the numbers that arise in its computation. This indicates that the connection between Schanuel's conjecture and GNN expressivity goes in both directions rather than being a mere artifact of our proof technique.

We complement our theoretical results with experiments. We evaluate GNNs of the form used in our construction, including simple configurations with integer weights, and observe that they indeed match the distinctions made by 1-WL.

Related Work. There has been a lot of work on extending the expressive power of GNNs beyond 1-WL, using e.g. homomorphism counts of pattern graphs Barceló et al. (2021); Maehara & NT (2024), random node initializations Abboud et al. (2021), positional distance encodings Li et al. (2020) and mechanisms inspired by higher-dimensional Weisfeiler-Leman tests Maron et al. (2019); Morris et al. (2019). Regarding Bravo et al. (2024) and Rosenbluth & Grohe (2026), we only add some minor clarifications over what was already said above. The results in Bravo et al. (2024) concern graph distinguishability, but analogous results for the vertex level can easily be derived from their proofs. The same is true for Xu et al. (2019). In contrast, Rosenbluth & Grohe (2026) have explicit results for the vertex level and for the graph level, on connected graphs. These are subject to the assumption that the graph size is provided as part of the initial embedding at every vertex. Additional results on the graph level neither need this assumption nor connectedness, but require GNNs that have additional global aggregation in every iteration. Our results also contrast those of Khalife & Tonelli-Cueto (2025) which imply that GNNs with ReLU activation can express first-order properties that cannot be expressed by any GNN activated by logistic sigmoid or hyperbolic tangent. Together with our results, assuming Schanuel's conjecture, this suggests that while logistic sigmoid can be more powerful than ReLU for exact distinguishability, ReLU can be more powerful than sigmoid for classification with a fixed margin. Indeed, the results in Khalife & Tonelli-Cueto (2025) require a uniform margin that separates the embeddings on positive and negative instances, whereas our notion of distinguishability only requires these outputs to be distinct. Schanuel's conjecture has also been used in previous work on machine learning. Assuming the conjecture, training

Hankala et al. (2024) and verification Isac et al. (2023) have been shown to be decidable for FNNs with sigmoid activation. Note that these results concern computability rather than expressive power. We are not aware of previous results connecting Schanuel's conjecture to the expressive power of neural network architectures.