Manuscript Offprint
arXiv:2610.16993Constant-Depth Rational-Weight GNNs and their Connection to Schanuel's Conjecture
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 , 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 . If are embeddings and are their multiplicities in a multiset, then . 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.
For two fields and , we say that is a field extension of , denoted , if and the additive and multiplicative operations of , when restricted to , are exactly the additive and multiplicative operations of . For instance, is a field extension of . For a field extension and , we denote by the field generated by and , that is, the smallest subfield of such that and . For instance, is the smallest subfield of containing both and . Since is a field, for all polynomials and over and all with . This relates to a family of generated fields used later in this article, namely, for any positive integer ,
A field extension is finitely generated if there is a finite such that . Clearly, and are finitely generated.
Let be a field extension and . Then is linearly independent over if in only if , for all . For instance, is linearly independent over . Similarly, is algebraically independent over if there is no non-zero polynomial with coefficients in that satisfies . For instance, is not algebraically independent over since is a root of . In contrast, is algebraically independent over since is transcendental. A transcendence basis of a field extension is a subset of , maximal w.r.t. set inclusion, that is algebraically independent over . For example, is a transcendence basis of . It is known that all transcendence bases share the same cardinality, see Clader & Ross (2025). It is thus meaningful to define the transcendence degree of , denoted , as the cardinality of any transcendence basis of . Thus and . A field extension is algebraic if . Hence is algebraic.
The following consequence of Corollary 6.31 of Clader & Ross (2025) will be useful.
Lemma 1. Let be a finitely generated field extension and let . If is algebraic and , then is algebraically independent over .
Proof. Suppose that is algebraically dependent over , and let be maximal algebraically independent over . Then , and is algebraic. Since is algebraic, so is . Point 1 of Corollary 6.31 of Clader & Ross (2025) states that if is finitely generated and is algebraic, then . Consequently, , contradicting .
A classical result from transcendental number theory provides an important way of obtaining algebraically independent numbers, from Weierstrass (1885).
Theorem 2. (Lindemann–Weierstrass) If is linearly independent over , then is algebraically independent over .
The following conjecture, due to Schanuel and first published by Lang (1966), generalizes the Lindemann–Weierstrass theorem by allowing the exponents to be arbitrary complex numbers, rather than only algebraic ones.
Conjecture 3. (Schanuel's conjecture) If is linearly independent over , then .
Note that Theorem 2 is the special case of Schanuel's conjecture where are algebraic. By definition, algebraic numbers contribute no transcendence degree and thus implies , which is the same as saying that is algebraically independent over .
Schanuel's conjecture naturally relates to activation functions defined in terms of exponentials such as sigmoid. We identify a concrete class of such functions that we shall analyze in this article. We say that a function is Schanuel-ready if it is of the form , with and polynomials with rational coefficients, such that (i) is non-constant, positive and strictly increasing on and (ii) for all . Notable Schanuel-ready functions include the exponentiation function , logistic sigmoid , hyperbolic tangent , hyperbolic sine , and hyperbolic cosine .
Graphs. We work with directed graphs throughout this article. For each we define the neighborhood to be the set of vertices reachable from in one step. A pointed graph is a pair with a graph and a distinguished vertex. An embedded graph of dimension is a triple with an embedding. Pointed embedded graphs are defined as expected, taking the form .
AC-GNNs and 1-WL. An L-layer aggregate-combine graph neural network (AC-GNN) is a tuple where is an activation function applied component-wise, there are dimensions such that and for , and specifies an initialization function. More precisely, is a tuple such that there are with and for . We require that and call the input dimension of , and its output dimension. The weights of a GNN are the elements of the and .
As the input to GNNs, we use graphs endowed with non-negative rational vertex features. Formally, a featured graph of dimension is an embedded graph of dimension such that the image of contains only vectors of non-negative rationals. Let be a GNN as above, and let be a featured graph of dimension , the input dimension of . When applying to , in the first step transforms into an embedded graph of dimension . Informally, should be thought of as a feedforward neural network. Formally, we set for all and for all . Next, constructs a sequence of embeddings of , starting from . Let . Set for all and all finite multisets over . Then define for all . For vertex classification, one may now work with the embedded graph . For graph classification, a final graph-level readout is carried out to consolidate the graph embedding into a single vector . We refer to the functions as update functions.
We remark that the initialization function is a slightly unusual feature of our GNN model. Its purpose is to synchronize the layers of the GNN with the rounds of the Weisfeiler–Leman algorithm. In principle, the initialization function could instead be implemented by additional GNN layers, at the cost of increasing the depth of the network.
We next introduce the 1-dimensional Weisfeiler–Leman algorithm (1-WL), in its color refinement variant; see also Grohe (2021). The algorithm takes a featured graph as input and proceeds in rounds, producing increasingly refined colorings of the vertices of . The initial coloring is defined by where hash is an injective function whose range is a countable set of colors. In later rounds , the coloring is defined by
When used as an approximative test for graph isomorphism, 1-WL is typically run until stabilization, that is, until implies for all vertices . Here, we will mostly be interested in the coloring for some fixed . This coloring can be lifted to the graph level by taking the color of to be .
Both the L-round 1-WL algorithm and every L-layer AC-GNN induce an equivalence relation on all graphs: and are equivalent if or , respectively. Equivalence relations on pointed graphs are induced in the same way, via and . It follows from Xu et al. (2019); Morris et al. (2019) that L-layer GNNs cannot classify graphs or vertices as being non-equivalent unless the L-round 1-WL does the same. The following, which can be inferred from Theorem 3 of Xu et al. (2019), states a converse. If the update functions of a GNN are injective, then the equivalence relation on pointed graphs induced by is exactly that of 1-WL. The same holds on the graph level if we additional demand that the image of the final update function is linearly independent over .
Lemma 4. Let be an -layer AC-GNN such that are injective. Then for all pointed graphs and , if and only if . If, in addition, every finite subset of the image of is linearly independent over , then for all graphs if and only if .
For our later use of Lemma 4, we remark that it suffices for the lemma to hold that the functions are only effectively injective. For , this means that is injective on the restriction to inputs such that there is a graph and a vertex with and . Likewise, is effectively injective if it is injective on vertex labels, that is, on vectors of non-negative rationals.
3 MATCHING THE UPPER BOUND
The following theorem states the main result of this article. When speaking of a GNN of internal dimension 1, we mean that all dimensions from the definition of GNNs are 1 (while the dimensions of the initialization function need not be 1).
Theorem 5. Assume that Schanuel's conjecture is true. Then for every Schanuel-ready activation function and every , there is an L-layer GNN of internal dimension 1 that uses activation and integer weights such that (i) for all pointed graphs, and , if and only if ; and (ii) for all graphs , if and only if .
In fact, our result is even stronger than what is stated in Theorem 5. Note that, for GNNs with internal dimension 1, the matrices , and bias vectors are simply scalars. Our proof shows that it suffices to choose , , and for every message-passing layer. For featured input graphs of dimension , the matrices in the initialization function use only the values , , ..., , and the vectors are either comprised entirely of zero or of one. Thus the weights in are not only integers, but also reside in a finite set of natural numbers whose size only depends on , but not on . In the general setting, our construction allows all positive rational and satisfying . In this sense, our result applies to a broad range of rational weights.
We now give the technical details of our construction. Say that an L-layer GNN of input dimension and internal dimension is Schanuel-ready if it uses a Schanuel-ready activation function and satisfies the following conditions:
-
the initialization function is , where is the identity matrix, , , and . Then for all graphs and vertices ;
-
and are rational numbers such that .
The purpose of the above initialization function I is to encode a vector of non-negative rational numbers, as given by the input features, into a single real number. One can show that, under Schanuel's conjecture, the values are linearly independent over Q, preventing different feature values from canceling out in the sum. The powers provide, for each rational value, a binary encoding of the positions in which it occurs. In the appendix, we prove the following.
Proposition 6. Assuming Schanuel's conjecture is true, every L-layered Schanuel-ready GNN N satisfies if and only if , for all pointed graphs and .
In what follows, we present a proof of a restricted version of Proposition 6 that is less technical, yet still reveals the underlying mechanisms. More concretely, we assume that the activation function is , , , and for every layer , and all feature vectors in input graphs are one-hot, that is, they have exactly one non-zero component. The assumption of one-hot feature vectors also allows us to simplify the initialisation to be , where and . Then for all graphs and vertices .
We now define, for every layer of our GNN , a set of vectors that overapproximates the set of embedding vectors that can arise in layer of , across all graphs. Since the sets can be infinite and Schanuel's conjecture applies only to finite sets, we shall also define, for each , a finite set . The reader should think of the set in the same way as , but on graphs of out-degree at most . We proceed inductively:
Importantly, do not need to be pairwise distinct. Set for .
Lemma 7. For all featured graphs G, all vertices and we have .
Proof. We proceed by induction on . The base case is immediate as the image of the initialisation function is . For the inductive step assume that for all . Then, aggregation and combination in amount to with . Applying yields , which is in as .
All that is left to show at this point is that each finite subset of is linearly independent over for all . Indeed, then one need only apply Lemma 4 noting that and are injective when is one-hot, , and is a finite multiset over (see appendix for details). To prove the required linear independence of finite subsets of , we first observe that it follows from algebraic independence of finite subsets of over . For technical reasons, we establish a stronger result:
Lemma 8. Let . If each finite subset of is algebraically independent over , then each finite subset of is linearly independent over .
Proof. Suppose for contradiction that some finite is linearly dependent over . Thus, for there are not all zero such that . Each value is a finite product of elements in . This follows directly from the definition for with , while every element is the product of copies of the unique element . We can thus write where not all zero and . But then, . Hence, by algebraic independence of over , the function must be the zero polynomial. But since are distinct, each vector of exponents must also be distinct. In fact, . Thus, no cancellations take place in the expression above, resulting in a non-zero polynomial which contradicts our initial assumption.
At this point, it remains to show the following.
Lemma 9. Assuming that Schanuel's conjecture is true, all finite subsets of are algebraically independent over .
Proof. Assuming Schanuel's conjecture, we prove by induction on that, for and ,
-
is algebraically independent over and
-
the sets are pairwise disjoint; and so are .
This clearly implies the intended result. For the base case note that . Thus Condition 1 holds trivially as is a transcendental number. Condition 2 follows from the above and the fact that are positive powers of the transcendental number , thus ensuring .
Now suppose Conditions 1 and 2 hold for . We show that the same is true for . By Condition 1 of our induction hypothesis, is algebraically independent over . Thus by Lemma 8, the set is linearly independent over . Applying Schanuel's conjecture to yields such that . We next analyse the size of . Notice, first, that for all . Moreover, by Condition 2 of our induction hypothesis, are all pairwise disjoint. Thus,
Write . Notice that because elements of are monomials over or 1. Hence, and . With Lemma 1, we obtain that is algebraically independent over , thus establishing Condition 1.
The part of Condition 2 follows from the facts that the sets are pairwise disjoint, due to the induction hypothesis, and exponentiation is injective. Now, suppose that for , with a common element. Clearly, is then a monomial over as well as over . But by our argument above, . Additionally, by Condition 1, already established above for , is algebraically independent over . Hence, no monomial over equates to a monomial over , a contradiction. Finally, follows from the fact that 1 is algebraic whilst the elements of are not.
4 THE TRANSCENDENCE OF GNN COMPUTATIONS
The aim of this section is to provide a partial converse to Theorem 5. In doing so we argue that the connection between GNN expressivity and Schanuel's conjecture goes both ways, and is not merely an artefact of our technique. To achieve this, we work in a slightly more expressive setting that admits virtual nodes. These are auxiliary vertices commonly used in GNNs to globally aggregate information, see for instance Gilmer et al. (2017); Hu et al. (2020). We use a variant tailored to our purposes in which virtual nodes need not be globally connected and, crucially, use a modified update function that does not depend on their own state. We also make the additional assumption that the embedding computed by the final GNN layer is of dimension 1.
More precisely, a featured graph with virtual nodes is a triple , where . Vertices with are called virtual, all other vertices are ordinary. We extend our definition of GNNs accordingly. An -layer GNN with virtual nodes is a tuple
where and are as in the definition of GNNs with dimensions , and for . For every node with , the initial embedding is some vector shared by all virtual nodes, whilst .
We also consider a 1-WL test over graphs with virtual nodes: for vertices with , we define where virtual is a distinguished value that is never assigned to an ordinary vertex. The following is routine to prove, see the appendix.
Proposition 10. Suppose and are two featured pointed graphs with virtual nodes. Then, for all -layered GNNs , implies and implies .
We are now in a position to establish the advertised converse.
Theorem 11. Let be an -layer GNN that uses as activation and produces 1-dimensional vertex embeddings in its final layer. Further assume that if and only if for all featured graphs with virtual nodes . Then for every featured graph the values are algebraically independent over .
Proof. We only treat here. The cases are relegated to the appendix. Observe that, for every featured graph with virtual nodes and every with , . Thus, the final embedding of a virtual node is times a monomial in the values where the exponent of each value records how often it occurs among the neighbors of the virtual node. Towards a contradiction, assume that for some graph this set is not algebraically independent over . We construct two graphs and that are distinguishable by -round 1-WL but not by , contradicting our assumption.
Let be an enumeration of . For choose a vertex such that . Since the are pairwise distinct, so are the embeddings . By Proposition 10, the pointed graphs are all pairwise distinguishable by the -round 1-WL algorithm. Now, since is algebraically dependent over , there is a non-zero polynomial such that . Multiplying by a common denominator, we may assume that has integer coefficients. Moving all terms with negative coefficients to the right hand side, we obtain a polynomial equality where and have disjoint sets of monomials and non-negative integer coefficients. Exchanging and if necessary, we may assume that has no constant term. Multiplying by and writing out the monomials gives
where , with the exception that may be zero, and the exponent vectors and are not all zero entries. The desired graphs and realize the two sides of this equality. A monomial is realized by a virtual node having, for every , neighbors in fresh copies of . By the initial observation in this proof, its final embedding is . An isolated virtual node, in turn, has final embedding and thus realizes the constant monomial. To ensure that all vertices belonging to the copies of make the same contribution on both sides, we additionally put on each side copies corresponding to the monomials realized on the other side. Formally, is defined as follows:
- for , add disjoint copies of the graph constructed as follows:
(a) for , add fresh copies of the pointed graph ;
(b) create a fresh virtual node u and add an edge from u to the distinguished vertex in each copy added in the previous step;
-
add fresh isolated virtual vertices;
-
for and , add disjoint copies of .
The graph is defined symmetrically: interchange and as well as and , and omit Step 2. Notice that the newly added edges point from virtual nodes into the copies of and thus do not change the neighborhoods, and hence the GNN embeddings or 1-WL colors, of vertices inside these copies. We argue in the appendix that and have the desired properties.
Theorem 11 immediately yields the following restriction of Schanuel's conjecture to GNN outputs.
Self-weight C = 0.01
Self-weight C = 0.1

Aggregation-weight A
Self-weight C = 1
Aggregation-weight A

Aggregation-weight A
Figure 1: Success ratio in float64 arithmetic for GNNs with activation (row) and aggregation-weight (column) at fixed self-weights in three weight categories. Checkmarks denote success ratio 1.
Corollary 12. Let be as in Theorem 11. Then, for every featured graph and all distinct , we have . Consequently, Schanuel's conjecture holds when restricted to -linearly independent tuples arising in this way.
Proof. Let be as in the statement. By Theorem 11, are algebraically independent over . Hence . Since , the claimed inequality follows, which is exactly the conclusion of Schanuel's conjecture.
5 EXPERIMENTS
We empirically investigate the vertex distinguishing power of GNNs using sigmoid, tanh, sinh, cosh and exp as prominent Schanuel-ready activation functions. In addition, we evaluate ReLU as a popular activation function that is not Schanuel-ready. Since Schanuel-ready activation functions may compute transcendental numbers from rational ones, we vary the precision and use 32-, 64- and 128-bit floating point arithmetics. We randomly generate Erdős–Rényi graphs with vertices using edge probability , with one-hot feature vectors from . On each graph, we run 1-WL. If rounds are needed for stabilization, we construct -layer GNNs where and as well as range over , and . We choose so that the initialisation function is . Say that succeeds on a graph if for all , if and only if . The success ratio of is the number of graphs that succeeds on divided by .
An excerpt of our results for float64 is displayed in Figure 1, see the appendix for 32- and 128-bit results. For many weight settings, GNNs with Schanuel-ready activation functions perfectly simulate the 1-WL algorithm. The exception of predicted by our theoretical analysis is observable in the leftmost columns. All Schanuel-ready activation functions encounter a performance degradation when weights get larger, which we believe is because computed values get exceedingly close to 1 and cannot be distinguished by a fixed-precision floating-point representation (for sigmoid and tanh), or overflow (for sinh, cosh, and exp). These different phenomena can also be used to explain why the performance of sinh, cosh, and exp degrades faster than that of sigmoid and tanh (see appendix). Regardless of which Schanuel-ready activation function is used, higher precision floats result in better performance. As expected from the results in Khalife & Basu (2026), ReLU GNNs exhibit weaker performance than GNNs with Schanuel-ready activation functions.
We avoid graphs generated by a fixed edge probability as in this setting 1-WL is known to, with high probability, attribute distinct colours to all vertices in a graph; see Table 1 of Verbitsky & Zhukovskii (2025).
6 CONCLUSIONS
We have studied the capability of GNNs with constant depth and rational weights to match the expressive power of 1-WL, establishing an intimate connection to algebraic independence and, more specifically, Schanuel's conjecture. As future work, we would be interested in understanding whether the assumptions made in Section 4 can be weakened. Can the same result be proved for sigmoid or all Schanuel-ready activation functions? Is it necessary to assume the presence of virtual nodes and that the embedding computed by the final GNN layer is of dimension 1? Can the restricted form of Schanuel's conjecture obtained in Corollary 12 be strengthened, possibly even to Schanuel's conjecture without any restrictions? We conjecture that our methods can be extended to more expressive GNN architectures and their natural WL test counterparts; e.g. k-GNNs and the k-WL test, GNNs with global readout in each layer and 1-WL with global aggregation. Such directions are left for future research.
7 ACKNOWLEDGEMENTS
Daumantas Kojelis and Carsten Lutz were supported by DFG project LU 1417/4-1. Additionally, Carsten Lutz was partly supported by BMFTR in DAAD project 57616814 (SECAI).
The authors also wish to thank Valentin Wolfer for assisting with the experiments.
AI Use STATEMENT
The generative AI model ChatGPT-5.6 Sol (Max) was used as an aid when developing this paper. The extent of the model's involvement is as follows. All text (including the appendix) has been human written with occasional paraphrasing requests relegated to AI. All mathematical claims and statements have been formulated by humans without help of AI. All proofs excluding Claims 14, 15 and 21 were first obtained by humans without AI help. Claims 14, 15 and 21 have been realised by strengthening our initial human-generated proofs with AI guidance. Completed proofs were given to the AI agent in order to identify gaps and inaccuracies. Some suggestions arising from the above have been implemented. Figures have been generated by AI. Some references have been recommended by AI agents. Experimental code has been written with the help of an AI coding agent. The authors have verified the AI-generated figures, proof suggestions, code and references, and assume responsibility for all contents of this work.
REPRODUCIBILITY STATEMENT
Since our theoretical results rely on Schanuel's conjecture, we explicitly indicated this dependence in claim, lemma, proposition and theorem statements. The appendix houses full proofs and additional experimental results omitted from the main body of text. We provide code for running our experiments in the supplementary material with documentation.
ETHICS STATEMENT
Our work aims to increase understanding in the expressive power of GNNs. Our results are theoretic in nature. We therefore believe that this work is low risk in terms of possible misuse.
REFERENCES
Anders Aamand, Justin Chen, Piotr Indyk, Shyam Narayanan, Ronitt Rubinfeld, Nicholas Schiefer, Sandeep Silwal, and Tal Wagner. Exponentially improving the complexity of simulating the weisfeiler-lehman test with graph neural networks. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh (eds.), Advances in Neural Information Processing Systems, volume 35, pp. 27333–27346. Curran Associates, Inc., 2022. doi: 10.52202/068431-1982. URL https://proceedings.neurips.cc/paper_files/paper/2022/file/af0ad514b9cda46bd49e14ee11e2672f-Paper-Conference.pdf.
Ralph Abboud, Ismail Ilkan Ceylan, Martin Grohe, and Thomas Lukasiewicz. The surprising power of graph neural networks with random node initialization. In Zhi-Hua Zhou (ed.), Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, pp. 2112–2118. International Joint Conferences on Artificial Intelligence Organization, 8 2021. doi: 10.24963/ijcai.2021/291. URL https://doi.org/10.24963/ijcai.2021/291. Main Track.
Tal Amir, Steven Gortler, Ilai Avni, Ravina Ravina, and Nadav Dym. Neural injective functions for multisets, measures and graphs via a finite witness theorem. In A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (eds.), Advances in Neural Information Processing Systems, volume 36, pp. 42516–42551. Curran Associates, Inc., 2023. doi: 10.52202/075280-1845. URL https://proceedings.neurips.cc/paper_files/paper/2023/file/84b686f7cc7b7751e9aaac0da74f755a-Paper-Conference.pdf.
Pablo Barceló, Floris Geerts, Juan Reutter, and Maksimilian Ryschkov. Graph neural networks with local graph parameters. In M. Ranzato, A. Beygelzimer, Y. Dauphin, P.S. Liang, and J. Wortman Vaughan (eds.), Advances in Neural Information Processing Systems, volume 34, pp. 25280–25293. Curran Associates, Inc., 2021. URL https://proceedings.neurips.cc/paper_files/paper/2021/file/d4d8d1ac7e00e9105775a6b660dd3cbb-Paper.pdf.
César Bravo, Alexander Kozachinskiy, and Cristobal Rojas. On dimensionality of feature vectors in MPNNs. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 4472–4481. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/bravo24a.html.
Emily Clader and Dustin Ross. Beginning in Algebraic Geometry. Undergraduate Texts in Mathematics. Springer, 2025. ISBN 978-3-031-88819-9. doi: 10.1007/978-3-031-88819-9.
Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 1263–1272. PMLR, 2017.
Martin Grohe. The logic of graph neural networks. In 2021 36th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pp. 1–17, 2021. doi: 10.1109/LICS52264.2021.9470677.
Teemu Hankala, Miika Hannula, Juha Kontinen, and Jonni Virtema. Complexity of neural network training and ETR: extensions with effectively continuous functions. In Michael J. Wooldridge, Jennifer G. Dy, and Sriraam Natarajan (eds.), Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2024, February 20-27, 2024, Vancouver, Canada, pp. 12278–12285. AAAI Press, 2024. doi: 10.1609/AAAI.V38I11.29118. URL https://doi.org/10.1609/aaai.v38i11.29118.
Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. In Advances in Neural Information Processing Systems, volume 33, pp. 22118–22133, 2020.
Omri Isac, Yoni Zohar, Clark Barrett, and Guy Katz. DNN Verification, Reachability, and the Exponential Function Problem. In Guillermo A. Pérez and Jean-François Raskin (eds.), 34th International Conference on Concurrency Theory (CONCUR 2023), volume 279 of Leibniz International Proceedings in Informatics (LIPIcs), pp. 26:1–26:18, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. ISBN 978-3-95977-299-0. doi:10.4230/LIPIcs.CONCUR.2023.26. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CONCUR.2023.26.
Sammy Khalife and Amitabh Basu. On the power of graph neural networks and the role of the activation function. SIAM Journal on Applied Algebra and Geometry, 10(2):350–365, 2026. doi:10.1137/24M1659704. URL https://doi.org/10.1137/24M1659704.
Sammy Khalife and Josué Tonelli-Cueto. Is uniform expressivity too restrictive? towards efficient expressivity of GNNs. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=lsvGqR60Tf.
Serge Lang. Introduction to Transcendental Numbers. Addison-Wesley, Reading, MA, 1966.
Pan Li, Yanbang Wang, Hongwei Wang, and Jure Leskovec. Distance encoding: Design provably more powerful neural networks for graph representation learning. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin (eds.), Advances in Neural Information Processing Systems, volume 33, pp. 4465–4478. Curran Associates, Inc., 2020. URL https://proceedings.neurips.cc/paper_files/paper/2020/file/2f73168bf3656f697507752ec592c437-Paper.pdf.
Takanori Maehara and Hoang NT. Deep homomorphism networks. In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (eds.), Advances in Neural Information Processing Systems, volume 37, pp. 56076–56107. Curran Associates, Inc., 2024. doi: 10.52202/079017-1784. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/65f54fdf62cd5614dc5715ae7ece4ef6-Paper-Conference.pdf.
Haggai Maron, Heli Ben-Hamu, Hadar Serviansky, and Yaron Lipman. Provably powerful graph networks. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett (eds.), Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper_files/paper/2019/file/bb04af0f7ecaee4aae62035497da1387-Paper.pdf.
Christopher Morris, Martin Ritzert, Matthias Fey, William L. Hamilton, Jan Eric Lenssen, Gaurav Rattan, and Martin Grohe. Weisfeiler and leman go neural: Higher-order graph neural networks. In Proceedings of the Thirty-Third AAAI Conference on Artificial Intelligence, AAAI 2019, pp. 4602–4609. AAAI Press, 2019. doi: 10.1609/AAAI.V33I01.33014602. URL https://doi.org/10.1609/aaai.v33i01.33014602.
Eran Rosenbluth and Martin Grohe. Repetition makes perfect: Recurrent graph neural networks match message passing limit. In Sven Koenig, Chad Jenkins, and Matthew E. Taylor (eds.), Fortieth AAAI Conference on Artificial Intelligence, Thirty-Eighth Conference on Innovative Applications of Artificial Intelligence, Sixteenth Symposium on Educational Advances in Artificial Intelligence, AAAI 2026, Singapore, January 20-27, 2026, pp. 25168–25175. AAAI Press, 2026. doi: 10.1609/AAAI.V40I30.39707. URL https://doi.org/10.1609/aaai.v40i30.39707.
Oleg Verbitsky and Maksim Zhukovskii. Canonical labeling of sparse random graphs. In 42nd International Symposium on Theoretical Aspects of Computer Science (STACS 2025), volume 327 of Leibniz International Proceedings in Informatics (LIPIcs), pp. 75:1–75:20, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. ISBN 978-3-95977-365-2. doi: 10.4230/LIPIcs.STACS.2025.75. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.STACS.2025.75.
Karl Weierstrass. Zu Lindemann's Abhandlung: "über die Ludolph'sche Zahl". Sitzungsberichte der Königlich Preussischen Akademie der Wissenschaften zu Berlin, pp. 1067–1085, 1885.
Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=ryGs6iA5Km.
APPENDIX
A FULL PROOF OF PROPOSITION 6
Let us recall the GNNs we are working with. Recall that an activation function is Schanuel-ready if there exist polynomials and with rational coefficients such that
•
• is non-constant, positive and strictly increasing on ,
• for all .
When is clear from context we will often refer to as .
Now, writing N for the dimensionality of initial feature vectors recall that, in our full setting, an L-layered GNN N is Schanuel-ready if
• each layer uses a common Schanuel-ready activation function ,
• initialisation takes the form ,
• each layer computes , where , are rational numbers such that .
We again note that a GNN having , and is a valid choice for our purposes. Notice that each produces 1-dimensional feature vectors, but – the feature map of any given graph – need not be so. We now prove the following in its full form:
Proposition 6. Assuming Schanuel's conjecture is true, every L-layered Schanuel-ready GNN N satisfies if and only if , for all pointed graphs and .
The overall proof structure follows the one in the main body. The setting, however, is more technical as we aim to accommodate a wider range of activation functions and the scope of graphs with non-negative rational features. Thus, recall that is non-constant, where are polynomials over with for all .
In the sequel we will make heavy use of a series of constants , which are defined as follows. Enumerate positive valued rationals in any way: and recall that all weights of our GNN are positive (non-negative in the case of ) rationals. For a given the constant is the least common denominator of as well as . When is clear from context, we simply write .
With the above at hand we take any and and define the following sets inductively on :
•
• ,
• , and
• not all in .
The definitions of and are technical and serve as an intermediary step for computing the initialisation . To aid intuition, we invite the reader to think of as a k-sized sample of 's initialisation values; it being understood that is “large enough”. The set is then again a sample of values that can compute by, in a sense, aggregating and combining values of . Subsequent sets then behave similarly. The intuition behind is that raising to appropriate powers will ultimately recover (exponentiations of) as well as . We show how this is achieved by writing and:
Claim 13. For all featured graphs , all vertices and all there is some such that for all we have .
Proof. Take any graph and any vertex . Recall that is a vector of non-negative rationals, say, , it being understood that . Since each entry is non-negative, we may find in our enumeration of the positive rational numbers, such that . Now, let . Clearly, thus resulting in for all . Now, taking we have, for each , that every entry in any feature vector of vertices in satisfies .
Taking any as above and writing we proceed by induction on . For the base case take any and let be the entries of in order. As argued above, and thus . But then, again by definition, is in for large enough, and thus also in .
For the inductive step assume that for all . Then, aggregation and combination in amount to , where . By the definition of we have that the above is . Noting that , , and , for some , , we have that with being a member of . Similar observations hold for with . Lastly, recalling that multiples of are allowed to appear when forming , we have . Then, clearly, which is then in for large enough , and thus also in .
Our strategy again consists of establishing linear independence of for all and in order to conclude that matches the -round 1-WL test. We fully prove this claim at the end of this section. The next few claims are a setup for the desired conclusion.
Claim 14. There is some and non-zero such that is non-zero.
Proof. Since and are non-zero polynomials we may find such that and for non-zero polynomials both having a non-zero constant term (and thus ). Suppose first that . Then, by taking and we have
Now suppose that . Then, taking and as above we again have that . Now, let us take a look at . Notice that is not the zero polynomial as we would then have for all . Inspecting we see that the constant terms of polynomials and cancel each other out. Thus we may assume that takes the normal form with . Now, let be the smallest index such that . Clearly, is then the smallest power of present in . Thus, , where is some non-zero polynomial. Note that as that would contradict . We now observe the following by setting :
Thus concluding the current case and proof.
A series of functions is said to be linearly dependent over if there are some not all zero such that for all over the common domain of . If no such exist, then the functions are linearly independent.
Claim 15. Let be distinct and positive. Then, the functions are linearly independent over .
Proof. Suppose for contradiction that are linearly dependent over . One may then find not all zero such that, for all positive ,
Now, fix as the values promised by Claim 14 and write . For all we then have that . Thus, the linear dependence identity can be written as:
where .
Discarding terms with suppose, first, that . Now, let be such that . Without loss of generality, we assume that . Dividing the above by and taking the limit of the left-hand side we obtain the following:
as for all , we have that . Notice that since the original expression is zero, we have that the limit above is also zero. But neither , nor thus resulting in a contradiction.
Now, suppose that . But then, if all with are positive we have
But thus resulting in a contradiction. Otherwise, if some with is negative, again take . Assuming w.l.o.g. that we again have that
But again and thus contradicting our initial assumption and concluding the proof.
Finally, writing we show:
Claim 16. Suppose that each finite subset of is algebraically independent over . Then each finite subset of is linearly independent over .
Proof. Suppose for contradiction that is not linearly independent over . Then, there are some elements and not all zero such that . Recall that with not all zero and . We can rewrite the relation above as
Since Q is non zero on values above 0 we multiply by the denominators and obtain:
Clearly, when symbols are replaced by variables, the expression above is a polynomial. Assuming it is non-zero, we have that is not algebraically independent over thus contradicting our initial assumption. Thus the only thing left to show is that the above is non-zero.
Clearly, the polynomial mentioned above is non-zero if the following expression is non-zero:
Concentrating on the above let and substitute each with . Now, write . Here is the -ary encoding of the tuple . Notice that each tuple is distinct as is formed by applying to a non-empty product of (possibly repeated) elements in multiplied by some (possibly empty) product of (possibly repeated) elements in . Since each tuple is distinct, we have that all are as well. What is obtained is the following expression in a single variable:
But then, by Claim 15, the functions 1, are linearly independent. Thus, there is some value in Q under which the expression above is defined and non-zero as required.
Once again, the only missing part of our proof is that of algebraic independence of (finite subsets of) over Q. This is again achieved by Schanuel's conjecture.
Lemma 17. Under Schanuel's conjecture, finite subsets of are algebraically independent over Q.
Proof. The proof is in similar spirit to the one in the main body of the work. Let us return to the setting of sets and proceed by induction on maintaining
-
is algebraically independent over ,
-
the sets are pairwise disjoint; and so are ,
-
each entry of is positive.
Again the required result will be achieved by proving the above for each , as is the union of for all and .
For the base case note that , where is a non-zero integer value that is the least common denominator of the positive rationals as well as the weights of . Hence, condition 1 holds trivially as, by the Lindemann–Weierstrass Theorem, is algebraically independent over . Condition 2 is immediate in regards to . Suppose that it does not hold in regards to , . Then, meaning that there is some positive rational for which . But then and thus . But since is transcendental we have that for all . Thus, for all contradicting our requirement that the function is strictly increasing for . Condition 3 follows from the fact that are positive rationals thus making ; it being understood that is any sum (with possible repeats) of . By definition, is positive on , thus is positive as required.
Now, suppose the above conditions hold for . We show that the same is true for in place of . By condition 1 of our inductive hypothesis, is algebraically independent over . Hence, by invoking Claim 16 on appropriate subsets, the set is linearly independent over , and thus so is as is a positive integer. With that, we may apply Schanuel's conjecture on and, in doing so, obtain such that . When turning to analyse the size of . Notice, first, that . Now, by condition 2 of our induction hypothesis, , are all pairwise disjoint. Thus,
Now, write . Notice that as elements of are either rational, already in the set , or take the form , where is a monomial over and is a positive rational. By condition 3 of our induction hypothesis, as it is the result of exponentiation by a positive power. Thus, by definition of , we have . Since fields are closed under multiplicative inverses, we obtain and thus . The above combined with Lemma 1 gives us that is algebraically independent over . This is then exactly condition 1.
Condition 2 for is achieved noting that, by I.H., are pairwise disjoint sets and exponentiation (of ) is injective. Now, suppose that for some . Let the common element be . Clearly, equals , where is a monomial over multiplied with some non-negative power of and a monomial over multiplied by some non-negative power of . But, by our argument above, . Additionally, by condition 1 and 2 (already established above for ), the sets are distinct and their union is algebraically independent over . Hence, . Notice that as a consequence of condition 3. Indeed, by I.H., all entries of are positive. By definition, and are then raised to a positive power. Then, since is strictly increasing on , we have that thus contradicting our initial assumption. The case where is similar as are distinct and, when taken together, algebraically independent over . Finally, follows from the fact that 1 is algebraic over whilst elements of are not.
Condition 3 holds following the same observations as for the base case. Indeed, by I.H. entries of are all positive. Thus, , for any choice of . Hence, again by definition, .
Claim 18. Under Schanuel's conjecture, the vertex embeddings produced by N partition the class of vertices into the same equivalence classes as the L-round 1-WL test. Additionally, the graph embeddings produced by N partition the class of graphs into the same equivalence classes as the L-round 1-WL test.
Proof. For the first statement we show that each of the functions are effectively injective on their respective domains and invoke Lemma 4. For the second statement, we show that each finite subset of vertex embeddings produced by is linearly independent over .
Let us first take a look at . Take any featured graph and any . Suppose for contradiction that , but the initial features are such that . Inspecting the initialisation function we see that its first layer gives vectors and . Since and contain only positive entries we have that as is strictly increasing on , thus ensuring that strictly increases on . It is in the second layer of the initialisation that we must have . Suppose first that . By Claim 13, the entries of and belong to for large enough. By Lemma 17 and Claim 16, the values of are linearly independent over . Thus, it must be the case that for all ; it being understood that is the -th entry of (and similarly for ). But then, for a given , the respective sum is a binary encoding of positions where resides in and . Thus, for all contradicting . Lastly, writing and we must have that . But thus resulting in e^\alpha, e^\beta' > 1 and , a contradiction to our initial assumption arising from the fact is strictly increasing for .
For with we proceed as follows. Suppose for contradiction that , but
But then,
By Claim 13 the embeddings given by are all in for large enough. It is easy to verify that the sums inside the activation function are positive. Since is strictly increasing when we have that, in fact,
Thus, supposing the relevant values of are , we obtain the following relation:
where all are in and represent the number of neighbours (of and respectively) with the embedding . It is to be understood that and . Supposing for the moment we have that . Since values of are linearly independent over (Lemma 17 with Claim 16) we have that for all . Thus, there is a bijection such that . Thus, thus contradicting our initial assumption.
Now suppose that . If for all , then . Since this results in a contradiction. Now, if for some choice of , we obtain the following by grouping dependent terms together:
Focusing on the first equation, recall that . In fact, since , we have that . But then . Since we have that , a contradiction.
For the second statement of the claim we proceed as follows. Take any finite subset such that for some pointed graph . Now, let be the disjoint union of . Claim 13 then establishes for large enough. Lemma 17 and Claim 16 then establish that these values are linearly independent over .
B PROOF OF PROPOSITION 10
Proposition 10. Suppose and are two featured pointed graphs with virtual nodes. Then, for all -layered GNNs , implies and implies .
Proof. The proof is comprised of two inductive arguments. First, we show that implies . For the base case suppose that , but . If and are ordinary vertices, then , a contradiction. If and are virtual then, by definition, . The case where one node is virtual and the other is ordinary is immediate as then for any .
Let us assume the required condition holds for . We extend this to the setting as follows. Suppose . If and are ordinary vertices, then would result in a similar contradiction as in the base case. On the other hand suppose and are virtual and that , but . Writing and we observe that . But then, , where and . Now, let be a bijection between and such that for all . But then, by I.H., the same bijection gives and establishes , a contradiction. The case where one node is virtual and the other is ordinary is immediate.
We now prove that implies by induction on . The base case is immediate as if and only if . Since is an FNN for ordinary vertices and produced the same vector for virtual ones, we have that implies .
For the inductive step assume that our hypothesis holds for . We show that it holds for as well. For this purpose suppose . Then, as argued above, and . But then, by our inductive hypothesis, as well as . Recall that, before activation, is a linear combination of and ; and, in fact, so is . It is then easy to see that as required.
To see that implies one needs only note that ; it being understood that is the set of vertices of and is the set of vertices of . Then, as required.
C FULL PROOF OF THEOREM 11
Theorem 11. Let be an -layer GNN that uses as activation and produces 1-dimensional vertex embeddings in its final layer. Further assume that if and only if for all featured graphs with virtual nodes . Then for every featured graph the values are algebraically independent over .
In this section we only fill in the parts of the above theorem. Namely we show that and as constructed in the theorem are distinguishable by -round 1-WL, that is such that , and show that the above theorem holds with .
We proceed by showing the first claim. For this purpose recall the pointed graphs , values , the identity
and graph construction:
- for , add disjoint copies of the graph constructed as follows:
(a) for , add fresh copies of the pointed graph ;
(b) create a fresh virtual node u and add an edge from u to the distinguished vertex in each copy added in the previous step;
-
add fresh isolated virtual vertices;
-
for and , add disjoint copies of .
The graph is defined symmetrically: interchange and as well as and , and omit Step 2.
Claim 19. For and as in Theorem 11 we have .
Proof. Recall that and are built from pointed graphs that are pairwise distinguishable by the -round 1-WL algorithm. Looking at steps 1 (a) and 3 of the construction in Theorem 11 we see that there were disjoint copies of added to both and . Notice that the only edges added were ones that originate from a fresh vertex introduced in step 1 (b). Thus, in both and , the copies of are coloured identically by the L-round 1-WL and, as it were, cancel each-other out as far as 1-WL graph distinguishability is concerned.
We now inspect the virtual vertices added in steps 1 (b) and 2. Firstly, notice that vertices added in 2 have a unique colour when compared to those added in 1 (b). Indeed these vertices have no edges associated with them and thus, if , it is immediate that .
On the other hand suppose that . We claim that the vertices added in step 1 (b) make the two graphs distinguishable. For this purpose let be the -round 1-WL colours produced on the pointed vertices . Recall that they are all distinct. Taking any added in step 1 (b) we see that it takes the colour for some . By inspecting in Theorem 11 we see that there is no for which . Thus, by the construction in step 1, there is no such that . With that we conclude .
Claim 20. For and as in Theorem 11 we have .
Proof. For the final global readout notice that, by construction of and , there is a bijection between the vertices of and added in Steps 1(a) and 3 that preserves the colours attributed by the L-round 1-WL algorithm. Indeed, Step 1 adds copies of to while Step 3 does the same for , and vice versa for , . Thus, when concerned with the final readout, we need only look at the contribution of virtual nodes added at Steps 1(b) and 2. But notice that the final readout on the graphs is as follows
where is the contribution of vertices that were added in Steps 1(a) and 3. Since the readout over the two graphs is the same, we have that , as desired.
A high level explanation of how the two claims above complete Theorem 11 is in order. Recall that we assumed (for contradiction) that the values are algebraically dependent over . This allowed us to construct two distinct polynomials and with positive integer coefficients such that . They then gave rise to two graphs and satisfying (Claim 19) and (Claim 20). But Theorem 11 requires for all graphs thus resulting in a contradictions. It must then be the case that if matches the -round 1-WL test on graphs with virtual nodes, the values (where ) must be algebraically independent over .
Lastly, we extend our reasoning to other advertised forms of activation:
Claim 21. Theorem 11 extends to GNNs with activation.
Proof. To prove the Theorem in full we must show that the values in are algebraically independent over for any given graph . For the purposes of contradiction suppose this is not the case. Enumerating the values as we obtain a nonzero polynomial with rational coefficients for which . We again assume, by multiplying by the lowest common denominator if needed, that the coefficients in are integers.
Let us now inspect the expression . Clearly, . Now, peeking into we see that it takes the form , where each is a monomial in . Thus, takes the form:
Expanding the expression above we obtain:
Having the above we wish to rid ourselves of monomials that that feature both negative and positive powers; i.e. . For this purpose let be any monomial over such that, for all
for some . Clearly is a polynomial that takes the form:
Then, can be rewritten into the compact form , where each and is a monomial of the form , where . Now, recalling that , we see that . Additionally, . Thus, the relations and defined as:
also evaluate to zero at ; it being understood that in with in , and with being the -th layer bias vector used by virtual nodes. Peaking inside we see:
Since are monomials and we obtain:
Recalling that and we obtain that and are, respectively:
Noting that , each expression is then computable by a virtual node using as activation. Indeed, taking pointed graphs such that we have that a virtual node connected to copies of for all has . Similar observations follow for . The outermost sum can then be treated as the global readout of over virtual nodes; provided that terms with negative coefficients have been moved to the right hand side of . Having the above one can proceed with the same graph construction as in Theorem 11.
In this setting one again needs to be careful so that does not turn out to be the zero function. Notice, first, that is non-zero. For this let us again look at , where , and not all zero. Let and . Then is a polynomial, where captures via a -ary encoding the sequence . Since all degree sequences were taken to be distinct, we have that all are as well. Thus the polynomial is non-zero. Without loss of generality, let and be, respectively, the minimum and maximum values amongst . Now, inspecting we have:
Let us first suppose that . Then, multiplying by and taking the limit we obtain:
Otherwise, when , we have the following by multiplying by and taking the limit:
Having both cases we conclude that the expression is non-zero.
Almost immediately, because of the above, is a non-zero polynomial. Indeed, begin by writing as where , not all zero and with sequences for . But then, multiplying by a common monomial cannot result in terms cancelling out. Indeed, implies , a contradiction. Thus the polynomial has at least a single term with a non-zero coefficient making the polynomial itself non-zero.
Lastly, we need to show that is non-zero. Clearly, if the above is the case, then the relevant expressions are non-zero as well. Inspecting the monomials (with non-zero coefficients) of and we see that they are all distinct (and that there are no constant terms in either of the expressions). Since we have that does not cause cancellations leaving the expression non-zero.
D EXPERIMENTS
We would first like to add some clarity regarding our experimental setup. When comparing embeddings produced by GNNs we compare without rounding. That is to say, two embeddings are equal if they have the same binary value. Graphs for which a given GNN produced values or NaN are automatically taken to be unsuccessful for that GNN. In some systems 128-bit floating point numbers are unavailable. We thus emulated float128 (IEEE 754 binary128) in software.
We present the extended sample of Figure 1 in Figure 2. In particular we note that in the 128-bit setting success ratio for sigmoid and tanh is exactly 1 when , and exactly 1 for sinh, cosh and exp when (and as long as ). This indicates that GNN errors in the float64 setting are due to imprecisions in float64 arithmetic.
It is interesting to analyse the effects that increased precision has on GNNs with different activation functions. Firstly, we see no meaningful gains for ReLU activated GNNs. This is to be expected as the values computed by our ReLU GNNs are seemingly well represented even in the float32 setting. It is clear that increased precision correlates with better performance for sigmoid and tanh activated GNNs. Indeed, we see that in the float128 setting both sigmoid and tanh start to perform better for values above 1. It is then interesting to contrast this with the seemingly weaker effect precision increase has on sinh, cosh and exp. This phenomenon is consistent with 64- and 128-bit float structure. Note that float64 reserves 11 bits for the exponent and 53 bits of significant precision; float128 specifies 15 bits for the exponent and 113 bits of significant precision. Thus, float128 allows more accurate representation of values close to 1, which is advantageous for sigmoid and tanh. On the other hand, sinh, cosh and exp are unbounded from above. Thus, these activation functions coupled with larger weights exhaust the representable range of the float128 exponent. See Table 1 for how much of the failure rate is attributed to overflow.
Figure 3 presents the full runs for sigmoid, tanh and sinh activated GNNs with in the 128-bit float setting. Notice that in the case of sigmoid and tanh the success rate is 1 unless .
| sigmoid | tanh | sinh | cosh | exp | |
|---|---|---|---|---|---|
| Success ratio | 0.982 | 0.998 | 0.974 | 0.634 | 0.116 |
| Non-finite failure rate | 0.000 | 0.000 | 0.022 | 0.366 | 0.884 |
Table 1: Float32 results at self-weight and aggregation-weight . A non-finite failure means that at least one final node embedding is NaN, , or ; these outcomes are combined into one category.

Aggregation-weight A
Aggregation-weight A
Aggregation-weight A
Figure 2: Success ratio for GNNs by floating-point precision (panel row), fixed self-weight (panel column), activation (heatmap row), and aggregation-weight (heatmap column). Checkmarks denote success ratio 1; all panels share the same color scale.

Aggregation-weight A
Aggregation-weight A

Aggregation-weight A
Figure 3: Success ratio in float128 arithmetic for GNNs with medium self-weight (heatmap row), medium aggregation-weight (heatmap column), and the sigmoid, tanh, and sinh activations (panels). Checkmarks denote success ratio 1; all panels share the same color scale.