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. [21 ] ; Morris et al. [17 ] . 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. [21 ] that GNNs of constant depth L L L match the expressive power of L L 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. [1 ] . 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. [4 ] , refining a result by Amir et al. [2 ] . 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 L L -layer GNN almost every choice of real-valued weights suffices to match L L 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 [11 ] 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 [18 ] . 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 e x e^x e x , L L L -layer GNNs with rational weights can uniformly match the L L 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. [4 ] 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. [4 ] 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 \mathbb{Q} 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 \mathbb{Q} Q . Consider the basic case of exponential activation e x e^x e x . If a 1 , … , a n a_1,\ldots,a_n a 1 , … , a n are embeddings and m 1 , … , m n m_1,\ldots,m_n m 1 , … , m n are their multiplicities in a multiset, then e m 1 a 1 + ⋯ + m n a n = ( e a 1 ) m 1 ⋯ ( e a n ) m n e^{m_1a_1+\cdots+m_na_n}=(e^{a_1})^{m_1}\cdots(e^{a_n})^{m_n} e m 1 a 1 + ⋯ + m n a n = ( e a 1 ) m 1 ⋯ ( 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. [6 ] ; ); Hu et al. [9 ] , we prove that the existence of an L L L -layer GNN with exponentiation, sinh or cosh activation (and scalar embeddings on the final level) that attains the expressive power of L L 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. [3 ] ; Maehara & NT [15 ] , random node initializations Abboud et al. (2021), positional distance encodings Li et al. [14 ] and mechanisms inspired by higher-dimensional Weisfeiler-Leman tests Maron et al. [16 ] ; ); Morris et al. [17 ] . Regarding Bravo et al. [4 ] and Rosenbluth & Grohe [18 ] , we only add some minor clarifications over what was already said above. The results in Bravo et al. [4 ] 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. [21 ] . In contrast, Rosenbluth & Grohe [18 ] 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 [12 ] 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 [12 ] 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. [8 ] and verification Isac et al. [10 ] 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.
Preliminaries
Abstract Algebra. We use N \mathbb{N} N , Z \mathbb{Z} Z , Q \mathbb{Q} Q , Q ‾ \overline{\mathbb{Q}} Q , R \mathbb{R} R , C \mathbb{C} C to denote natural, integer, rational, algebraic, real and complex numbers respectively. By Q ≥ 0 \mathbb{Q}_{\geq0} Q ≥ 0 we reference non-negative rationals. We recall that an algebraic number is a real number that is a root of a non-zero polynomial in one variable with rational coefficients. For a vector v ˉ \bar{v} v ˉ , we use v ˉ [ i ] \bar{v}[i] v ˉ [ i ] to denote its i i i -th component. We also recall that a field consists of an underlying set F F F and two binary operations + + + , ⋅ : F × F → F \cdot: F \times F \to F ⋅ : F × F → F , subject to additional conditions. As customary, we denote a field by its underlying set, e.g. Q \mathbb{Q} Q is used for the field of rational numbers with the usual addition and multiplication operations.
For two fields E E E and F F F , we say that E E E is a field extension of F F F , denoted E / F E/F E / F , if F ⊆ E F \subseteq E F ⊆ E and the additive and multiplicative operations of E E E , when restricted to F × F F \times F F × F , are exactly the additive and multiplicative operations of F F F . For instance, R \mathbb{R} R is a field extension of Q \mathbb{Q} Q . For a field extension E / F E/F E / F and S ⊆ E S \subseteq E S ⊆ E , we denote by F ( S ) F(S) F ( S ) the field generated by F F F and S S S , that is, the smallest subfield G G G of E E E such that S ⊆ G S \subseteq G S ⊆ G and G / F G/F G / F . For instance, Q ( 2 ) = { a + b 2 ∣ a , b ∈ Q } \mathbb{Q}(\sqrt{2}) = \{a+b\sqrt{2} \mid a,b \in\mathbb{Q}\} Q ( 2 ) = { a + b 2 ∣ a , b ∈ Q } is the smallest subfield of R \mathbb{R} R containing both Q \mathbb{Q} Q and 2 \sqrt{2} 2 . Since F ( S ) F(S) F ( S ) is a field, P ( s ) Q ( s ) ∈ F ( S ) \frac{P(s)}{Q(s)} \in F(S) Q ( s ) P ( s ) ∈ F ( S ) for all polynomials P ( x ) P(x) P ( x ) and Q ( x ) Q(x) Q ( x ) over F F F and all s ∈ S s \in S s ∈ S with Q ( s ) ≠ 0 Q(s) \ne0 Q ( s ) = 0 . This relates to a family of generated fields used later in this article, namely, for any positive integer κ \kappa κ ,
Q ( e 1 / κ ) = { P ( e 1 / κ ) Q ( e 1 / κ ) | P ( x ) , Q ( x ) polynomials over Q , Q ( e 1 / κ ) ≠ 0 } . \mathbb{Q}(e^{1/\kappa}) = \left\{\frac{P(e^{1/\kappa})}{Q(e^{1/\kappa})} \,\middle|\, P(x), Q(x)\text{ polynomials over }\mathbb{Q},\ Q(e^{1/\kappa}) \ne0\right\}. Q ( e 1/ κ ) = { Q ( e 1/ κ ) P ( e 1/ κ ) P ( x ) , Q ( x ) polynomials over Q , Q ( e 1/ κ ) = 0 } .
A field extension E / F E/F E / F is finitely generated if there is a finite S ⊆ E S \subseteq E S ⊆ E such that E = F ( S ) E = F(S) E = F ( S ) . Clearly, Q ( 2 ) \mathbb{Q}(\sqrt{2}) Q ( 2 ) and Q ( e 1 / κ ) \mathbb{Q}(e^{1/\kappa}) Q ( e 1/ κ ) are finitely generated.
Let E / F E/F E / F be a field extension and S = { s 1 , … , s n } ⊂ E S = \{s_1,\ldots,s_n\} \subset E S = { s 1 , … , s n } ⊂ E . Then S S S is linearly independent over F F F if a 1 s 1 + ⋯ + a n s n = 0 a_1s_1+\cdots+a_ns_n = 0 a 1 s 1 + ⋯ + a n s n = 0 in E E E only if a 1 = ⋯ = a n = 0 a_1=\cdots=a_n=0 a 1 = ⋯ = a n = 0 , for all a 1 , … , a n ∈ F a_1,\ldots,a_n \in F a 1 , … , a n ∈ F . For instance, { 1 , 2 } \{1,\sqrt{2}\} { 1 , 2 } is linearly independent over Q \mathbb{Q} Q . Similarly, S S S is algebraically independent over F F F if there is no non-zero polynomial P ( x 1 , … , x n ) P(x_1,\ldots,x_n) P ( x 1 , … , x n ) with coefficients in F F F that satisfies P ( s 1 , … , s n ) = 0 P(s_1,\ldots,s_n)=0 P ( s 1 , … , s n ) = 0 . For instance, { 2 } \{\sqrt{2}\} { 2 } is not algebraically independent over Q \mathbb{Q} Q since 2 \sqrt{2} 2 is a root of x 2 − 2 x^2-2 x 2 − 2 . In contrast, { π } \{\pi\} { π } is algebraically independent over Q \mathbb{Q} Q since π \pi π is transcendental. A transcendence basis of a field extension E / F E/F E / F is a subset of E E E , maximal w.r.t. set inclusion, that is algebraically independent over F F F . For example, { π } \{\pi\} { π } is a transcendence basis of Q ( π ) / Q \mathbb{Q}(\pi)/\mathbb{Q} Q ( π ) / Q . It is known that all transcendence bases share the same cardinality, see Clader & Ross [5 ] . It is thus meaningful to define the transcendence degree of E / F E/F E / F , denoted trdeg F ( E ) \operatorname{trdeg}_F(E) trdeg F ( E ) , as the cardinality of any transcendence basis of E / F E/F E / F . Thus trdeg Q ( Q ( π ) ) = 1 \operatorname{trdeg}_{\mathbb{Q}}(\mathbb{Q}(\pi))=1 trdeg Q ( Q ( π )) = 1 and trdeg Q ( Q ( 2 ) ) = 0 \operatorname{trdeg}_{\mathbb{Q}}(\mathbb{Q}(\sqrt{2}))=0 trdeg Q ( Q ( 2 )) = 0 . A field extension E / F E/F E / F is algebraic if trdeg F ( E ) = 0 \operatorname{trdeg}_F(E)=0 trdeg F ( E ) = 0 . Hence Q ( 2 ) / Q \mathbb{Q}(\sqrt{2})/\mathbb{Q} Q ( 2 ) / Q is algebraic.
The following consequence of Corollary 6.31 of Clader & Ross [5 ] will be useful.
Lemma 1. Let E / F E/F E / F be a finitely generated field extension and let S ⊆ E S \subseteq E S ⊆ E . If E / F ( S ) E/F(S) E / F ( S ) is algebraic and trdeg F ( E ) ≥ ∣ S ∣ \operatorname{trdeg}_F(E) \geq|S| trdeg F ( E ) ≥ ∣ S ∣ , then S S S is algebraically independent over F F F .
Proof. Suppose that S S S is algebraically dependent over F F F , and let T ⊂ S T \subset S T ⊂ S be maximal algebraically independent over F F F . Then ∣ T ∣ < ∣ S ∣ |T| < |S| ∣ T ∣ < ∣ S ∣ , and F ( S ) / F ( T ) F(S)/F(T) F ( S ) / F ( T ) is algebraic. Since E / F ( S ) E/F(S) E / F ( S ) is algebraic, so is E / F ( T ) E/F(T) E / F ( T ) . Point 1 of Corollary 6.31 of Clader & Ross [5 ] states that if E / F E/F E / F is finitely generated and E / F ( T ) E/F(T) E / F ( T ) is algebraic, then trdeg F ( E ) ≤ ∣ T ∣ \operatorname{trdeg}_F(E) \leq|T| trdeg F ( E ) ≤ ∣ T ∣ . Consequently, trdeg F ( E ) ≤ ∣ T ∣ < ∣ S ∣ \operatorname{trdeg}_F(E) \leq|T| < |S| trdeg F ( E ) ≤ ∣ T ∣ < ∣ S ∣ , contradicting trdeg F ( E ) ≥ ∣ S ∣ \operatorname{trdeg}_F(E) \geq|S| trdeg F ( E ) ≥ ∣ S ∣ .
A classical result from transcendental number theory provides an important way of obtaining algebraically independent numbers, from Weierstrass [20 ] .
Theorem 2. (Lindemann–Weierstrass) If { ζ 1 , … , ζ n } ⊆ Q ‾ \{\zeta_1,\ldots,\zeta_n\} \subseteq\overline{\mathbb{Q}} { ζ 1 , … , ζ n } ⊆ Q is linearly independent over Q \mathbb{Q} Q , then { e ζ 1 , … , e ζ n } \{e^{\zeta_1},\ldots,e^{\zeta_n}\} { e ζ 1 , … , e ζ n } is algebraically independent over Q \mathbb{Q} Q .
The following conjecture, due to Schanuel and first published by Lang [13 ] , 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 { z 1 , … , z n } ⊆ C \{z_1,\ldots,z_n\}\subseteq\mathbb{C} { z 1 , … , z n } ⊆ C is linearly independent over Q \mathbb{Q} Q , then
trdeg Q Q ( z 1 , … , z n , e z 1 , … , e z n ) ≥ n . \operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}(z_1,\ldots,z_n,e^{z_1},\ldots,e^{z_n})\geq n. trdeg Q Q ( z 1 , … , z n , e z 1 , … , e z n ) ≥ n .
Note that Theorem 2 is the special case of Schanuel’s conjecture where z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n are algebraic. By definition, algebraic numbers contribute no transcendence degree and thus trdeg Q Q ( z 1 , … , z n , e z 1 , … , e z n ) ≥ n \operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}(z_1,\ldots,z_n,e^{z_1},\ldots,e^{z_n})\geq n trdeg Q Q ( z 1 , … , z n , e z 1 , … , e z n ) ≥ n implies trdeg Q Q ( e z 1 , … , e z n ) ≥ n \operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}(e^{z_1},\ldots,e^{z_n})\geq n trdeg Q Q ( e z 1 , … , e z n ) ≥ n , which is the same as saying that { e z 1 , … , e z n } \{e^{z_1},\ldots,e^{z_n}\} { e z 1 , … , e z n } is algebraically independent over Q \mathbb{Q} Q .
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 σ : R → R \sigma:\mathbb{R}\to\mathbb{R} σ : R → R is Schanuel-ready if it is of the form σ ( x ) = P ( e x ) Q ( e x ) \sigma(x)=\frac{P(e^x)}{Q(e^x)} σ ( x ) = Q ( e x ) P ( e x ) , with P ( y ) P(y) P ( y ) and Q ( y ) Q(y) Q ( y ) polynomials with rational coefficients, such that (i) P ( y ) Q ( y ) \frac{P(y)}{Q(y)} Q ( y ) P ( y ) is non-constant, positive and strictly increasing on y > 1 y>1 y > 1 and (ii) Q ( y ) ≠ 0 Q(y)\neq0 Q ( y ) = 0 for all y > 0 y>0 y > 0 . Notable Schanuel-ready functions include the exponentiation function exp = e x \exp=e^x exp = e x , logistic sigmoid e x e x + 1 \frac{e^x}{e^x+1} e x + 1 e x , hyperbolic tangent e 2 x − 1 e 2 x + 1 \frac{e^{2x}-1}{e^{2x}+1} e 2 x + 1 e 2 x − 1 , hyperbolic sine e 2 x − 1 2 e x \frac{e^{2x}-1}{2e^x} 2 e x e 2 x − 1 , and hyperbolic cosine e 2 x + 1 2 e x \frac{e^{2x}+1}{2e^x} 2 e x e 2 x + 1 .
Graphs. We work with directed graphs G = ( V , E ) G=(V,E) G = ( V , E ) throughout this article. For each v ∈ V v\in V v ∈ V we define the neighborhood N ( v ) = { u ∈ V ∣ ( v , u ) ∈ E } N(v)=\{u\in V\mid(v,u)\in E\} N ( v ) = { u ∈ V ∣ ( v , u ) ∈ E } to be the set of vertices reachable from v v v in one step. A pointed graph is a pair ( G , v ) (G,v) ( G , v ) with G = ( V , E ) G=(V,E) G = ( V , E ) a graph and v ∈ V v\in V v ∈ V a distinguished vertex. An embedded graph of dimension d > 0 d>0 d > 0 is a triple ( V , E , λ ) (V,E,\lambda) ( V , E , λ ) with λ : V → R d \lambda:V\to\mathbb{R}^d λ : V → R d an embedding . Pointed embedded graphs are defined as expected, taking the form ( ( V , E , λ ) , v ) ((V,E,\lambda),v) (( V , E , λ ) , v ) .
AC-GNNs and 1-WL. An L L L -layer aggregate-combine graph neural network (AC-GNN) is a tuple N = ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , I ) \mathcal{N}=(\sigma,(C_i)_{1\leq i\leq L},(A_i)_{1\leq i\leq L},(b_i)_{1\leq i\leq L},I) N = ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , I ) where σ : R → R \sigma:\mathbb{R}\to\mathbb{R} σ : R → R is an activation function applied component-wise, there are dimensions d 0 , … , d L ≥ 1 d_0,\ldots,d_L\geq1 d 0 , … , d L ≥ 1 such that A i , C i ∈ Q d i × d i − 1 A_i,C_i\in\mathbb{Q}^{d_i\times d_{i-1}} A i , C i ∈ Q d i × d i − 1 and b i ∈ Q d i b_i\in\mathbb{Q}^{d_i} b i ∈ Q d i for 1 ≤ i ≤ L 1\leq i\leq L 1 ≤ i ≤ L , and I I I specifies an initialization function . More precisely, I I I is a tuple ( B 1 , … , B k , c 1 , … , c k ) (B_1,\ldots,B_k,c_1,\ldots,c_k) ( B 1 , … , B k , c 1 , … , c k ) such that there are d 0 ′ , … , d k ′ ≥ 1 d'_0,\ldots,d'_k\geq1 d 0 ′ , … , d k ′ ≥ 1 with B i ∈ Q d i ′ × d i − 1 ′ B_i\in\mathbb{Q}^{d'_i\times d'_{i-1}} B i ∈ Q d i ′ × d i − 1 ′ and c i ∈ Q d i ′ c_i\in\mathbb{Q}^{d'_i} c i ∈ Q d i ′ for 1 ≤ i ≤ k 1\leq i\leq k 1 ≤ i ≤ k . We require that d k ′ = d 0 d'_k=d_0 d k ′ = d 0 and call d k ′ d'_k d k ′ the input dimension of N \mathcal{N} N , and d L d_L d L its output dimension . The weights of a GNN are the elements of the A i A_i A i , B i B_i B i , C i C_i C i , b i b_i b i and c i c_i c i .
As the input to GNNs, we use graphs endowed with non-negative rational vertex features. Formally, a featured graph of dimension n n n is an embedded graph ( V , E , λ ) (V,E,\lambda) ( V , E , λ ) of dimension n n n such that the image of λ \lambda λ contains only vectors of non-negative rationals. Let N \mathcal{N} N be a GNN as above, and let G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) be a featured graph of dimension d 0 ′ d'_0 d 0 ′ , the input dimension of N \mathcal{N} N . When applying N \mathcal{N} N to G G G , in the first step I I I transforms G G G into an embedded graph ( V , E , λ ( 0 ) ) (V,E,\lambda^{(0)}) ( V , E , λ ( 0 ) ) of dimension d 0 d_0 d 0 . Informally, I I I should be thought of as a feedforward neural network. Formally, we set λ ~ ( 0 ) ( x ˉ ) = σ ( B k σ ( ⋯ σ ( B 1 x ˉ + c 1 ) ⋯ ) + c k ) \widetilde{\lambda}^{(0)}(\bar{x})=\sigma(B_k\sigma(\cdots\sigma(B_1\bar{x}+c_1)\cdots)+c_k) λ ( 0 ) ( x ˉ ) = σ ( B k σ ( ⋯ σ ( B 1 x ˉ + c 1 ) ⋯ ) + c k ) for all x ˉ ∈ R d 0 ′ \bar{x}\in\mathbb{R}^{d'_0} x ˉ ∈ R d 0 ′ and λ ( 0 ) ( v ) = λ ~ ( 0 ) ( λ ( v ) ) \lambda^{(0)}(v)=\widetilde{\lambda}^{(0)}(\lambda(v)) λ ( 0 ) ( v ) = λ ( 0 ) ( λ ( v )) for all v ∈ V v\in V v ∈ V . Next, N \mathcal{N} N constructs a sequence of L L L embeddings of ( V , E ) (V,E) ( V , E ) , starting from λ ( 0 ) \lambda^{(0)} λ ( 0 ) . Let 1 ≤ i ≤ L 1\leq i\leq L 1 ≤ i ≤ L . Set λ ~ ( i ) ( x ˉ , M ) = σ ( C i x ˉ + A i ∑ M m + b i ) \widetilde{\lambda}^{(i)}(\bar{x},M)=\sigma(C_i\bar{x}+A_i\sum_{M}m+b_i) λ ( i ) ( x ˉ , M ) = σ ( C i x ˉ + A i ∑ M m + b i ) for all x ˉ ∈ R d i − 1 \bar{x}\in\mathbb{R}^{d_{i-1}} x ˉ ∈ R d i − 1 and all finite multisets M M M over R d i − 1 \mathbb{R}^{d_{i-1}} R d i − 1 . Then define λ ( i ) ( v ) = λ ~ ( i − 1 ) ( λ ( i − 1 ) ( v ) , { { λ ( i − 1 ) ( u ) ∣ u ∈ N ( v ) } } ) \lambda^{(i)}(v)=\widetilde{\lambda}^{(i-1)}(\lambda^{(i-1)}(v),\{\{\lambda^{(i-1)}(u)\mid u\in N(v)\}\}) λ ( i ) ( v ) = λ ( i − 1 ) ( λ ( i − 1 ) ( v ) , {{ λ ( i − 1 ) ( u ) ∣ u ∈ N ( v )}}) for all v ∈ V v\in V v ∈ V . For vertex classification, one may now work with the embedded graph ( V , E , λ ( L ) ) (V,E,\lambda^{(L)}) ( V , E , λ ( L ) ) . For graph classification, a final graph-level readout is carried out to consolidate the graph embedding into a single vector λ G = ∑ v ∈ V λ ( L ) ( v ) \lambda_G=\sum_{v\in V}\lambda^{(L)}(v) λ G = ∑ v ∈ V λ ( L ) ( v ) . We refer to the functions λ ~ ( 0 ) , … , λ ~ ( L ) \widetilde{\lambda}^{(0)},\ldots,\widetilde{\lambda}^{(L)} λ ( 0 ) , … , λ ( L ) 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 [7 ] . The algorithm takes a featured graph G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) as input and proceeds in rounds, producing increasingly refined colorings of the vertices of G G G . The initial coloring is defined by μ ( 0 ) ( v ) = hash ( λ ( v ) ) \mu^{(0)}(v)=\operatorname{hash}(\lambda(v)) μ ( 0 ) ( v ) = hash ( λ ( v )) where hash is an injective function whose range is a countable set of colors. In later rounds i > 0 i > 0 i > 0 , the coloring is defined by
μ ( i ) ( v ) = hash ( μ ( i − 1 ) ( v ) , { { μ ( i − 1 ) ( u ) ∣ u ∈ N ( v ) } } ) . \mu^{(i)}(v) = \operatorname{hash}\left(\mu^{(i-1)}(v), \{\{\mu^{(i-1)}(u) \mid u \in N(v)\}\}\right). μ ( i ) ( v ) = hash ( μ ( i − 1 ) ( v ) , {{ μ ( i − 1 ) ( u ) ∣ u ∈ N ( v )}} ) .
When used as an approximative test for graph isomorphism, 1-WL is typically run until stabilization, that is, until μ ( i ) ( v 1 ) = μ ( i ) ( v 2 ) \mu^{(i)}(v_1) = \mu^{(i)}(v_2) μ ( i ) ( v 1 ) = μ ( i ) ( v 2 ) implies μ ( i + 1 ) ( v 1 ) = μ ( i + 1 ) ( v 2 ) \mu^{(i+1)}(v_1) = \mu^{(i+1)}(v_2) μ ( i + 1 ) ( v 1 ) = μ ( i + 1 ) ( v 2 ) for all vertices v 1 , v 2 v_1, v_2 v 1 , v 2 . Here, we will mostly be interested in the coloring μ ( L ) ( v ) \mu^{(L)}(v) μ ( L ) ( v ) for some fixed L L L . This coloring can be lifted to the graph level by taking the color of G = ( V , E ) G = (V, E) G = ( V , E ) to be μ G = hash ( { { μ ( L ) ( v ) ∣ v ∈ V } } ) \mu_G = \operatorname{hash}(\{\{\mu^{(L)}(v) \mid v \in V\}\}) μ G = hash ({{ μ ( L ) ( v ) ∣ v ∈ V }}) .
Both the L L L -round 1-WL algorithm and every L L L -layer AC-GNN induce an equivalence relation on all graphs: G 1 G_1 G 1 and G 2 G_2 G 2 are equivalent if μ ( G 1 ) = μ ( G 2 ) \mu(G_1) = \mu(G_2) μ ( G 1 ) = μ ( G 2 ) or λ ( G 1 ) = λ ( G 2 ) \lambda(G_1) = \lambda(G_2) λ ( G 1 ) = λ ( G 2 ) , respectively. Equivalence relations on pointed graphs ( G , v ) (G, v) ( G , v ) are induced in the same way, via μ ( L ) ( v ) \mu^{(L)}(v) μ ( L ) ( v ) and λ ( L ) ( v ) \lambda^{(L)}(v) λ ( L ) ( v ) . It follows from Xu et al. [21 ] ; Morris et al. [17 ] that L L L -layer GNNs cannot classify graphs or vertices as being non-equivalent unless the L L L -round 1-WL does the same. The following, which can be inferred from Theorem 3 of Xu et al. [21 ] , states a converse. If the update functions of a GNN N \mathcal{N} N are injective, then the equivalence relation on pointed graphs induced by N \mathcal{N} N 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 Q \mathbb{Q} Q .
Lemma 4. Let N \mathcal{N} N be an L L L -layer AC-GNN such that λ ~ ( 0 ) , … , λ ~ ( L ) \widetilde{\lambda}^{(0)}, \ldots, \widetilde{\lambda}^{(L)} λ ( 0 ) , … , λ ( L ) are injective. Then for all pointed graphs ( G 1 , v 1 ) (G_1, v_1) ( G 1 , v 1 ) and ( G 2 , v 2 ) (G_2, v_2) ( G 2 , v 2 ) , λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) \lambda^{(L)}(v_1) = \lambda^{(L)}(v_2) λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) if and only if μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) \mu^{(L)}(v_1) = \mu^{(L)}(v_2) μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) . If, in addition, every finite subset of the image of λ ~ ( L ) \widetilde{\lambda}^{(L)} λ ( L ) is linearly independent over Q \mathbb{Q} Q , then for all graphs G 1 , G 2 G_1, G_2 G 1 , G 2 , λ G 1 = λ G 2 \lambda_{G_1} = \lambda_{G_2} λ G 1 = λ G 2 if and only if μ G 1 = μ G 2 \mu_{G_1} = \mu_{G_2} μ G 1 = μ G 2 .
For our later use of Lemma 4, we remark that it suffices for the lemma to hold that the functions λ ~ ( 0 ) , … , λ ~ ( L ) \widetilde{\lambda}^{(0)}, \ldots, \widetilde{\lambda}^{(L)} λ ( 0 ) , … , λ ( L ) are only effectively injective . For 1 ≤ i ≤ L 1 \leq i \leq L 1 ≤ i ≤ L , this means that λ ~ ( i ) \widetilde{\lambda}^{(i)} λ ( i ) is injective on the restriction to inputs ( x ˉ , M ) (\bar{x}, M) ( x ˉ , M ) such that there is a graph G = ( V , E ) G = (V, E) G = ( V , E ) and a vertex v ∈ V v \in V v ∈ V with x ˉ = λ ( i − 1 ) ( v ) \bar{x} = \lambda^{(i-1)}(v) x ˉ = λ ( i − 1 ) ( v ) and M = { { λ ( i − 1 ) ( u ) ∣ u ∈ N ( v ) } } M = \{\{\lambda^{(i-1)}(u) \mid u \in N(v)\}\} M = {{ λ ( i − 1 ) ( u ) ∣ u ∈ N ( v )}} . Likewise, λ ~ ( 0 ) \widetilde{\lambda}^{(0)} λ ( 0 ) is effectively injective if it is injective on vertex labels, that is, on vectors of non-negative rationals.
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 d 0 , … , d L d_0, \ldots, d_L d 0 , … , d L from the definition of GNNs are 1 (while the dimensions d 1 ′ , … , d k ′ d'_1, \ldots, d'_k d 1 ′ , … , d k ′ of the initialization function need not be 1).
Theorem 5. Assume that Schanuel’s conjecture is true. Then for every Schanuel-ready activation function σ \sigma σ and every L ≥ 1 L \geq1 L ≥ 1 , there is an L L L -layer GNN N \mathcal{N} N of internal dimension 1 that uses σ \sigma σ activation and integer weights such that (i) for all pointed graphs, ( G 1 , v 1 ) (G_1, v_1) ( G 1 , v 1 ) and ( G 2 , v 2 ) (G_2, v_2) ( G 2 , v 2 ) , λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) \lambda^{(L)}(v_1) = \lambda^{(L)}(v_2) λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) if and only if μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) \mu^{(L)}(v_1) = \mu^{(L)}(v_2) μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) ; and (ii) for all graphs G 1 , G 2 G_1, G_2 G 1 , G 2 , λ G 1 = λ G 2 \lambda_{G_1} = \lambda_{G_2} λ G 1 = λ G 2 if and only if μ G 1 = μ G 2 \mu_{G_1} = \mu_{G_2} μ G 1 = μ G 2 .
In fact, our result is even stronger than what is stated in Theorem 5. Note that, for GNNs with internal dimension 1, the matrices A i , C i A_i, C_i A i , C i and bias vectors b i b_i b i are simply scalars. Our proof shows that it suffices to choose C i = 1 C_i = 1 C i = 1 , A i = 2 A_i = 2 A i = 2 , and b i = 0 b_i = 0 b i = 0 for every message-passing layer. For featured input graphs of dimension N N N , the matrices B i B_i B i in the initialization function use only the values 2 1 , 2 2 , … , 2 N 2^1, 2^2, \ldots, 2^N 2 1 , 2 2 , … , 2 N , and the vectors c i c_i c i are either comprised entirely of zero or of one. Thus the weights in N \mathcal{N} N are not only integers, but also reside in a finite set of natural numbers whose size only depends on N N N , but not on L L L . In the general setting, our construction allows all positive rational A i A_i A i and C i C_i C i satisfying C i A i ∉ N \frac{C_i}{A_i} \notin\mathbb{N} A i C i ∈ / N . 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 L L -layer GNN N = ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , J ) \mathcal{N} = (\sigma, (C_i)_{1 \leq i \leq L}, (A_i)_{1 \leq i \leq L}, (b_i)_{1 \leq i \leq L}, J) N = ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , J ) of input dimension N N N and internal dimension 1 is Schanuel-ready if activated by a Schanuel-ready activation function and satisfies the following conditions:
the initialization function is I = ( B 1 , B 2 , c 1 , c 2 ) I = (B_1, B_2, c_1, c_2) I = ( B 1 , B 2 , c 1 , c 2 ) , where B 1 B_1 B 1 is the N × N N \times N N × N identity matrix, c 1 = 1 N c_1 = \mathbf{1}_N c 1 = 1 N , B 2 = ( 2 1 , 2 2 , … , 2 N ) B_2 = (2^1, 2^2, \ldots, 2^N) B 2 = ( 2 1 , 2 2 , … , 2 N ) , and c 2 = 0 c_2 = 0 c 2 = 0 . Then λ ( 0 ) ( v ) = σ ( ∑ j = 1 N 2 j σ ( λ ( v ) [ j ] + 1 ) ) \lambda^{(0)}(v) = \sigma\left(\sum_{j=1}^{N} 2^j \sigma(\lambda(v)[j] + 1)\right) λ ( 0 ) ( v ) = σ ( ∑ j = 1 N 2 j σ ( λ ( v ) [ j ] + 1 ) ) for all graphs G = ( V , E ) G = (V, E) G = ( V , E ) and vertices v ∈ V v \in V v ∈ V ;
A i , C i > 0 A_i, C_i > 0 A i , C i > 0 and b i ≥ 0 b_i \geq0 b i ≥ 0 are rational numbers such that C i A i ∉ N \frac{C_i}{A_i} \notin\mathbb{N} A i C i ∈ / N .
The purpose of the above initialization function I I 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 σ ( q + 1 ) \sigma(q+1) σ ( q + 1 ) are linearly independent over Q \mathbb{Q} Q , preventing different feature values from canceling out in the sum. The powers 2 j 2^j 2 j 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 L L -layered Schanuel-ready GNN N \mathcal{N} N satisfies λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) \lambda^{(L)}(v_1)=\lambda^{(L)}(v_2) λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) if and only if μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) \mu^{(L)}(v_1)=\mu^{(L)}(v_2) μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) , for all pointed graphs ( G 1 , v 1 ) (G_1,v_1) ( G 1 , v 1 ) and ( G 2 , v 2 ) (G_2,v_2) ( G 2 , v 2 ) .
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 σ = exp \sigma=\exp σ = exp , C i = 1 C_i=1 C i = 1 , A i = 2 A_i=2 A i = 2 , and b i = 0 b_i=0 b i = 0 for every layer i i i , 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 I = ( B 1 , c 1 ) I=(B_1,c_1) I = ( B 1 , c 1 ) , where B 1 = ( 1 , 2 , … , N ) B_1=(1,2,\ldots,N) B 1 = ( 1 , 2 , … , N ) and c 1 = 0 c_1=0 c 1 = 0 . Then λ ( 0 ) ( v ) = σ ( ∑ j = 1 n j λ ( v ) [ j ] ) \lambda^{(0)}(v)=\sigma\left(\sum_{j=1}^{n}j\lambda(v)[j]\right) λ ( 0 ) ( v ) = σ ( ∑ j = 1 n j λ ( v ) [ j ] ) for all graphs G = ( V , E ) G=(V,E) G = ( V , E ) and vertices v ∈ V v\in V v ∈ V .
We now define, for every layer i i i of our GNN N \mathcal{N} N , a set of vectors Z i Z_i Z i that overapproximates the set of embedding vectors that can arise in layer i i i of N \mathcal{N} N , across all graphs. Since the sets Z i Z_i Z i can be infinite and Schanuel’s conjecture applies only to finite sets, we shall also define, for each r ≥ 1 r\geq1 r ≥ 1 , a finite set Z i , r Z_{i,r} Z i , r . The reader should think of the set Z 1 , 2 r + 1 Z_{1,2r+1} Z 1 , 2 r + 1 in the same way as Z i Z_i Z i , but on graphs of out-degree at most r r r . We proceed inductively:
Z ^ 0 , r = { e } Z 0 , r = { e 1 , … , e r } , \widehat{Z}_{0,r}=\{e\}
\qquad
Z_{0,r}=\{e^1,\ldots,e^r\}, Z 0 , r = { e } Z 0 , r = { e 1 , … , e r } ,
Z ^ i + 1 , r = { e z ∣ z ∈ Z i , r } Z i + 1 , r = { z 1 ⋯ z r ∣ z 1 , … , z r ∈ Z ^ i + 1 , r ∪ { 1 } not all 1 } . \widehat{Z}_{i+1,r}=\{e^z\mid z\in Z_{i,r}\}
\qquad
Z_{i+1,r}=\{z_1\cdots z_r\mid z_1,\ldots,z_r\in\widehat{Z}_{i+1,r}\cup\{1\}\text{ not all }1\}. Z i + 1 , r = { e z ∣ z ∈ Z i , r } Z i + 1 , r = { z 1 ⋯ z r ∣ z 1 , … , z r ∈ Z i + 1 , r ∪ { 1 } not all 1 } .
Importantly, z 1 , … , z r z_1,\ldots,z_r z 1 , … , z r do not need to be pairwise distinct. Set Z i = ⋃ r ≥ 1 Z i , r Z_i=\bigcup_{r\geq1}Z_{i,r} Z i = ⋃ r ≥ 1 Z i , r for 0 ≤ i ≤ L 0\leq i\leq L 0 ≤ i ≤ L .
Lemma 7. For all featured graphs G G G , all vertices v ∈ V v\in V v ∈ V and 0 ≤ i ≤ L 0\leq i\leq L 0 ≤ i ≤ L we have λ ( i ) ( v ) ∈ Z i \lambda^{(i)}(v)\in Z_i λ ( i ) ( v ) ∈ Z i .
Proof. We proceed by induction on i i i . The base case is immediate as the image of the initialisation function λ ( 0 ) \lambda^{(0)} λ ( 0 ) is { e 1 , … , e N } ⊆ Z 0 \{e^1,\ldots,e^N\}\subseteq Z_0 { e 1 , … , e N } ⊆ Z 0 . For the inductive step assume that λ ( i ) ( v ) ∈ Z i \lambda^{(i)}(v)\in Z_i λ ( i ) ( v ) ∈ Z i for all v ∈ V v\in V v ∈ V . Then, aggregation and combination in N \mathcal{N} N amount to σ ( z 0 + 2 ( z 1 + ⋯ + z n ) ) \sigma\left(z_0+2(z_1+\cdots+z_n)\right) σ ( z 0 + 2 ( z 1 + ⋯ + z n ) ) with z 0 , … , z n ∈ Z i z_0,\ldots,z_n\in Z_i z 0 , … , z n ∈ Z i . Applying σ \sigma σ yields ( e z 0 ) ⋅ ( e z 1 ) 2 ⋅ … ⋅ ( e z n ) 2 (e^{z_0})\cdot(e^{z_1})^2\cdot\ldots\cdot(e^{z_n})^2 ( e z 0 ) ⋅ ( e z 1 ) 2 ⋅ … ⋅ ( e z n ) 2 , which is in Z i + 1 Z_{i+1} Z i + 1 as e z 0 , … , e z n ∈ Z ^ i + 1 e^{z_0},\ldots,e^{z_n}\in\widehat{Z}_{i+1} e z 0 , … , e z n ∈ Z i + 1 .
:::
All that is left to show at this point is that each finite subset of Z i Z_i Z i is linearly independent over Q \mathbb{Q} Q for all 0 ≤ i ≤ L 0\leq i\leq L 0 ≤ i ≤ L . Indeed, that one need only apply Lemma 4 noting that λ ^ ( 0 ) ( s ) = σ ( ( 1 , … , N ) ⋅ z ) \widehat{\lambda}^{(0)}(s)=\sigma((1,\ldots,N)\cdot z) λ ( 0 ) ( s ) = σ (( 1 , … , N ) ⋅ z ) and λ ^ ( i ) ( s , M ) = σ ( s + ∑ 2 M ) \widehat{\lambda}^{(i)}(s,M)=\sigma(s+\sum2M) λ ( i ) ( s , M ) = σ ( s + ∑ 2 M ) are injective when z z z is one-hot, s ∈ Z i − 1 s\in Z_{i-1} s ∈ Z i − 1 , and M M M is a finite multiset over Z i − 1 Z_{i-1} Z i − 1 (see appendix for details). To prove the required linear independence of finite subsets of Z i Z_i Z i , we first observe that it follows from algebraic independence of finite subsets of Z ^ i = ⋃ r ≥ 1 Z ^ i , r \widehat{Z}_i=\bigcup_{r\geq1}\widehat{Z}_{i,r} Z i = ⋃ r ≥ 1 Z i , r over Q \mathbb{Q} Q . For technical reasons, we establish a stronger result:
Lemma 8. Let 0 ≤ i ≤ L 0\leq i\leq L 0 ≤ i ≤ L . If each finite subset of ⋃ j = 0 i Z ^ j \bigcup_{j=0}^{i}\widehat{Z}_j ⋃ j = 0 i Z j is algebraically independent over Q \mathbb{Q} Q , then each finite subset of ⋃ j = 0 i Z j ∪ { 1 } \bigcup_{j=0}^{i}Z_j\cup\{1\} ⋃ j = 0 i Z j ∪ { 1 } is linearly independent over Q \mathbb{Q} Q .
Proof. Suppose for contradiction that some finite S ⊆ ⋃ j = 0 i Z j ∪ { 1 } S\subseteq\bigcup_{j=0}^{i}Z_j\cup\{1\} S ⊆ ⋃ j = 0 i Z j ∪ { 1 } is linearly dependent over Q \mathbb{Q} Q . Thus, for S ∖ { 1 } = { z 1 , … , z n } S\setminus\{1\}=\{z_1,\ldots,z_n\} S ∖ { 1 } = { z 1 , … , z n } there are c 1 , … , c n , d ∈ Q c_1,\ldots,c_n,d\in\mathbb{Q} c 1 , … , c n , d ∈ Q not all zero such that ∑ j = 1 n c j z j + d = 0 \sum_{j=1}^{n}c_jz_j+d=0 ∑ j = 1 n c j z j + d = 0 . Each value z j z_j z j is a finite product of elements in ⋃ ℓ = 0 i Z ^ ℓ \bigcup_{\ell=0}^{i}\widehat{Z}_{\ell} ⋃ ℓ = 0 i Z ℓ . This follows directly from the definition for z j ∈ Z ℓ z_j\in Z_{\ell} z j ∈ Z ℓ with ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 , while every element e k ∈ Z 0 e^k\in Z_0 e k ∈ Z 0 is the product of k k k copies of the unique element e ∈ Z ^ 0 e\in\widehat{Z}_0 e ∈ Z 0 . We can thus write z j = s 1 b 1 , j ⋯ s m b m , j z_j=s_1^{b_{1,j}}\cdots s_m^{b_{m,j}} z j = s 1 b 1 , j ⋯ s m b m , j , where b 1 , j , … , b m , j ∈ N b_{1,j},\ldots,b_{m,j}\in\mathbb{N} b 1 , j , … , b m , j ∈ N not all zero and s 1 , … , s m ∈ ⋃ j = 0 i Z ^ j s_1,\ldots,s_m\in\bigcup_{j=0}^{i}\widehat{Z}_j s 1 , … , s m ∈ ⋃ j = 0 i Z j . But then, ∑ j = 1 n c j s 1 b 1 , j ⋯ s m b m , j + d = 0 \sum_{j=1}^{n}c_js_1^{b_{1,j}}\cdots s_m^{b_{m,j}}+d=0 ∑ j = 1 n c j s 1 b 1 , j ⋯ s m b m , j + d = 0 . Hence, by algebraic independence of s 1 , … , s m s_1,\ldots,s_m s 1 , … , s m over Q \mathbb{Q} Q , the function ∑ j = 1 n c j x 1 b 1 , j ⋯ x m b m , j + d \sum_{j=1}^{n}c_jx_1^{b_{1,j}}\cdots x_m^{b_{m,j}}+d ∑ j = 1 n c j x 1 b 1 , j ⋯ x m b m , j + d must be the zero polynomial. But since z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n are distinct, each vector of exponents ( b 1 , j , … , b m , j ) (b_{1,j},\ldots,b_{m,j}) ( b 1 , j , … , b m , j ) must also be distinct. In fact, ( b 1 , j , … , b m , j ) ≠ ( 0 , … , 0 ) (b_{1,j},\ldots,b_{m,j})\neq(0,\ldots,0) ( b 1 , j , … , b m , j ) = ( 0 , … , 0 ) . 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 ⋃ j = 0 L Z ^ j \bigcup_{j=0}^{L} \widehat{Z}_j ⋃ j = 0 L Z j are algebraically independent over Q \mathbb{Q} Q .
Proof. Assuming Schanuel’s conjecture, we prove by induction on i i i that, for 0 ≤ i ≤ L 0 \le i \le L 0 ≤ i ≤ L and r ≥ 1 r \ge1 r ≥ 1 ,
⋃ j = 0 i Z ^ j , r \bigcup_{j=0}^{i} \widehat{Z}_{j,r} ⋃ j = 0 i Z j , r is algebraically independent over Q \mathbb{Q} Q and
the sets Z ^ 0 , r , … , Z ^ i , r \widehat{Z}_{0,r}, \ldots, \widehat{Z}_{i,r} Z 0 , r , … , Z i , r are pairwise disjoint; and so are { 1 } , Z 0 , r , … , Z i , r \{1\}, Z_{0,r}, \ldots, Z_{i,r} { 1 } , Z 0 , r , … , Z i , r .
This clearly implies the intended result. For the base case note that ⋃ j = 0 0 Z ^ j = { e } \bigcup_{j=0}^{0} \widehat{Z}_j = \{e\} ⋃ j = 0 0 Z j = { e } . Thus Condition 1 holds trivially as e e e is a transcendental number. Condition 2 follows from the above and the fact that Z 0 , r Z_{0,r} Z 0 , r are positive powers of the transcendental number e e e , thus ensuring 1 ∉ Z 0 , r 1 \notin Z_{0,r} 1 ∈ / Z 0 , r .
Now suppose Conditions 1 and 2 hold for i ≥ 0 i \ge0 i ≥ 0 . We show that the same is true for i + 1 i+1 i + 1 . By Condition 1 of our induction hypothesis, ⋃ j = 0 i Z ^ j , r \bigcup_{j=0}^{i} \widehat{Z}_{j,r} ⋃ j = 0 i Z j , r is algebraically independent over Q \mathbb{Q} Q . Thus by Lemma 8, the set S = ⋃ j = 0 i Z j , r ∪ { 1 } S = \bigcup_{j=0}^{i} Z_{j,r} \cup\{1\} S = ⋃ j = 0 i Z j , r ∪ { 1 } is linearly independent over Q \mathbb{Q} Q . Applying Schanuel’s conjecture to S S S yields F = Q ( S ∪ ⋃ j = 0 i + 1 Z ^ j , r ) F = \mathbb{Q}(S \cup\bigcup_{j=0}^{i+1} \widehat{Z}_{j,r}) F = Q ( S ∪ ⋃ j = 0 i + 1 Z j , r ) such that trdeg Q ( F ) ≥ ∣ S ∣ \operatorname{trdeg}_{\mathbb{Q}}(F) \ge|S| trdeg Q ( F ) ≥ ∣ S ∣ . We next analyse the size of S S S . Notice, first, that ∣ Z j , r ∣ = ∣ Z ^ j + 1 , r ∣ |Z_{j,r}| = |\widehat{Z}_{j+1,r}| ∣ Z j , r ∣ = ∣ Z j + 1 , r ∣ for all j j j . Moreover, by Condition 2 of our induction hypothesis, { 1 } , Z 0 , r , … , Z i , r \{1\}, Z_{0,r}, \ldots, Z_{i,r} { 1 } , Z 0 , r , … , Z i , r are all pairwise disjoint. Thus,
∣ S ∣ = ∣ ⋃ j = 0 i Z j , r ∪ { 1 } ∣ = ∑ j = 0 i ∣ Z j , r ∣ + 1 = ∑ j = 1 i + 1 ∣ Z ^ j , r ∣ + ∣ Z ^ 0 , r ∣ = ∑ j = 0 i + 1 ∣ Z ^ j , r ∣ . |S| = \left|\bigcup_{j=0}^{i} Z_{j,r} \cup\{1\}\right| = \sum_{j=0}^{i} |Z_{j,r}| + 1 = \sum_{j=1}^{i+1} |\widehat{Z}_{j,r}| + |\widehat{Z}_{0,r}| = \sum_{j=0}^{i+1} |\widehat{Z}_{j,r}|. ∣ S ∣ = j = 0 ⋃ i Z j , r ∪ { 1 } = j = 0 ∑ i ∣ Z j , r ∣ + 1 = j = 1 ∑ i + 1 ∣ Z j , r ∣ + ∣ Z 0 , r ∣ = j = 0 ∑ i + 1 ∣ Z j , r ∣. Write E = Q ( ⋃ j = 0 i + 1 Z ^ j , r ) E = \mathbb{Q}\left(\bigcup_{j=0}^{i+1} \widehat{Z}_{j,r}\right) E = Q ( ⋃ j = 0 i + 1 Z j , r ) . Notice that S ⊆ E S \subseteq E S ⊆ E because elements of S S S are monomials over ⋃ j = 0 i Z ^ j , r \bigcup_{j=0}^{i} \widehat{Z}_{j,r} ⋃ j = 0 i Z j , r or 1 1 1 . Hence, E = F E = F E = F and trdeg Q ( E ) ≥ ∣ S ∣ = ∑ j = 0 i + 1 ∣ Z ^ j , r ∣ \operatorname{trdeg}_{\mathbb{Q}}(E) \ge|S| = \sum_{j=0}^{i+1} |\widehat{Z}_{j,r}| trdeg Q ( E ) ≥ ∣ S ∣ = ∑ j = 0 i + 1 ∣ Z j , r ∣ . With Lemma 1, we obtain that ⋃ j = 0 i + 1 Z ^ j , r \bigcup_{j=0}^{i+1} \widehat{Z}_{j,r} ⋃ j = 0 i + 1 Z j , r is algebraically independent over Q \mathbb{Q} Q , thus establishing Condition 1.
The Z ^ 0 , r , … , Z ^ i + 1 , r \widehat{Z}_{0,r}, \ldots, \widehat{Z}_{i+1,r} Z 0 , r , … , Z i + 1 , r part of Condition 2 follows from the facts that the sets { 1 } , Z 0 , r , … , Z i , r \{1\}, Z_{0,r}, \ldots, Z_{i,r} { 1 } , Z 0 , r , … , Z i , r are pairwise disjoint, due to the induction hypothesis, and exponentiation is injective. Now, suppose that Z i + 1 , r ∩ Z j , r ≠ ∅ Z_{i+1,r} \cap Z_{j,r} \ne\varnothing Z i + 1 , r ∩ Z j , r = ∅ for 0 ≤ j ≤ i 0 \le j \le i 0 ≤ j ≤ i , with z z z a common element. Clearly, z z z is then a monomial over Z ^ i + 1 , r \widehat{Z}_{i+1,r} Z i + 1 , r as well as over Z ^ j , r \widehat{Z}_{j,r} Z j , r . But by our argument above, Z ^ i + 1 , r ∩ Z ^ j , r = ∅ \widehat{Z}_{i+1,r} \cap\widehat{Z}_{j,r} = \varnothing Z i + 1 , r ∩ Z j , r = ∅ . Additionally, by Condition 1, already established above for i + 1 i+1 i + 1 , Z ^ i + 1 , r ∪ Z ^ j , r \widehat{Z}_{i+1,r} \cup\widehat{Z}_{j,r} Z i + 1 , r ∪ Z j , r is algebraically independent over Q \mathbb{Q} Q . Hence, no monomial over Z ^ i + 1 , r \widehat{Z}_{i+1,r} Z i + 1 , r equates to a monomial over Z ^ j , r \widehat{Z}_{j,r} Z j , r , a contradiction. Finally, Z i + 1 , r ∩ { 1 } = ∅ Z_{i+1,r} \cap\{1\} = \varnothing Z i + 1 , r ∩ { 1 } = ∅ follows from the fact that 1 1 1 is algebraic whilst the elements of Z i + 1 , r Z_{i+1,r} Z i + 1 , r are not.
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 [9 ] (Gimel et al. 2017). 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 1 1 .
More precisely, a featured graph with virtual nodes is a triple G = ( V , E , λ ) G = (V, E, \lambda) G = ( V , E , λ ) , where λ : V → Q ≥ 0 d 0 ∪ { virtual } \lambda: V \to\mathbb{Q}_{\ge0}^{d_0} \cup\{\text{virtual}\} λ : V → Q ≥ 0 d 0 ∪ { virtual } . Vertices v v v with λ ( v ) = virtual \lambda(v) = \text{virtual} λ ( v ) = virtual are called virtual , all other vertices are ordinary . We extend our definition of GNNs accordingly. An L L L -layer GNN with virtual nodes is a tuple
N = ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , ( A i ′ ) 1 ≤ i ≤ L , ( b i ′ ) 1 ≤ i ≤ L , I ) , \mathcal{N} = (\sigma, (C_i)_{1 \le i \le L}, (A_i)_{1 \le i \le L}, (b_i)_{1 \le i \le L}, (A'_i)_{1 \le i \le L}, (b'_i)_{1 \le i \le L}, I), N = ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , ( A i ′ ) 1 ≤ i ≤ L , ( b i ′ ) 1 ≤ i ≤ L , I ) ,
where σ \sigma σ , C i C_i C i , A i A_i A i , b i b_i b i and I I I are as in the definition of GNNs with dimensions d 0 , … , d L d_0, \ldots, d_L d 0 , … , d L , A i ′ ∈ Q d i × d i − 1 A'_i \in\mathbb{Q}^{d_i \times d_{i-1}} A i ′ ∈ Q d i × d i − 1 and b i ′ ∈ Q d i b'_i \in\mathbb{Q}^{d_i} b i ′ ∈ Q d i for 1 ≤ i ≤ L 1 \le i \le L 1 ≤ i ≤ L . For every node v v v with λ ( v ) = virtual \lambda(v) = \text{virtual} λ ( v ) = virtual , the initial embedding λ ( 0 ) ( v ) \lambda^{(0)}(v) λ ( 0 ) ( v ) is some vector shared by all virtual nodes, whilst λ ( i ) ( v ) = σ ( A i ′ ∑ u ∈ N ( v ) λ ( i − 1 ) ( u ) + b i ′ ) \lambda^{(i)}(v) = \sigma(A'_i \sum_{u \in N(v)} \lambda^{(i-1)}(u) + b'_i) λ ( i ) ( v ) = σ ( A i ′ ∑ u ∈ N ( v ) λ ( i − 1 ) ( u ) + b i ′ ) .
We also consider a 1 1 1 -WL test over graphs with virtual nodes: for vertices u u u with λ ( u ) = virtual \lambda(u) = \text{virtual} λ ( u ) = virtual , we define μ ( i + 1 ) ( u ) = HASH ( virtual , { { μ ( i ) ( v ) ∣ v ∈ N ( u ) } } ) \mu^{(i+1)}(u) = \operatorname{HASH}(\text{virtual}, \{\{\mu^{(i)}(v) \mid v \in N(u)\}\}) μ ( i + 1 ) ( u ) = HASH ( virtual , {{ μ ( i ) ( v ) ∣ v ∈ N ( u )}}) 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 ( G , v ) (G,v) ( G , v ) and ( H , u ) (H,u) ( H , u ) are two featured pointed graphs with virtual nodes. Then, for all L L L -layered GNNs N \mathcal{N} N , μ ( L ) ( v ) = μ ( L ) ( u ) \mu^{(L)}(v)=\mu^{(L)}(u) μ ( L ) ( v ) = μ ( L ) ( u ) implies λ ( L ) ( v ) = λ ( L ) ( u ) \lambda^{(L)}(v)=\lambda^{(L)}(u) λ ( L ) ( v ) = λ ( L ) ( u ) and μ G = μ H \mu_G=\mu_H μ G = μ H implies λ G = λ H \lambda_G=\lambda_H λ G = λ H .
We are now in a position to establish the advertised converse.
Theorem 11. Let N \mathcal{N} N be an L L L -layer GNN that uses σ ∈ { exp , sinh , cosh } \sigma\in\{\exp,\sinh,\cosh\} σ ∈ { exp , sinh , cosh } as activation and produces 1 1 1 -dimensional vertex embeddings in its final layer. Further assume that λ G 1 = λ G 2 \lambda_{G_1}=\lambda_{G_2} λ G 1 = λ G 2 if and only if μ G 1 = μ G 2 \mu_{G_1}=\mu_{G_2} μ G 1 = μ G 2 for all featured graphs with virtual nodes G 1 , G 2 G_1,G_2 G 1 , G 2 . Then for every featured graph G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) the values { exp ( A L ′ λ ( L − 1 ) ( v ) ) ∣ v ∈ V } \{\exp(A'_L\lambda^{(L-1)}(v)) \mid v \in V\} { exp ( A L ′ λ ( L − 1 ) ( v )) ∣ v ∈ V } are algebraically independent over Q \mathbb{Q} Q .
Proof. We only treat σ = exp \sigma=\exp σ = exp here. The cases σ ∈ { sinh , cosh } \sigma\in\{\sinh,\cosh\} σ ∈ { sinh , cosh } are relegated to the appendix. Observe that, for every featured graph with virtual nodes G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) and every u ∈ V u \in V u ∈ V with λ ( u ) = virtual \lambda(u)=\text{virtual} λ ( u ) = virtual , λ ( L ) ( u ) = exp ( A L ′ ∑ v ∈ N ( u ) λ ( L − 1 ) ( v ) + b L ′ ) = exp ( b L ′ ) ∏ v ∈ N ( u ) exp ( A L ′ λ ( L − 1 ) ( v ) ) \lambda^{(L)}(u)=\exp(A'_L\sum_{v\in N(u)}\lambda^{(L-1)}(v)+b'_L)=\exp(b'_L)\prod_{v\in N(u)}\exp(A'_L\lambda^{(L-1)}(v)) λ ( L ) ( u ) = exp ( A L ′ ∑ v ∈ N ( u ) λ ( L − 1 ) ( v ) + b L ′ ) = exp ( b L ′ ) ∏ v ∈ N ( u ) exp ( A L ′ λ ( L − 1 ) ( v )) . Thus, the final embedding of a virtual node is exp ( b L ′ ) \exp(b'_L) exp ( b L ′ ) times a monomial in the values V = { exp ( A L ′ λ ( L − 1 ) ( v ) ) ∣ v ∈ V } \mathcal{V}=\{\exp(A'_L\lambda^{(L-1)}(v))\mid v\in V\} V = { exp ( A L ′ λ ( L − 1 ) ( v )) ∣ v ∈ V } 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 G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) this set is not algebraically independent over Q \mathbb{Q} Q . We construct two graphs G Q G_Q G Q and G R G_R G R that are distinguishable by L L L -round 1-WL but not by N \mathcal{N} N , contradicting our assumption.
Let z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n be an enumeration of V \mathcal{V} V . For 1 ≤ i ≤ n 1\leq i\leq n 1 ≤ i ≤ n choose a vertex v i ∈ V v_i\in V v i ∈ V such that z i = exp ( A L ′ λ ( L − 1 ) ( v i ) ) z_i=\exp(A'_L\lambda^{(L-1)}(v_i)) z i = exp ( A L ′ λ ( L − 1 ) ( v i )) . Since the z i z_i z i are pairwise distinct, so are the embeddings λ ( L − 1 ) ( v i ) \lambda^{(L-1)}(v_i) λ ( L − 1 ) ( v i ) . By Proposition 10, the pointed graphs ( G , v 1 ) , … , ( G , v n ) (G,v_1),\ldots,(G,v_n) ( G , v 1 ) , … , ( G , v n ) are all pairwise distinguishable by the ( L − 1 ) (L-1) ( L − 1 ) -round 1-WL algorithm. Now, since { z 1 , … , z n } \{z_1,\ldots,z_n\} { z 1 , … , z n } is algebraically dependent over Q \mathbb{Q} Q , there is a non-zero polynomial P ( x 1 , … , x n ) P(x_1,\ldots,x_n) P ( x 1 , … , x n ) such that P ( z 1 , … , z n ) = 0 P(z_1,\ldots,z_n)=0 P ( z 1 , … , z n ) = 0 . Multiplying by a common denominator, we may assume that P P P has integer coefficients. Moving all terms with negative coefficients to the right hand side, we obtain a polynomial equality Q ( x 1 , … , x n ) = R ( x 1 , … , x n ) Q(x_1,\ldots,x_n)=R(x_1,\ldots,x_n) Q ( x 1 , … , x n ) = R ( x 1 , … , x n ) where Q Q Q and R R R have disjoint sets of monomials and non-negative integer coefficients. Exchanging Q Q Q and R R R if necessary, we may assume that R R R has no constant term. Multiplying by exp ( b L ′ ) \exp(b'_L) exp ( b L ′ ) and writing out the monomials gives
∑ i = 1 q α i z 1 β i , 1 ⋯ z n β i , n exp ( b L ′ ) + α q + 1 exp ( b L ′ ) = ∑ j = 1 r γ j z 1 δ j , 1 ⋯ z n δ j , n exp ( b L ′ ) , \sum_{i=1}^{q}\alpha_i z_1^{\beta_{i,1}}\cdots z_n^{\beta_{i,n}}\exp(b'_L)+\alpha_{q+1}\exp(b'_L)=\sum_{j=1}^{r}\gamma_j z_1^{\delta_{j,1}}\cdots z_n^{\delta_{j,n}}\exp(b'_L), i = 1 ∑ q α i z 1 β i , 1 ⋯ z n β i , n exp ( b L ′ ) + α q + 1 exp ( b L ′ ) = j = 1 ∑ r γ j z 1 δ j , 1 ⋯ z n δ j , n exp ( b L ′ ) ,
where α i , γ j ∈ N ∖ { 0 } \alpha_i,\gamma_j\in\mathbb{N}\setminus\{0\} α i , γ j ∈ N ∖ { 0 } , with the exception that α q + 1 \alpha_{q+1} α q + 1 may be zero, and the exponent vectors ( β i , 1 , … , β i , n ) (\beta_{i,1},\ldots,\beta_{i,n}) ( β i , 1 , … , β i , n ) and ( δ j , 1 , … , δ j , n ) (\delta_{j,1},\ldots,\delta_{j,n}) ( δ j , 1 , … , δ j , n ) are not all zero entries. The desired graphs G Q G_Q G Q and G R G_R G R realize the two sides of this equality. A monomial z 1 β i , 1 ⋯ z n β i , n z_1^{\beta_{i,1}}\cdots z_n^{\beta_{i,n}} z 1 β i , 1 ⋯ z n β i , n is realized by a virtual node having, for every k k k , β i , k \beta_{i,k} β i , k neighbors in fresh copies of ( G , v k ) (G,v_k) ( G , v k ) . By the initial observation in this proof, its final embedding is exp ( b L ′ ) z 1 β i , 1 ⋯ z n β i , n \exp(b'_L)z_1^{\beta_{i,1}}\cdots z_n^{\beta_{i,n}} exp ( b L ′ ) z 1 β i , 1 ⋯ z n β i , n . An isolated virtual node, in turn, has final embedding exp ( b L ′ ) \exp(b'_L) exp ( b L ′ ) and thus realizes the constant monomial. To ensure that all vertices belonging to the copies of G G G make the same contribution on both sides, we additionally put on each side copies corresponding to the monomials realized on the other side. Formally, G Q G_Q G Q is defined as follows:
for 1 ≤ i ≤ q 1\leq i\leq q 1 ≤ i ≤ q , add α i \alpha_i α i disjoint copies of the graph constructed as follows: (a) for 1 ≤ k ≤ n 1\leq k\leq n 1 ≤ k ≤ n , add β i , k \beta_{i,k} β i , k fresh copies of the pointed graph ( G , v k ) (G,v_k) ( G , v k ) ; (b) create a fresh virtual node u u u and add an edge from u u u to the distinguished vertex in each copy added in the previous step;
add α q + 1 \alpha_{q+1} α q + 1 fresh isolated virtual vertices;
for 1 ≤ j ≤ r 1\leq j\leq r 1 ≤ j ≤ r and 1 ≤ k ≤ n 1\leq k\leq n 1 ≤ k ≤ n , add γ j δ j , k \gamma_j\delta_{j,k} γ j δ j , k disjoint copies of ( G , v k ) (G,v_k) ( G , v k ) .
The graph G R G_R G R is defined symmetrically: interchange q q q and r r r as well as ( α , β ) (\alpha,\beta) ( α , β ) and ( γ , δ ) (\gamma,\delta) ( γ , δ ) , and omit Step 2. Notice that the newly added edges point from virtual nodes into the copies of G G G 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 G Q G_Q G Q and G R G_R G R have the desired properties. □ \square □
Theorem 11 immediately yields the following restriction of Schanuel’s conjecture to GNN outputs.
Corollary 12. Let N \mathcal{N} N be as in Theorem 11. Then, for every featured graph G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) and all distinct x 1 , … , x n ∈ { A ′ ( L − 1 ) ( v ) ∣ v ∈ V } x_1,\ldots,x_n \in\{A'^{(L-1)}(v) \mid v \in V\} x 1 , … , x n ∈ { A ′ ( L − 1 ) ( v ) ∣ v ∈ V } , we have trdeg Q Q ( x 1 , … , x n , e x 1 , … , e x n ) ≥ n \operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}(x_1,\ldots,x_n,e^{x_1},\ldots,e^{x_n}) \ge n trdeg Q Q ( x 1 , … , x n , e x 1 , … , e x n ) ≥ n . Consequently, Schanuel’s conjecture holds when restricted to Q \mathbb{Q} Q -linearly independent tuples arising in this way.
Proof. Let x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n be as in the statement. By Theorem 11, e x 1 , … , e x n e^{x_1},\ldots,e^{x_n} e x 1 , … , e x n are algebraically independent over Q \mathbb{Q} Q . Hence trdeg Q Q ( e x 1 , … , e x n ) = n \operatorname{trdeg}_{\mathbb{Q}}\mathbb{Q}(e^{x_1},\ldots,e^{x_n})=n trdeg Q Q ( e x 1 , … , e x n ) = n . Since Q ( e x 1 , … , e x n ) ⊆ Q ( x 1 , … , x n , e x 1 , … , e x n ) \mathbb{Q}(e^{x_1},\ldots,e^{x_n}) \subseteq\mathbb{Q}(x_1,\ldots,x_n,e^{x_1},\ldots,e^{x_n}) Q ( e x 1 , … , e x n ) ⊆ Q ( x 1 , … , x n , e x 1 , … , e x n ) , the claimed inequality follows, which is exactly the conclusion of Schanuel’s conjecture. □
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 N = 500 N=500 N = 500 Erdős–Rényi graphs with n ∈ [ 20 , 100 ] n\in[20,100] n ∈ [ 20 , 100 ] vertices using edge probability 1 n 2 \frac{1}{n^2} n 2 1 , with one-hot feature vectors from Q 4 \mathbb{Q}^4 Q 4 . On each graph, we run 1-WL. If L L L rounds are needed for stabilization, we construct L L L -layer GNNs ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , I ) (\sigma,(C_i)_{1\le i\le L},(A_i)_{1\le i\le L},(b_i)_{1\le i\le L},I) ( σ , ( C i ) 1 ≤ i ≤ L , ( A i ) 1 ≤ i ≤ L , ( b i ) 1 ≤ i ≤ L , I ) where b 1 = ⋯ = b L = 0 b_1=\cdots=b_L=0 b 1 = ⋯ = b L = 0 and C 1 = ⋯ = C L C_1=\cdots=C_L C 1 = ⋯ = C L as well as A 1 = ⋯ = A L A_1=\cdots=A_L A 1 = ⋯ = A L range over { 0.01 , 0.02 , … , 0.1 } \{0.01,0.02,\ldots,0.1\} { 0.01 , 0.02 , … , 0.1 } , { 0.1 , 0.2 , … , 1 } \{0.1,0.2,\ldots,1\} { 0.1 , 0.2 , … , 1 } and { 1 , 2 , … , 10 } \{1,2,\ldots,10\} { 1 , 2 , … , 10 } . We choose I I I so that the initialisation function is λ ( 0 ) ( x ) = σ ( ( 2 − 1 , 2 − 2 , 2 − 3 , 2 − 4 ) × x ) \lambda^{(0)}(x)=\sigma((2^{-1},2^{-2},2^{-3},2^{-4})\times x) λ ( 0 ) ( x ) = σ (( 2 − 1 , 2 − 2 , 2 − 3 , 2 − 4 ) × x ) . Say that N \mathcal{N} N succeeds on a graph G = ( V , E , λ ) G=(V,E,\lambda) G = ( V , E , λ ) if for all u , v ∈ V u,v\in V u , v ∈ V , μ ( L ) ( v ) = μ ( L ) ( u ) \mu^{(L)}(v)=\mu^{(L)}(u) μ ( L ) ( v ) = μ ( L ) ( u ) if and only if λ ( L ) ( v ) = λ ( L ) ( u ) \lambda^{(L)}(v)=\lambda^{(L)}(u) λ ( L ) ( v ) = λ ( L ) ( u ) . The success ratio of N \mathcal{N} N is the number of graphs that N \mathcal{N} N succeeds on divided by N N N .
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 C A ∈ N C_A \in\mathbb{N} C A ∈ N 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 [11 ] , ReLU GNNs exhibit weaker performance than GNNs with Schanuel-ready activation functions.
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.
Conclusions
We have studied the capability of GNNs with constant depth and rational weights to match the expressive power of 1 1 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 § 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 k k -GNNs and the k k k -WL test, GNNs with global readout in each layer and 1-WL with global aggregation. Such directions are left for future research.
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.
Full proof of Proposition 6
Let us recall the GNNs we are working with. Recall that an activation function σ \sigma σ is Schanuel-ready if there exist polynomials P ( y ) P(y) P ( y ) and Q ( y ) Q(y) Q ( y ) with rational coefficients such that
σ ( x ) = P ( e x ) Q ( e x ) \sigma(x) = \frac{P(e^x)}{Q(e^x)} σ ( x ) = Q ( e x ) P ( e x ) ,
P ( y ) Q ( y ) \frac{P(y)}{Q(y)} Q ( y ) P ( y ) is non-constant, positive and strictly increasing on y > 1 y > 1 y > 1 ,
Q ( y ) ≠ 0 Q(y) \ne0 Q ( y ) = 0 for all y > 0 y > 0 y > 0 .
When σ \sigma σ is clear from context we will often refer to P ( y ) Q ( y ) \frac{P(y)}{Q(y)} Q ( y ) P ( y ) as R ( y ) R(y) R ( y ) .
Now, writing N N N for the dimensionality of initial feature vectors recall that, in our full setting, an L L L -layered GNN N \mathcal{N} N is Schanuel-ready if
each layer uses a common Schanuel-ready activation function σ \sigma σ ,
initialisation takes the form λ ( 0 ) ( v ) = σ ( ( 2 1 , 2 2 , … , 2 N ) × σ ( λ ( v ) + 1 N ) ) \lambda^{(0)}(v) = \sigma((2^1,2^2,\ldots,2^N) \times\sigma(\lambda(v) + \mathbf{1}_N)) λ ( 0 ) ( v ) = σ (( 2 1 , 2 2 , … , 2 N ) × σ ( λ ( v ) + 1 N )) ,
each layer computes λ ( i ) ( v ) = σ ( C i λ ( i − 1 ) ( v ) + A i ∑ u ∈ N ( v ) λ ( i − 1 ) ( u ) + b i ) \lambda^{(i)}(v) = \sigma(C_i\lambda^{(i-1)}(v) + A_i \sum_{u \in N(v)} \lambda^{(i-1)}(u) + b_i) λ ( i ) ( v ) = σ ( C i λ ( i − 1 ) ( v ) + A i ∑ u ∈ N ( v ) λ ( i − 1 ) ( u ) + b i ) , where A i , C i > 0 A_i,C_i > 0 A i , C i > 0 , b i ≥ 0 b_i \ge0 b i ≥ 0 are rational numbers such that C i A i ∉ N \frac{C_i}{A_i} \notin\mathbb{N} A i C i ∈ / N .
We again note that a GNN having A 1 = ⋯ = A L = 2 A_1=\cdots=A_L=2 A 1 = ⋯ = A L = 2 , C 1 = ⋯ = C L = 1 C_1=\cdots=C_L=1 C 1 = ⋯ = C L = 1 and b 1 = ⋯ = b L = 0 b_1=\cdots=b_L=0 b 1 = ⋯ = b L = 0 is a valid choice for our purposes. Notice that each λ ( 0 ) , … , λ ( L ) \lambda^{(0)},\ldots,\lambda^{(L)} λ ( 0 ) , … , λ ( L ) produces 1-dimensional feature vectors, but λ \lambda λ – 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 L L -layered Schanuel-ready GNN N \mathcal{N} N satisfies λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) \lambda^{(L)}(v_1)=\lambda^{(L)}(v_2) λ ( L ) ( v 1 ) = λ ( L ) ( v 2 ) if and only if μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) \mu^{(L)}(v_1)=\mu^{(L)}(v_2) μ ( L ) ( v 1 ) = μ ( L ) ( v 2 ) , for all pointed graphs ( G 1 , v 1 ) (G_1,v_1) ( G 1 , v 1 ) and ( G 2 , v 2 ) (G_2,v_2) ( G 2 , v 2 ) .
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 σ ( x ) = P ( e x ) Q ( e x ) \sigma(x)=\frac{P(e^x)}{Q(e^x)} σ ( x ) = Q ( e x ) P ( e x ) is non-constant, where P , Q P,Q P , Q are polynomials over Q \mathbb{Q} Q with Q ( x ) ≠ 0 Q(x)\ne0 Q ( x ) = 0 for all x > 0 x>0 x > 0 .
In the sequel we will make heavy use of a series of constants κ 1 , κ 2 , … ∈ N \kappa_1,\kappa_2,\ldots\in\mathbb{N} κ 1 , κ 2 , … ∈ N , which are defined as follows. Enumerate positive valued rationals in any way: l 1 , l 2 … l_1,l_2\ldots l 1 , l 2 … and recall that all weights of our GNN A 1 , C 1 , b 1 , … , A L , C L , b L A_1,C_1,b_1,\ldots,A_L,C_L,b_L A 1 , C 1 , b 1 , … , A L , C L , b L are positive (non-negative in the case of b 1 , … , b L b_1,\ldots,b_L b 1 , … , b L ) rationals. For a given k ≥ 1 k \ge1 k ≥ 1 the constant κ k \kappa_k κ k is the least common denominator of l 1 , … , l k l_1,\ldots,l_k l 1 , … , l k as well as A 1 , C 1 , b 1 , … , A L , C L , b L A_1,C_1,b_1,\ldots,A_L,C_L,b_L A 1 , C 1 , b 1 , … , A L , C L , b L . When k k k is clear from context, we simply write κ = κ k \kappa=\kappa_k κ = κ k .
With the above at hand we take any k ≥ 1 k\ge1 k ≥ 1 and r ≥ 1 r\ge1 r ≥ 1 and define the following sets inductively on i < L i<L i < L :
Z ^ − 1 , k , r = { e 1 κ } \widehat{Z}_{-1,k,r}=\{e^{\frac{1}{\kappa}}\} Z − 1 , k , r = { e κ 1 } ,
Z − 1 , k , r = { σ ( l 1 ) , … , σ ( l k ) } = { R ( ( e 1 κ ) l j κ ) ∣ 1 ≤ j ≤ k } Z_{-1,k,r}=\{\sigma(l_1),\ldots,\sigma(l_k)\}=\{R((e^{\frac{1}{\kappa}})^{l_j\kappa})\mid1\le j\le k\} Z − 1 , k , r = { σ ( l 1 ) , … , σ ( l k )} = { R (( e κ 1 ) l j κ ) ∣ 1 ≤ j ≤ k } ,
Z ^ i + 1 , k , r = { e z κ ∣ z ∈ Z i , k , r } \widehat{Z}_{i+1,k,r}=\{e^{\frac{z}{\kappa}}\mid z\in Z_{i,k,r}\} Z i + 1 , k , r = { e κ z ∣ z ∈ Z i , k , r } , and
Z i + 1 , k , r = { R ( z 1 ⋯ z r ) ∣ z 1 , … , z r ∈ Z ^ i + 1 , k , r ∪ { 1 , e 1 κ } not all in { 1 , e 1 κ } } Z_{i+1,k,r}=\{R(z_1\cdots z_r)\mid z_1,\ldots,z_r\in\widehat{Z}_{i+1,k,r}\cup\{1,e^{\frac{1}{\kappa}}\}\text{ not all in }\{1,e^{\frac{1}{\kappa}}\}\} Z i + 1 , k , r = { R ( z 1 ⋯ z r ) ∣ z 1 , … , z r ∈ Z i + 1 , k , r ∪ { 1 , e κ 1 } not all in { 1 , e κ 1 }} .
The definitions of Z ^ − 1 , k , r \widehat{Z}_{-1,k,r} Z − 1 , k , r and Z − 1 , k , r Z_{-1,k,r} Z − 1 , k , r are technical and serve as an intermediary step for computing the initialisation λ ( 0 ) \lambda^{(0)} λ ( 0 ) . To aid intuition, we invite the reader to think of Z 0 , k , r Z_{0,k,r} Z 0 , k , r as a k k k -sized sample of λ ( 0 ) \lambda^{(0)} λ ( 0 ) ’s initial values; it being understood that r r r is “large enough”. The set Z 1 , k , r Z_{1,k,r} Z 1 , k , r is then again a sample of values that N \mathcal{N} N can compute by, in a sense, aggregating and combining values of Z 0 , k , r Z_{0,k,r} Z 0 , k , r . Subsequent sets Z i , k , r Z_{i,k,r} Z i , k , r then behave similarly. The intuition behind κ \kappa κ is that raising e 1 κ e^{\frac{1}{\kappa}} e κ 1 to appropriate powers will ultimately recover (exponentiations of) l 1 , … , l k l_1,\ldots,l_k l 1 , … , l k as well as A 1 , C 1 , b 1 , … , A L , C L , b L A_1,C_1,b_1,\ldots,A_L,C_L,b_L A 1 , C 1 , b 1 , … , A L , C L , b L . We show how this is achieved by writing Z i , k = ⋃ r ≥ 1 Z i , k , r Z_{i,k}=\bigcup_{r\ge1} Z_{i,k,r} Z i , k = ⋃ r ≥ 1 Z i , k , r and:
Claim 13. For all featured graphs G G G , all vertices v ∈ V v \in V v ∈ V and all 0 ≤ i ≤ L 0 \le i \le L 0 ≤ i ≤ L there is some k ′ ≥ 1 k' \ge1 k ′ ≥ 1 such that for all k ≥ k ′ k \ge k' k ≥ k ′ we have λ ( i ) ( v ) ∈ Z i , k \lambda^{(i)}(v) \in Z_{i,k} λ ( i ) ( v ) ∈ Z i , k .
Proof. Take any graph G G G and any vertex v ∈ V v \in V v ∈ V . Recall that λ ( v ) \lambda(v) λ ( v ) is a vector of non-negative rationals, say, m 1 , … , m N m_1,\ldots,m_N m 1 , … , m N , it being understood that N = ∣ λ ( v ) ∣ N = \lvert\lambda(v)\rvert N = ∣ λ ( v )∣ . Since each entry is non-negative, we may find l k 1 , … , l k N l_{k_1},\ldots,l_{k_N} l k 1 , … , l k N in our enumeration of the positive rational numbers, such that l k t = m t + 1 l_{k_t}=m_t+1 l k t = m t + 1 . Now, let k v ′ = max ( k 1 , … , k N ) k'_v=\max(k_1,\ldots,k_N) k v ′ = max ( k 1 , … , k N ) . Clearly, σ ( l k t ) ∈ Z − 1 , k v ′ \sigma(l_{k_t})\in Z_{-1,k'_v} σ ( l k t ) ∈ Z − 1 , k v ′ , thus resulting in σ ( m t + 1 ) ∈ Z − 1 , k v ′ \sigma(m_t+1)\in Z_{-1,k'_v} σ ( m t + 1 ) ∈ Z − 1 , k v ′ for all 1 ≤ t ≤ N 1\le t\le N 1 ≤ t ≤ N . Now, taking k ′ = max { k v ′ ∣ v ∈ V } k'=\max\{k'_v\mid v\in V\} k ′ = max { k v ′ ∣ v ∈ V } we have, for each k ≥ k ′ k\ge k' k ≥ k ′ , that every entry m m m in any feature vector of vertices in G G G satisfies σ ( m + 1 ) ∈ Z − 1 , k \sigma(m+1)\in Z_{-1,k} σ ( m + 1 ) ∈ Z − 1 , k .
Taking any k k k as above and writing κ = κ k \kappa=\kappa_k κ = κ k we proceed by induction on 0 ≤ i < L 0\le i<L 0 ≤ i < L . For the base case take any v v v and let m 1 , … , m N m_1,\ldots,m_N m 1 , … , m N be the entries of λ ( v ) \lambda(v) λ ( v ) in order. As argued above, σ ( m 1 + 1 ) , … , σ ( m N + 1 ) ∈ Z − 1 , k \sigma(m_1+1),\ldots,\sigma(m_N+1)\in Z_{-1,k} σ ( m 1 + 1 ) , … , σ ( m N + 1 ) ∈ Z − 1 , k and thus e σ ( m 1 + 1 ) κ , … , e σ ( m N + 1 ) κ ∈ Z ˉ 0 , k e^{\frac{\sigma(m_1+1)}{\kappa}},\ldots,e^{\frac{\sigma(m_N+1)}{\kappa}}\in\bar{Z}_{0,k} e κ σ ( m 1 + 1 ) , … , e κ σ ( m N + 1 ) ∈ Z ˉ 0 , k . But then, again by definition,
R ( ∏ j = 1 N e 2 j κ ⋅ σ ( m j + 1 ) κ ) = σ ( ( 2 1 , 2 2 , … , 2 N ) × σ ( λ ( v ) + 1 N ) ) = λ ( 0 ) ( v ) R\left(\prod_{j=1}^{N}e^{2^j\kappa\cdot\frac{\sigma(m_j+1)}{\kappa}}\right)=\sigma\left((2^1,2^2,\ldots,2^N)\times\sigma(\lambda(v)+1_N)\right)=\lambda^{(0)}(v) R ( j = 1 ∏ N e 2 j κ ⋅ κ σ ( m j + 1 ) ) = σ ( ( 2 1 , 2 2 , … , 2 N ) × σ ( λ ( v ) + 1 N ) ) = λ ( 0 ) ( v ) is in Z 0 , k , r Z_{0,k,r} Z 0 , k , r for r r r large enough, and thus also in Z 0 , k Z_{0,k} Z 0 , k .
For the inductive step assume that λ ( i ) ( v ) ∈ Z i , k \lambda^{(i)}(v)\in Z_{i,k} λ ( i ) ( v ) ∈ Z i , k for all v ∈ V v\in V v ∈ V . Then, aggregation and combination in N \mathcal{N} N amount to σ ( C i + 1 z 0 + A i + 1 ( z 1 + ⋯ + z n ) + b i + 1 ) \sigma(C_{i+1}z_0+A_{i+1}(z_1+\cdots+z_n)+b_{i+1}) σ ( C i + 1 z 0 + A i + 1 ( z 1 + ⋯ + z n ) + b i + 1 ) , where z 0 , … , z n ∈ Z i , k z_0,\ldots,z_n\in Z_{i,k} z 0 , … , z n ∈ Z i , k . By the definition of σ \sigma σ we have that the above is R ( e C i + 1 z 0 ⋅ ∏ j = 1 n e A i + 1 z j ⋅ e b i + 1 ) R(e^{C_{i+1}z_0}\cdot\prod_{j=1}^{n}e^{A_{i+1}z_j}\cdot e^{b_{i+1}}) R ( e C i + 1 z 0 ⋅ ∏ j = 1 n e A i + 1 z j ⋅ e b i + 1 ) . Noting that C i + 1 = C i + 1 ′ κ C_{i+1}=\frac{C'_{i+1}}{\kappa} C i + 1 = κ C i + 1 ′ , A i + 1 = A i + 1 ′ κ A_{i+1}=\frac{A'_{i+1}}{\kappa} A i + 1 = κ A i + 1 ′ , and b i + 1 = b i + 1 ′ κ b_{i+1}=\frac{b'_{i+1}}{\kappa} b i + 1 = κ b i + 1 ′ , for some C i + 1 ′ , A i + 1 ′ , b i + 1 ′ ∈ N C'_{i+1},A'_{i+1},b'_{i+1}\in\mathbb{N} C i + 1 ′ , A i + 1 ′ , b i + 1 ′ ∈ N we have that e C i + 1 z 0 = ( e z 0 κ ) C i + 1 ′ e^{C_{i+1}z_0}=(e^{\frac{z_0}{\kappa}})^{C'_{i+1}} e C i + 1 z 0 = ( e κ z 0 ) C i + 1 ′ , with e z 0 κ e^{\frac{z_0}{\kappa}} e κ z 0 being a member of Z ˉ i + 1 , k \bar{Z}_{i+1,k} Z ˉ i + 1 , k . Similar observations hold for e A i + 1 z j e^{A_{i+1}z_j} e A i + 1 z j with 1 ≤ j ≤ n 1\le j\le n 1 ≤ j ≤ n . Lastly, recalling that multiples of e z κ e^{\frac{z}{\kappa}} e κ z are allowed to appear when forming Z i + 1 , k Z_{i+1,k} Z i + 1 , k , we have e b i + 1 = ( e 1 κ ) b i + 1 ′ e^{b_{i+1}}=(e^{\frac{1}{\kappa}})^{b'_{i+1}} e b i + 1 = ( e κ 1 ) b i + 1 ′ . Then, clearly, R ( e C i + 1 z 0 ⋅ ∏ j = 1 n ( e A i + 1 z j ⋅ e b i + 1 ) ) = R ( ( e z 0 κ ) C i + 1 ′ ⋅ ∏ j = 1 n ( ( e z j κ ) A i + 1 ′ ⋅ ( e 1 κ ) b i + 1 ′ ) ) R(e^{C_{i+1}z_0}\cdot\prod_{j=1}^{n}(e^{A_{i+1}z_j}\cdot e^{b_{i+1}}))=R((e^{\frac{z_0}{\kappa}})^{C'_{i+1}}\cdot\prod_{j=1}^{n}((e^{\frac{z_j}{\kappa}})^{A'_{i+1}}\cdot(e^{\frac{1}{\kappa}})^{b'_{i+1}})) R ( e C i + 1 z 0 ⋅ ∏ j = 1 n ( e A i + 1 z j ⋅ e b i + 1 )) = R (( e κ z 0 ) C i + 1 ′ ⋅ ∏ j = 1 n (( e κ z j ) A i + 1 ′ ⋅ ( e κ 1 ) b i + 1 ′ )) , which is then in Z i + 1 , k , r Z_{i+1,k,r} Z i + 1 , k , r for large enough r r r , and thus also in Z i + 1 , k Z_{i+1,k} Z i + 1 , k .
Our strategy again consists of establishing linear independence of Z i , k Z_{i,k} Z i , k for all 0 ≤ i ≤ L 0\le i\le L 0 ≤ i ≤ L and k ≥ 1 k\ge1 k ≥ 1 in order to conclude that N \mathcal{N} N matches the L L L -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 t ∈ Q t\in\mathbb{Q} t ∈ Q and non-zero r ∈ Z r\in\mathbb{Z} r ∈ Z such that α = lim x → 0 + R ( x ) − t x r \alpha=\lim_{x\to0^+}\frac{R(x)-t}{x^r} α = lim x → 0 + x r R ( x ) − t is non-zero.
Proof. Since P ( x ) P(x) P ( x ) and Q ( x ) Q(x) Q ( x ) are non-zero polynomials we may find p , q ∈ N p,q\in\mathbb{N} p , q ∈ N such that P ( x ) = x p P 0 ( x ) P(x)=x^pP_0(x) P ( x ) = x p P 0 ( x ) and Q ( x ) = x q Q 0 ( x ) Q(x)=x^qQ_0(x) Q ( x ) = x q Q 0 ( x ) for non-zero polynomials P 0 ( x ) , Q 0 ( x ) P_0(x),Q_0(x) P 0 ( x ) , Q 0 ( x ) both having a non-zero constant term (and thus P 0 ( 0 ) ≠ 0 ≠ Q 0 ( 0 ) P_0(0)\ne0\ne Q_0(0) P 0 ( 0 ) = 0 = Q 0 ( 0 ) ). Suppose first that p ≠ q p\ne q p = q . Then, by taking t = 0 t=0 t = 0 and r = p − q r=p-q r = p − q we have
α = lim x → 0 + P ( x ) Q ( x ) − t x r = lim x → 0 + x p − q P 0 ( x ) Q 0 ( x ) x p − q = lim x → 0 + P 0 ( x ) Q 0 ( x ) ≠ 0. \alpha=\lim_{x\to0^+}\frac{\frac{P(x)}{Q(x)}-t}{x^r}
=\lim_{x\to0^+}\frac{x^{p-q}\frac{P_0(x)}{Q_0(x)}}{x^{p-q}}
=\lim_{x\to0^+}\frac{P_0(x)}{Q_0(x)}\ne0. α = x → 0 + lim x r Q ( x ) P ( x ) − t = x → 0 + lim x p − q x p − q Q 0 ( x ) P 0 ( x ) = x → 0 + lim Q 0 ( x ) P 0 ( x ) = 0. Now suppose that p = q p=q p = q . Then, taking P 0 P_0 P 0 and Q 0 Q_0 Q 0 as above we again have that P 0 ( 0 ) Q 0 ( 0 ) ≠ 0 \frac{P_0(0)}{Q_0(0)}\ne0 Q 0 ( 0 ) P 0 ( 0 ) = 0 . Now, let us take a look at S ( x ) = P 0 ( x ) Q 0 ( 0 ) − P 0 ( 0 ) Q 0 ( x ) S(x)=P_0(x)Q_0(0)-P_0(0)Q_0(x) S ( x ) = P 0 ( x ) Q 0 ( 0 ) − P 0 ( 0 ) Q 0 ( x ) . Notice that S ( x ) S(x) S ( x ) is not the zero polynomial as we would then have P 0 ( x ) Q 0 ( x ) = P 0 ( 0 ) Q 0 ( 0 ) \frac{P_0(x)}{Q_0(x)}=\frac{P_0(0)}{Q_0(0)} Q 0 ( x ) P 0 ( x ) = Q 0 ( 0 ) P 0 ( 0 ) for all x > 0 x>0 x > 0 . Inspecting S ( x ) S(x) S ( x ) we see that the constant terms of polynomials P 0 ( x ) Q 0 ( 0 ) P_0(x)Q_0(0) P 0 ( x ) Q 0 ( 0 ) and P 0 ( 0 ) Q 0 ( x ) P_0(0)Q_0(x) P 0 ( 0 ) Q 0 ( x ) cancel each other out. Thus we may assume that S ( x ) S(x) S ( x ) takes the normal form a 0 + a 1 x + ⋯ + a n x n a_0+a_1x+\cdots+a_nx^n a 0 + a 1 x + ⋯ + a n x n with a 0 = 0 a_0=0 a 0 = 0 . Now, let r r r be the smallest index such that a r ≠ 0 a_r\ne0 a r = 0 . Clearly, r ≥ 1 r\ge1 r ≥ 1 and the smallest power of x x x present in S ( x ) S(x) S ( x ) . Thus, S ( x ) = x r S 0 ( x ) S(x)=x^rS_0(x) S ( x ) = x r S 0 ( x ) , where S 0 ( x ) S_0(x) S 0 ( x ) is some non-zero polynomial. Note that S 0 ( 0 ) ≠ 0 S_0(0)\ne0 S 0 ( 0 ) = 0 as that would contradict a r ≠ 0 a_r\ne0 a r = 0 . We now observe the following by setting t = P 0 ( 0 ) Q 0 ( 0 ) t=\frac{P_0(0)}{Q_0(0)} t = Q 0 ( 0 ) P 0 ( 0 ) :
α = lim x → 0 + P ( x ) Q ( x ) − t x r = lim x → 0 + x p P 0 ( x ) x q Q 0 ( x ) − P 0 ( 0 ) Q 0 ( 0 ) x r = lim x → 0 + P 0 ( x ) Q 0 ( 0 ) − P 0 ( 0 ) Q 0 ( x ) Q 0 ( x ) Q 0 ( 0 ) x r = lim x → 0 + x r S 0 ( x ) Q 0 ( x ) Q 0 ( 0 ) x r = lim x → 0 + S 0 ( x ) Q 0 ( x ) Q 0 ( 0 ) = S 0 ( 0 ) Q 0 ( 0 ) Q 0 ( 0 ) ≠ 0 \begin{aligned}
\alpha&=\lim_{x\to0^+}\frac{\frac{P(x)}{Q(x)}-t}{x^r}
=\lim_{x\to0^+}\frac{\frac{x^pP_0(x)}{x^qQ_0(x)}-\frac{P_0(0)}{Q_0(0)}}{x^r}
=\lim_{x\to0^+}\frac{P_0(x)Q_0(0)-P_0(0)Q_0(x)}{Q_0(x)Q_0(0)x^r}\\
&=\lim_{x\to0^+}\frac{x^rS_0(x)}{Q_0(x)Q_0(0)x^r}
=\lim_{x\to0^+}\frac{S_0(x)}{Q_0(x)Q_0(0)}
=\frac{S_0(0)}{Q_0(0)Q_0(0)}\ne0
\end{aligned} α = x → 0 + lim x r Q ( x ) P ( x ) − t = x → 0 + lim x r x q Q 0 ( x ) x p P 0 ( x ) − Q 0 ( 0 ) P 0 ( 0 ) = x → 0 + lim Q 0 ( x ) Q 0 ( 0 ) x r P 0 ( x ) Q 0 ( 0 ) − P 0 ( 0 ) Q 0 ( x ) = x → 0 + lim Q 0 ( x ) Q 0 ( 0 ) x r x r S 0 ( x ) = x → 0 + lim Q 0 ( x ) Q 0 ( 0 ) S 0 ( x ) = Q 0 ( 0 ) Q 0 ( 0 ) S 0 ( 0 ) = 0 Thus concluding the current case and proof.
A series of functions f 1 ( x ) , … , f n ( x ) f_1(x),\ldots,f_n(x) f 1 ( x ) , … , f n ( x ) is said to be linearly dependent over Q \mathbb{Q} Q if there are some c 1 , … , c n ∈ Q c_1,\ldots,c_n\in\mathbb{Q} c 1 , … , c n ∈ Q not all zero such that c 1 f 1 ( x ) + ⋯ + c n f n ( x ) = 0 c_1f_1(x)+\cdots+c_nf_n(x)=0 c 1 f 1 ( x ) + ⋯ + c n f n ( x ) = 0 for all x x x over the common domain of f 1 ( x ) , … , f n ( x ) f_1(x),\ldots,f_n(x) f 1 ( x ) , … , f n ( x ) . If no such c 1 , … , c n c_1,\ldots,c_n c 1 , … , c n exist, then the functions are linearly independent.
Claim 15. Let B 1 , … , B n ∈ N B_1,\ldots,B_n \in\mathbb{N} B 1 , … , B n ∈ N be distinct and positive. Then, the functions 1 , R ( x B 1 ) , … , R ( x B n ) 1,R(x^{B_1}),\ldots,R(x^{B_n}) 1 , R ( x B 1 ) , … , R ( x B n ) are linearly independent over Q \mathbb{Q} Q .
Proof. Suppose for contradiction that 1 , P ( x B 1 ) Q ( x B 1 ) , … , P ( x B n ) Q ( x B n ) 1,\frac{P(x^{B_1})}{Q(x^{B_1})},\ldots,\frac{P(x^{B_n})}{Q(x^{B_n})} 1 , Q ( x B 1 ) P ( x B 1 ) , … , Q ( x B n ) P ( x B n ) are linearly dependent over Q \mathbb{Q} Q . One may then find c 1 , … , c n , d ∈ Q c_1,\ldots,c_n,d \in\mathbb{Q} c 1 , … , c n , d ∈ Q not all zero such that, for all positive x ∈ Q x \in\mathbb{Q} x ∈ Q ,
∑ j = 1 n c j ⋅ P ( x B j ) Q ( x B j ) + d = 0. \sum_{j=1}^{n} c_j \cdot\frac{P(x^{B_j})}{Q(x^{B_j})}+d=0. j = 1 ∑ n c j ⋅ Q ( x B j ) P ( x B j ) + d = 0.
Now, fix t , r , α t,r,\alpha t , r , α as the values promised by Claim 14 and write T ( x ) = R ( x ) − t x r T(x)=\frac{R(x)-t}{x^r} T ( x ) = x r R ( x ) − t . For all 1 ≤ j ≤ n 1\leq j\leq n 1 ≤ j ≤ n we then have that R ( x B j ) = x r B j T ( x B j ) + t R(x^{B_j})=x^{rB_j}T(x^{B_j})+t R ( x B j ) = x r B j T ( x B j ) + t . Thus, the linear dependence identity can be written as:
∑ j = 1 n c j ( x r B j T ( x B j ) + t ) + d = ∑ j = 1 n c j x r B j T ( x B j ) + D = 0 , \sum_{j=1}^{n}c_j\left(x^{rB_j}T(x^{B_j})+t\right)+d=\sum_{j=1}^{n}c_jx^{rB_j}T(x^{B_j})+D=0, j = 1 ∑ n c j ( x r B j T ( x B j ) + t ) + d = j = 1 ∑ n c j x r B j T ( x B j ) + D = 0 ,
where D = d + t ∑ j = 1 n c j D=d+t\sum_{j=1}^{n}c_j D = d + t ∑ j = 1 n c j .
Discarding terms with c j = 0 c_j=0 c j = 0 suppose, first, that D = 0 D=0 D = 0 . Now, let j j j be such that r B j = min { r B ℓ ∣ 1 ≤ ℓ ≤ n , c ℓ ≠ 0 } rB_j=\min\{rB_\ell\mid1\leq\ell\leq n,c_\ell\neq0\} r B j = min { r B ℓ ∣ 1 ≤ ℓ ≤ n , c ℓ = 0 } . Without loss of generality, we assume that j = 1 j=1 j = 1 . Dividing the above by x r B j x^{rB_j} x r B j and taking the limit of the left-hand side we obtain the following:
lim x → 0 + c 1 T ( x B 1 ) + ∑ j = 2 n c j x r B j − r B 1 T ( x B j ) = c 1 α + ∑ j = 2 n c j ⋅ 0 ⋅ α = c 1 α , \lim_{x\to0^+}c_1T(x^{B_1})+\sum_{j=2}^{n}c_jx^{rB_j-rB_1}T(x^{B_j})=c_1\alpha+\sum_{j=2}^{n}c_j\cdot0\cdot\alpha=c_1\alpha, x → 0 + lim c 1 T ( x B 1 ) + j = 2 ∑ n c j x r B j − r B 1 T ( x B j ) = c 1 α + j = 2 ∑ n c j ⋅ 0 ⋅ α = c 1 α ,
as for all j ≥ 2 j\geq2 j ≥ 2 , we have that r B j − r B 1 > 0 rB_j-rB_1>0 r B j − r B 1 > 0 . Notice that since the original expression is zero, we have that the limit above is also zero. But neither c 1 = 0 c_1=0 c 1 = 0 , nor α = 0 \alpha=0 α = 0 thus resulting in a contradiction.
Now, suppose that D ≠ 0 D\neq0 D = 0 . But then, if all r B ℓ rB_\ell r B ℓ with c ℓ ≠ 0 c_\ell\neq0 c ℓ = 0 are positive we have
lim x → 0 + ∑ j = 1 n c j x r B j T ( x B j ) + D = ∑ j = 1 n c j ⋅ 0 ⋅ α + D = D . \lim_{x\to0^+}\sum_{j=1}^{n}c_jx^{rB_j}T(x^{B_j})+D=\sum_{j=1}^{n}c_j\cdot0\cdot\alpha+D=D. x → 0 + lim j = 1 ∑ n c j x r B j T ( x B j ) + D = j = 1 ∑ n c j ⋅ 0 ⋅ α + D = D .
But D ≠ 0 D\neq0 D = 0 thus resulting in a contradiction. Otherwise, if some r B ℓ rB_\ell r B ℓ with c ℓ ≠ 0 c_\ell\neq0 c ℓ = 0 is negative, again take r B j = min { r B ℓ ∣ 1 ≤ ℓ ≤ n , c ℓ ≠ 0 } rB_j=\min\{rB_\ell\mid1\leq\ell\leq n,c_\ell\neq0\} r B j = min { r B ℓ ∣ 1 ≤ ℓ ≤ n , c ℓ = 0 } . Assuming w.l.o.g. that j = 1 j=1 j = 1 we again have that
lim x → 0 + c 1 T ( x B 1 ) + ∑ j = 2 n c j x r B j − r B 1 T ( x B j ) + x − r B 1 D = c 1 α + ∑ j = 2 n c j ⋅ 0 ⋅ α + 0 D = c 1 α . \lim_{x\to0^+}c_1T(x^{B_1})+\sum_{j=2}^{n}c_jx^{rB_j-rB_1}T(x^{B_j})+x^{-rB_1}D=c_1\alpha+\sum_{j=2}^{n}c_j\cdot0\cdot\alpha+0D=c_1\alpha. x → 0 + lim c 1 T ( x B 1 ) + j = 2 ∑ n c j x r B j − r B 1 T ( x B j ) + x − r B 1 D = c 1 α + j = 2 ∑ n c j ⋅ 0 ⋅ α + 0 D = c 1 α .
But again c 1 ≠ 0 c_1\neq0 c 1 = 0 and α ≠ 0 \alpha\neq0 α = 0 thus contradicting our initial assumption and concluding the proof. □ \square □
Finally, writing Z ^ i , k = ⋃ r ≥ 1 Z ^ i , k , r \widehat{Z}_{i,k}=\bigcup_{r\geq1}\widehat{Z}_{i,k,r} Z i , k = ⋃ r ≥ 1 Z i , k , r we show:
Claim 16. Suppose that each finite subset of ⋃ j = − 1 i Z ^ j , k \bigcup_{j=-1}^{i}\widehat{Z}_{j,k} ⋃ j = − 1 i Z j , k is algebraically independent over Q \mathbb{Q} Q . Then each finite subset of { 1 } ∪ ⋃ j = − 1 i Z j , k \{1\}\cup\bigcup_{j=-1}^{i}Z_{j,k} { 1 } ∪ ⋃ j = − 1 i Z j , k is linearly independent over Q \mathbb{Q} Q .
Proof. Suppose for contradiction that { 1 } ∪ ⋃ j = − 1 i Z j , k \{1\}\cup\bigcup_{j=-1}^{i}Z_{j,k} { 1 } ∪ ⋃ j = − 1 i Z j , k is not linearly independent over Q \mathbb{Q} Q . Then, there are some elements z 1 , … , z m ∈ ⋃ j = − 1 i Z j , k z_1,\ldots,z_m\in\bigcup_{j=-1}^{i}Z_{j,k} z 1 , … , z m ∈ ⋃ j = − 1 i Z j , k and c 1 , … , c m , d ∈ Q c_1,\ldots,c_m,d\in\mathbb{Q} c 1 , … , c m , d ∈ Q not all zero such that ∑ j = 1 m c j z j + d = 0 \sum_{j=1}^{m}c_jz_j+d=0 ∑ j = 1 m c j z j + d = 0 . Recall that z j = R ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) z_j=R(s_1^{a_{j,1}}\cdot\ldots\cdot s_n^{a_{j,n}}) z j = R ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) with a j , 1 , … , a j , n ∈ N a_{j,1},\ldots,a_{j,n}\in\mathbb{N} a j , 1 , … , a j , n ∈ N not all zero and s 1 , … , s n ∈ ⋃ j = − 1 i Z ^ j , k s_1,\ldots,s_n\in\bigcup_{j=-1}^{i}\widehat{Z}_{j,k} s 1 , … , s n ∈ ⋃ j = − 1 i Z j , k . We can rewrite the relation above as
∑ j = 1 m c j ⋅ P ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) Q ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) + d = 0. \sum_{j=1}^{m}c_j\cdot\frac{P(s_1^{a_{j,1}}\cdot\ldots\cdot s_n^{a_{j,n}})}{Q(s_1^{a_{j,1}}\cdot\ldots\cdot s_n^{a_{j,n}})}+d=0. j = 1 ∑ m c j ⋅ Q ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) P ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) + d = 0.
Since Q Q Q is non zero on values above 0 0 0 we multiply by the denominators and obtain:
∑ j = 1 m c j ⋅ P ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) ⋅ ∏ ℓ = 1 , ℓ ≠ j m Q ( s 1 a ℓ , 1 ⋅ … ⋅ s n a ℓ , n ) + d ∏ j = 1 m Q ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) = 0. \sum_{j=1}^{m}c_j\cdot P(s_1^{a_{j,1}}\cdot\ldots\cdot s_n^{a_{j,n}})\cdot\prod_{\ell=1,\ell\neq j}^{m}Q(s_1^{a_{\ell,1}}\cdot\ldots\cdot s_n^{a_{\ell,n}})+d\prod_{j=1}^{m}Q(s_1^{a_{j,1}}\cdot\ldots\cdot s_n^{a_{j,n}})=0. j = 1 ∑ m c j ⋅ P ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) ⋅ ℓ = 1 , ℓ = j ∏ m Q ( s 1 a ℓ , 1 ⋅ … ⋅ s n a ℓ , n ) + d j = 1 ∏ m Q ( s 1 a j , 1 ⋅ … ⋅ s n a j , n ) = 0.
Clearly, when symbols s 1 , … , s n s_1,\ldots,s_n s 1 , … , s n are replaced by variables, the expression above is a polynomial. Assuming it is non-zero, we have that ⋃ j = − 1 i Z ^ j , k \bigcup_{j=-1}^{i}\widehat{Z}_{j,k} ⋃ j = − 1 i Z j , k is not algebraically independent over Q \mathbb{Q} Q 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:
∑ j = 1 m c j P ( y 1 a j , 1 ⋯ y n a j , n ) Q ( y 1 a j , 1 ⋯ y n a j , n ) + d . \sum_{j=1}^{m} c_j \frac{P(y_1^{a_{j,1}}\cdots y_n^{a_{j,n}})}{Q(y_1^{a_{j,1}}\cdots y_n^{a_{j,n}})}+d. j = 1 ∑ m c j Q ( y 1 a j , 1 ⋯ y n a j , n ) P ( y 1 a j , 1 ⋯ y n a j , n ) + d .
Concentrating on the above let β = max { a j , ℓ ∣ 1 ≤ j ≤ m , 1 ≤ ℓ ≤ n } + 1 \beta=\max\{a_{j,\ell}\mid1\leq j\leq m,1\leq\ell\leq n\}+1 β = max { a j , ℓ ∣ 1 ≤ j ≤ m , 1 ≤ ℓ ≤ n } + 1 and substitute each y ℓ y_\ell y ℓ with x β ℓ x^{\beta^\ell} x β ℓ . Now, write B ℓ = β 1 a ℓ , 1 + ⋯ + β n a ℓ , n B_\ell=\beta^1a_{\ell,1}+\cdots+\beta^na_{\ell,n} B ℓ = β 1 a ℓ , 1 + ⋯ + β n a ℓ , n . Here B ℓ B_\ell B ℓ is the β \beta β -ary encoding of the tuple ( a ℓ , 1 , … , a ℓ , n ) (a_{\ell,1},\ldots,a_{\ell,n}) ( a ℓ , 1 , … , a ℓ , n ) . Notice that each tuple is distinct as z ∈ Z j , k z\in Z_{j,k} z ∈ Z j , k is formed by applying R R R to a non empty product of (possibly repeated) elements in Z ^ j , k \widehat{Z}_{j,k} Z j , k multiplied by some (possibly empty) product of (possibly repeated) elements in { e κ k } = Z ^ − 1 , k \{e^{\frac{\kappa}{k}}\}=\widehat{Z}_{-1,k} { e k κ } = Z − 1 , k . Since each tuple is distinct, we have that all B ℓ B_\ell B ℓ are as well. What is obtained is the following expression in a single variable:
∑ j = 1 m c j P ( x B j ) Q ( x B j ) + d . \sum_{j=1}^{m} c_j \frac{P(x^{B_j})}{Q(x^{B_j})}+d. j = 1 ∑ m c j Q ( x B j ) P ( x B j ) + d .
But then, by Claim 15, the functions 1 , P ( x B 1 ) Q ( x B 1 ) , … , P ( x B m ) Q ( x B m ) 1,\frac{P(x^{B_1})}{Q(x^{B_1})},\ldots,\frac{P(x^{B_m})}{Q(x^{B_m})} 1 , Q ( x B 1 ) P ( x B 1 ) , … , Q ( x B m ) P ( x B m ) are linearly independent. Thus, there is some value in Q \mathbb{Q} 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) Z ^ i , k \widehat{Z}_{i,k} Z i , k over Q \mathbb{Q} Q . This is again achieved by Schanuel’s conjecture.
Lemma 17. Under Schanuel’s conjecture, finite subsets of ⋃ j = − 1 L Z ^ j , k \bigcup_{j=-1}^{L}\widehat{Z}_{j,k} ⋃ j = − 1 L Z j , k are algebraically independent over Q \mathbb{Q} 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 Z ^ i , k , r \widehat{Z}_{i,k,r} Z i , k , r and proceed by induction on − 1 ≤ i ≤ L -1\leq i\leq L − 1 ≤ i ≤ L maintaining
⋃ j = − 1 i Z ^ j , k , r \bigcup_{j=-1}^{i}\widehat{Z}_{j,k,r} ⋃ j = − 1 i Z j , k , r is algebraically independent over Q \mathbb{Q} Q ,
the sets Z ^ − 1 , k , r , … , Z ^ i , k , r \widehat{Z}_{-1,k,r},\ldots,\widehat{Z}_{i,k,r} Z − 1 , k , r , … , Z i , k , r are pairwise disjoint; and so are { 1 } , Z − 1 , k , r , … , Z i , k , r \{1\},Z_{-1,k,r},\ldots,Z_{i,k,r} { 1 } , Z − 1 , k , r , … , Z i , k , r ,
each entry of Z − 1 , k , r , … , Z i , k , r Z_{-1,k,r},\ldots,Z_{i,k,r} Z − 1 , k , r , … , Z i , k , r is positive.
Again the required result will be achieved by proving the above for each r ≥ 1 r\geq1 r ≥ 1 , as Z ^ i , k \widehat{Z}_{i,k} Z i , k is the union of Z ^ i , k , r \widehat{Z}_{i,k,r} Z i , k , r for all r ≥ 1 r\geq1 r ≥ 1 and Z ^ i , k , r ⊆ Z ^ i , k , r + 1 \widehat{Z}_{i,k,r}\subseteq\widehat{Z}_{i,k,r+1} Z i , k , r ⊆ Z i , k , r + 1 .
For the base case note that ⋃ j = − 1 − 1 Z ^ j , k , r = { e 1 κ } \bigcup_{j=-1}^{-1}\widehat{Z}_{j,k,r}=\{e^{\frac{1}{\kappa}}\} ⋃ j = − 1 − 1 Z j , k , r = { e κ 1 } , where κ \kappa κ is a non-zero integer value that is the least common denominator of the positive rationals l 1 , … , l k l_1,\ldots,l_k l 1 , … , l k as well as the weights of N \mathcal{N} N . Hence, condition 1 holds trivially as, by the Lindemann–Weierstrass Theorem, e 1 κ e^{\frac{1}{\kappa}} e κ 1 is algebraically independent over Q \mathbb{Q} Q . Condition 2 is immediate in regards to Z ^ − 1 , k , r \widehat{Z}_{-1,k,r} Z − 1 , k , r . Suppose that it does not hold in regards to { 1 } , Z − 1 , k , r \{1\},Z_{-1,k,r} { 1 } , Z − 1 , k , r . Then, 1 ∈ Z − 1 , k , r 1\in Z_{-1,k,r} 1 ∈ Z − 1 , k , r , meaning that there is some positive rational l j l_j l j for which σ ( l j ) = 1 \sigma(l_j)=1 σ ( l j ) = 1 . But by definition, P ( e l j ) = Q ( e l j ) P(e^{l_j})=Q(e^{l_j}) P ( e l j ) = Q ( e l j ) and thus P ( e l j ) − Q ( e l j ) = 0 P(e^{l_j})-Q(e^{l_j})=0 P ( e l j ) − Q ( e l j ) = 0 . But since e l j e^{l_j} e l j is transcendental we have that P ( x ) − Q ( x ) = 0 P(x)-Q(x)=0 P ( x ) − Q ( x ) = 0 for all x x x . Thus, P ( x ) Q ( x ) = 1 \frac{P(x)}{Q(x)}=1 Q ( x ) P ( x ) = 1 for all x x x contradicting our requirement that the function is strictly increasing for x > 1 x>1 x > 1 . Condition 3 follows from the fact that l 1 , … , l k l_1,\ldots,l_k l 1 , … , l k are positive rationals thus making e 1 κ > 1 e^{\frac{1}{\kappa}}>1 e κ 1 > 1 ; it being understood that z z z is any sum (with possible repeats) of l 1 , … , l k l_1,\ldots,l_k l 1 , … , l k . By definition, R ( x ) R(x) R ( x ) is positive on x > 1 x>1 x > 1 , thus R ( e z ) R(e^z) R ( e z ) is positive as required.
Now, suppose the above conditions hold for − 1 ≤ i ≤ L -1\leq i\leq L − 1 ≤ i ≤ L . We show that the same is true for i + 1 i+1 i + 1 in place of i i i . By condition 1 of our inductive hypothesis, ⋃ j = − 1 i Z ^ j , k , r \bigcup_{j=-1}^{i}\widehat{Z}_{j,k,r} ⋃ j = − 1 i Z j , k , r is algebraically independent over Q \mathbb{Q} Q . Hence, by invoking Claim 16 on appropriate subsets, the set { 1 } ∪ ⋃ j = − 1 i Z j , k , r \{1\}\cup\bigcup_{j=-1}^{i}Z_{j,k,r} { 1 } ∪ ⋃ j = − 1 i Z j , k , r is linearly independent over Q \mathbb{Q} Q , and thus so is S = { 1 κ } ∪ ⋃ j = − 1 i { z κ ∣ z ∈ Z j , k , r } S=\{\frac{1}{\kappa}\}\cup\bigcup_{j=-1}^{i}\{\frac{z}{\kappa}\mid z\in Z_{j,k,r}\} S = { κ 1 } ∪ ⋃ j = − 1 i { κ z ∣ z ∈ Z j , k , r } as κ \kappa κ is a positive integer. With that, we may apply Schanuel’s conjecture on S S S and, in doing so, obtain F = Q ( S ∪ ⋃ j = − 1 i + 1 Z ^ j , k , r ) F=\mathbb{Q}(S\cup\bigcup_{j=-1}^{i+1}\widehat{Z}_{j,k,r}) F = Q ( S ∪ ⋃ j = − 1 i + 1 Z j , k , r ) such that trdeg Q ( F ) ≥ ∣ S ∣ \operatorname{trdeg}_{\mathbb{Q}}(F) \ge|S| trdeg Q ( F ) ≥ ∣ S ∣ . When turning to analyse the size of S S S . Notice, first, that ∣ Z i , k , r ∣ = ∣ Z ^ i + 1 , k , r ∣ |Z_{i,k,r}| = |\widehat{Z}_{i+1,k,r}| ∣ Z i , k , r ∣ = ∣ Z i + 1 , k , r ∣ . Now, by condition 2 of our induction hypothesis, { 1 } , Z − 1 , k , r , … , Z i , k , r \{1\}, Z_{-1,k,r}, \ldots, Z_{i,k,r} { 1 } , Z − 1 , k , r , … , Z i , k , r are all pairwise disjoint. Thus,
∣ S ∣ = ∣ { 1 } ∪ ⋃ j = − 1 i Z j , k , r ∣ = 1 + ∑ j = − 1 i ∣ Z j , k , r ∣ = ∣ Z ^ − 1 , k , r ∣ + ∑ j = 0 i ∣ Z ^ j , k , r ∣ = ∑ j = − 1 i + 1 ∣ Z ^ j , k , r ∣ . |S| = |\{1\} \cup\bigcup_{j=-1}^{i} Z_{j,k,r}| = 1 + \sum_{j=-1}^{i} |Z_{j,k,r}| = |\widehat{Z}_{-1,k,r}| + \sum_{j=0}^{i} |\widehat{Z}_{j,k,r}| = \sum_{j=-1}^{i+1} |\widehat{Z}_{j,k,r}|. ∣ S ∣ = ∣ { 1 } ∪ j = − 1 ⋃ i Z j , k , r ∣ = 1 + j = − 1 ∑ i ∣ Z j , k , r ∣ = ∣ Z − 1 , k , r ∣ + j = 0 ∑ i ∣ Z j , k , r ∣ = j = − 1 ∑ i + 1 ∣ Z j , k , r ∣.
Now, write E = Q ( ⋃ j = − 1 i + 1 Z ^ j , k , r ) E = \mathbb{Q}(\bigcup_{j=-1}^{i+1} \widehat{Z}_{j,k,r}) E = Q ( ⋃ j = − 1 i + 1 Z j , k , r ) . Notice that S ⊆ E S \subseteq E S ⊆ E as elements of S S S are either rational, already in the set ⋃ j = − 1 i + 1 Z ^ j , k , r \bigcup_{j=-1}^{i+1} \widehat{Z}_{j,k,r} ⋃ j = − 1 i + 1 Z j , k , r , or take the form 1 κ ⋅ R ( z ) = 1 κ ⋅ P ( z ) Q ( z ) \frac{1}{\kappa} \cdot R(z) = \frac{1}{\kappa} \cdot\frac{P(z)}{Q(z)} κ 1 ⋅ R ( z ) = κ 1 ⋅ Q ( z ) P ( z ) , where z z z is a monomial over ⋃ j = − 1 i + 1 Z ^ j , k , r \bigcup_{j=-1}^{i+1} \widehat{Z}_{j,k,r} ⋃ j = − 1 i + 1 Z j , k , r and κ \kappa κ is a positive rational. By condition 3 of our induction hypothesis, z > 1 z > 1 z > 1 as it is the result of exponentiation by a positive power. Thus, by definition of R ( x ) R(x) R ( x ) , we have Q ( z ) ≠ 0 Q(z) \ne0 Q ( z ) = 0 . Since fields are closed under multiplicative inverses, we obtain E = F E = F E = F and thus trdeg Q ( E ) ≥ ∣ S ∣ = ∑ j = − 1 i + 1 ∣ Z ^ j , k , r ∣ \operatorname{trdeg}_{\mathbb{Q}}(E) \ge|S| = \sum_{j=-1}^{i+1} |\widehat{Z}_{j,k,r}| trdeg Q ( E ) ≥ ∣ S ∣ = ∑ j = − 1 i + 1 ∣ Z j , k , r ∣ . The above combined with Lemma 1 gives us that ⋃ j = − 1 i + 1 Z ^ j , k , r \bigcup_{j=-1}^{i+1} \widehat{Z}_{j,k,r} ⋃ j = − 1 i + 1 Z j , k , r is algebraically independent over Q \mathbb{Q} Q . This is then exactly condition 1.
Condition 2 for Z ^ − 1 , k , r , … , Z ^ i + 1 , k , r \widehat{Z}_{-1,k,r}, \ldots, \widehat{Z}_{i+1,k,r} Z − 1 , k , r , … , Z i + 1 , k , r is achieved noting that, by I.H., { 1 } , Z − 1 , k , r , … , Z i , k , r \{1\}, Z_{-1,k,r}, \ldots, Z_{i,k,r} { 1 } , Z − 1 , k , r , … , Z i , k , r are pairwise disjoint sets and exponentiation (of e 1 κ e^{\frac{1}{\kappa}} e κ 1 ) is injective. Now, suppose that Z i + 1 , k , r ∩ Z j , k , r ≠ ∅ Z_{i+1,k,r} \cap Z_{j,k,r} \ne\emptyset Z i + 1 , k , r ∩ Z j , k , r = ∅ for some 0 ≤ j ≤ i 0 \le j \le i 0 ≤ j ≤ i . Let the common element be z z z . Clearly, z z z equals R ( s 1 ) = R ( s 2 ) R(s_1) = R(s_2) R ( s 1 ) = R ( s 2 ) , where s 1 s_1 s 1 is a monomial over Z ^ i + 1 , k , r \widehat{Z}_{i+1,k,r} Z i + 1 , k , r multiplied with some non-negative power of e 1 κ e^{\frac{1}{\kappa}} e κ 1 and s 2 s_2 s 2 a monomial over Z ^ j , k , r \widehat{Z}_{j,k,r} Z j , k , r multiplied by some non-negative power of e 1 κ e^{\frac{1}{\kappa}} e κ 1 . But, by our argument above, Z ^ i + 1 , k , r ∩ Z ^ j , k , r = ∅ \widehat{Z}_{i+1,k,r} \cap\widehat{Z}_{j,k,r} = \emptyset Z i + 1 , k , r ∩ Z j , k , r = ∅ . Additionally, by condition 1 and 2 (already established above for Z ^ i + 1 , k , r \widehat{Z}_{i+1,k,r} Z i + 1 , k , r ), the sets Z ^ i + 1 , k , r , Z ^ j , k , r , { e 1 κ } \widehat{Z}_{i+1,k,r}, \widehat{Z}_{j,k,r}, \{e^{\frac{1}{\kappa}}\} Z i + 1 , k , r , Z j , k , r , { e κ 1 } are distinct and their union is algebraically independent over Q \mathbb{Q} Q . Hence, s 1 ≠ s 2 s_1 \ne s_2 s 1 = s 2 . Notice that s 1 , s 2 > 1 s_1,s_2 > 1 s 1 , s 2 > 1 as a consequence of condition 3. Indeed, by I.H., all entries of Z − 1 , k , r , … , Z i , k , r Z_{-1,k,r}, \ldots, Z_{i,k,r} Z − 1 , k , r , … , Z i , k , r are positive. By definition, s 1 s_1 s 1 and s 2 s_2 s 2 are then e e e raised to a positive power. Then, since R ( x ) R(x) R ( x ) is strictly increasing on x > 1 x > 1 x > 1 , we have that R ( s 1 ) ≠ R ( s 2 ) R(s_1) \ne R(s_2) R ( s 1 ) = R ( s 2 ) thus contradicting our initial assumption. The case where Z i + 1 , k , r ∩ Z − 1 , k , r ≠ ∅ Z_{i+1,k,r} \cap Z_{-1,k,r} \ne\emptyset Z i + 1 , k , r ∩ Z − 1 , k , r = ∅ is similar as Z ^ i + 1 , k , r , { e 1 κ } \widehat{Z}_{i+1,k,r}, \{e^{\frac{1}{\kappa}}\} Z i + 1 , k , r , { e κ 1 } are distinct and, when taken together, algebraically independent over Q \mathbb{Q} Q . Finally, Z i + 1 , k , r ∩ { 1 } = ∅ Z_{i+1,k,r} \cap\{1\} = \emptyset Z i + 1 , k , r ∩ { 1 } = ∅ follows from the fact that 1 is algebraic over Q \mathbb{Q} Q whilst elements of Z i + 1 , k , r Z_{i+1,k,r} Z i + 1 , k , r are not.
Condition 3 holds following the same observations as for the base case. Indeed, by I.H. entries of Z i , k , r Z_{i,k,r} Z i , k , r are all positive. Thus, e z 1 κ ⋅ … ⋅ e z n κ > 1 e^{\frac{z_1}{\kappa}} \cdot\ldots\cdot e^{\frac{z_n}{\kappa}} > 1 e κ z 1 ⋅ … ⋅ e κ z n > 1 , for any choice of z 1 , … , z n ∈ Z i , k , r ∪ { 1 } z_1, \ldots, z_n \in Z_{i,k,r} \cup\{1\} z 1 , … , z n ∈ Z i , k , r ∪ { 1 } . Hence, again by definition, R ( e z 1 κ ⋅ … ⋅ e z n κ ) > 0 R(e^{\frac{z_1}{\kappa}} \cdot\ldots\cdot e^{\frac{z_n}{\kappa}}) > 0 R ( e κ z 1 ⋅ … ⋅ e κ z n ) > 0 .
Claim 18. Under Schanuel’s conjecture, the vertex embeddings produced by N \mathcal{N} N partition the class of vertices into the same equivalence classes as the L L L -round 1-WL test. Additionally, the graph embeddings produced by N \mathcal{N} N partition the class of graphs into the same equivalence classes as the L L L -round 1-WL test.
Proof. For the first statement we show that each of the functions λ ~ ( 0 ) , … , λ ~ ( L ) \widetilde{\lambda}^{(0)}, \ldots, \widetilde{\lambda}^{(L)} λ ( 0 ) , … , λ ( L ) 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 N \mathcal{N} N is linearly independent over Q \mathbb{Q} Q .
Let us first take a look at λ ~ ( 0 ) \widetilde{\lambda}^{(0)} λ ( 0 ) . Take any featured graph G = ( V , E , λ ) G = (V,E,\lambda) G = ( V , E , λ ) and any v , u ∈ V v,u \in V v , u ∈ V . Suppose for contradiction that λ ( 0 ) ( v ) = λ ( 0 ) ( u ) \lambda^{(0)}(v) = \lambda^{(0)}(u) λ ( 0 ) ( v ) = λ ( 0 ) ( u ) , but the initial features are such that λ ( v ) ≠ λ ( u ) \lambda(v) \ne\lambda(u) λ ( v ) = λ ( u ) . Inspecting the initialisation function we see that its first layer gives vectors α = σ ( λ ( v ) + 1 N ) \alpha= \sigma(\lambda(v) + 1_N) α = σ ( λ ( v ) + 1 N ) and β = σ ( λ ( u ) + 1 N ) \beta= \sigma(\lambda(u) + 1_N) β = σ ( λ ( u ) + 1 N ) . Since λ ( v ) + 1 N \lambda(v) + 1_N λ ( v ) + 1 N and λ ( u ) + 1 N \lambda(u) + 1_N λ ( u ) + 1 N contain only positive entries we have that α ≠ β \alpha\ne\beta α = β as R ( y ) R(y) R ( y ) is strictly increasing on y > 1 y > 1 y > 1 , thus ensuring that σ ( x ) \sigma(x) σ ( x ) strictly increases on x > 0 x > 0 x > 0 . It is in the second layer of the initialisation that we must have σ ( ( 2 1 , … , 2 N ) × α ) = σ ( ( 2 1 , … , 2 N ) × β ) \sigma((2^1,\ldots,2^N) \times\alpha) = \sigma((2^1,\ldots,2^N) \times\beta) σ (( 2 1 , … , 2 N ) × α ) = σ (( 2 1 , … , 2 N ) × β ) .
Suppose first that ( 2 1 , … , 2 N ) × α = ( 2 1 , … , 2 N ) × β (2^1,\ldots,2^N) \times\alpha= (2^1,\ldots,2^N) \times\beta ( 2 1 , … , 2 N ) × α = ( 2 1 , … , 2 N ) × β . By Claim 13, the entries of α \alpha α and β \beta β belong to Z − 1 , k Z_{-1,k} Z − 1 , k for k k k large enough. By Lemma 17 and Claim 16, the values of Z − 1 , k = { s 1 , … , s k } Z_{-1,k} = \{s_1,\ldots,s_k\} Z − 1 , k = { s 1 , … , s k } are linearly independent over Q \mathbb{Q} Q . Thus, it must be the case that ∑ 1 ≤ j ≤ N α [ j ] 2 j = ∑ 1 ≤ j ≤ N β [ j ] 2 j \sum_{1 \le j \le N} \alpha[j] 2^j = \sum_{1 \le j \le N} \beta[j] 2^j ∑ 1 ≤ j ≤ N α [ j ] 2 j = ∑ 1 ≤ j ≤ N β [ j ] 2 j for all 1 ≤ ℓ ≤ k 1 \le\ell\le k 1 ≤ ℓ ≤ k ; it being understood that α [ j ] \alpha[j] α [ j ] is the j j j -th entry of α \alpha α (and similarly for β \beta β ). But then, for a given j j j , the respective sum is a binary encoding of positions where s j s_j s j resides in α \alpha α and β \beta β . Thus, α [ j ] = β [ j ] \alpha[j] = \beta[j] α [ j ] = β [ j ] for all 1 ≤ j ≤ N 1 \le j \le N 1 ≤ j ≤ N contradicting α ≠ β \alpha\ne\beta α = β . Lastly, writing α ′ = ( 2 1 , … , 2 N ) × α \alpha' = (2^1,\ldots,2^N) \times\alpha α ′ = ( 2 1 , … , 2 N ) × α and β ′ = ( 2 1 , … , 2 N ) × β \beta' = (2^1,\ldots,2^N) \times\beta β ′ = ( 2 1 , … , 2 N ) × β we must have that σ ( α ′ ) = σ ( β ′ ) \sigma(\alpha') = \sigma(\beta') σ ( α ′ ) = σ ( β ′ ) . But α ′ , β ′ > 0 \alpha',\beta' > 0 α ′ , β ′ > 0 thus resulting in e α ′ , e β ′ > 1 e^{\alpha'},e^{\beta'} > 1 e α ′ , e β ′ > 1 and σ ( α ′ ) ≠ σ ( β ′ ) \sigma(\alpha') \ne\sigma(\beta') σ ( α ′ ) = σ ( β ′ ) , a contradiction to our initial assumption arising from the fact R ( x ) R(x) R ( x ) is strictly increasing for x > 1 x > 1 x > 1 .
::: For λ ( i ) \lambda^{(i)} λ ( i ) with 1 ≤ i ≤ L 1 \le i \le L 1 ≤ i ≤ L we proceed as follows. Suppose for contradiction that λ ( i ) ( v ) = λ ( i ) ( u ) \lambda^{(i)}(v) = \lambda^{(i)}(u) λ ( i ) ( v ) = λ ( i ) ( u ) , but
( λ ( i − 1 ) ( v ) , { { λ ( i − 1 ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } ) ≠ ( λ ( i − 1 ) ( u ) , { { λ ( i − 1 ) ( u ′ ) ∣ u ′ ∈ N ( u ) } } ) . \left(\lambda^{(i-1)}(v), \{\{\lambda^{(i-1)}(v') \mid v' \in N(v)\}\}\right) \ne\left(\lambda^{(i-1)}(u), \{\{\lambda^{(i-1)}(u') \mid u' \in N(u)\}\}\right). ( λ ( i − 1 ) ( v ) , {{ λ ( i − 1 ) ( v ′ ) ∣ v ′ ∈ N ( v )}} ) = ( λ ( i − 1 ) ( u ) , {{ λ ( i − 1 ) ( u ′ ) ∣ u ′ ∈ N ( u )}} ) .
But then,
σ ( C i λ ( i − 1 ) ( v ) + A i ∑ v ′ ∈ N ( v ) λ ( i − 1 ) ( v ′ ) + b i ) = σ ( C i λ ( i − 1 ) ( u ) + A i ∑ u ′ ∈ N ( u ) λ ( i − 1 ) ( u ′ ) + b i ) . \sigma\left(C_i\lambda^{(i-1)}(v) + A_i \sum_{v' \in N(v)} \lambda^{(i-1)}(v') + b_i\right) = \sigma\left(C_i\lambda^{(i-1)}(u) + A_i \sum_{u' \in N(u)} \lambda^{(i-1)}(u') + b_i\right). σ C i λ ( i − 1 ) ( v ) + A i v ′ ∈ N ( v ) ∑ λ ( i − 1 ) ( v ′ ) + b i = σ C i λ ( i − 1 ) ( u ) + A i u ′ ∈ N ( u ) ∑ λ ( i − 1 ) ( u ′ ) + b i .
By Claim 13 the embeddings given by λ i − 1 \lambda^{i-1} λ i − 1 are all in Z i − 1 , k Z_{i-1,k} Z i − 1 , k for k k k large enough. It is easy to verify that the sums inside the activation function are positive. Since σ ( x ) \sigma(x) σ ( x ) is strictly increasing when x > 0 x > 0 x > 0 we have that, in fact,
C i λ ( i − 1 ) ( v ) + A i ∑ v ′ ∈ N ( v ) λ ( i − 1 ) ( v ′ ) + b i = C i λ ( i − 1 ) ( u ) + A i ∑ u ′ ∈ N ( u ) λ ( i − 1 ) ( u ′ ) + b i . C_i\lambda^{(i-1)}(v) + A_i \sum_{v' \in N(v)} \lambda^{(i-1)}(v') + b_i = C_i\lambda^{(i-1)}(u) + A_i \sum_{u' \in N(u)} \lambda^{(i-1)}(u') + b_i. C i λ ( i − 1 ) ( v ) + A i v ′ ∈ N ( v ) ∑ λ ( i − 1 ) ( v ′ ) + b i = C i λ ( i − 1 ) ( u ) + A i u ′ ∈ N ( u ) ∑ λ ( i − 1 ) ( u ′ ) + b i .
Thus, supposing the relevant values of Z i − 1 , k Z_{i-1,k} Z i − 1 , k are s 1 , … , s n s_1,\ldots,s_n s 1 , … , s n , we obtain the following relation:
C i s r + A i ∑ ℓ = 1 n α ℓ s ℓ = C i s t + A i ∑ ℓ = 1 n β ℓ s ℓ . C_i s_r + A_i \sum_{\ell=1}^{n} \alpha_\ell s_\ell= C_i s_t + A_i \sum_{\ell=1}^{n} \beta_\ell s_\ell. C i s r + A i ℓ = 1 ∑ n α ℓ s ℓ = C i s t + A i ℓ = 1 ∑ n β ℓ s ℓ .
where all α ℓ , β ℓ \alpha_\ell,\beta_\ell α ℓ , β ℓ are in N \mathbb{N} N and represent the number of neighbours (of v v v and u u u respectively) with the embedding s ℓ s_\ell s ℓ . It is to be understood that s r = λ ( i − 1 ) ( v ) s_r = \lambda^{(i-1)}(v) s r = λ ( i − 1 ) ( v ) and s t = λ ( i − 1 ) ( u ) s_t = \lambda^{(i-1)}(u) s t = λ ( i − 1 ) ( u ) . Supposing for the moment s r = s t s_r = s_t s r = s t we have that ∑ ℓ = 1 n α ℓ s ℓ = ∑ ℓ = 1 n β ℓ s ℓ \sum_{\ell=1}^{n} \alpha_\ell s_\ell= \sum_{\ell=1}^{n} \beta_\ell s_\ell ∑ ℓ = 1 n α ℓ s ℓ = ∑ ℓ = 1 n β ℓ s ℓ . Since values of Z i − 1 , k Z_{i-1,k} Z i − 1 , k are linearly independent over Q \mathbb{Q} Q (Lemma 17 with Claim 16 ) we have that α ℓ = β ℓ \alpha_\ell= \beta_\ell α ℓ = β ℓ for all 1 ≤ ℓ ≤ n 1 \le\ell\le n 1 ≤ ℓ ≤ n . Thus, there is a bijection f : N ( v ) → N ( u ) f : N(v) \to N(u) f : N ( v ) → N ( u ) such that λ ( i − 1 ) ( v ′ ) = λ ( i − 1 ) ( f ( v ′ ) ) \lambda^{(i-1)}(v') = \lambda^{(i-1)}(f(v')) λ ( i − 1 ) ( v ′ ) = λ ( i − 1 ) ( f ( v ′ )) . Thus,
( λ ( i − 1 ) ( v ) , { { λ ( i − 1 ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } ) = ( λ ( i − 1 ) ( u ) , { { λ ( i − 1 ) ( f ( v ′ ) ) ∣ v ′ ∈ N ( v ) } } ) = ( λ ( i − 1 ) ( u ) , { { λ ( i − 1 ) ( u ′ ) ∣ u ′ ∈ N ( u ) } } ) \left(\lambda^{(i-1)}(v), \{\{\lambda^{(i-1)}(v') \mid v' \in N(v)\}\}\right) = \left(\lambda^{(i-1)}(u), \{\{\lambda^{(i-1)}(f(v')) \mid v' \in N(v)\}\}\right) = \left(\lambda^{(i-1)}(u), \{\{\lambda^{(i-1)}(u') \mid u' \in N(u)\}\}\right) ( λ ( i − 1 ) ( v ) , {{ λ ( i − 1 ) ( v ′ ) ∣ v ′ ∈ N ( v )}} ) = ( λ ( i − 1 ) ( u ) , {{ λ ( i − 1 ) ( f ( v ′ )) ∣ v ′ ∈ N ( v )}} ) = ( λ ( i − 1 ) ( u ) , {{ λ ( i − 1 ) ( u ′ ) ∣ u ′ ∈ N ( u )}} )
thus contradicting our initial assumption.
Now suppose that s r ≠ s t s_r \ne s_t s r = s t . If α ℓ = β ℓ \alpha_\ell= \beta_\ell α ℓ = β ℓ for all 1 ≤ ℓ ≤ n 1 \le\ell\le n 1 ≤ ℓ ≤ n , then C i s r = C i s t C_i s_r = C_i s_t C i s r = C i s t . Since C i > 0 C_i > 0 C i > 0 this results in a contradiction. Now, if α ℓ ≠ β ℓ \alpha_\ell\ne\beta_\ell α ℓ = β ℓ for some choice of ℓ \ell ℓ , we obtain the following by grouping dependent terms together:
C i s r + A i α r s r = A i β r s r and A i α t s t = C i s t + A i β t s t . C_i s_r + A_i\alpha_r s_r = A_i\beta_r s_r \qquad\text{and}\qquad A_i\alpha_t s_t = C_i s_t + A_i\beta_t s_t. C i s r + A i α r s r = A i β r s r and A i α t s t = C i s t + A i β t s t .
Focusing on the first equation, recall that C i A i ∉ N \frac{C_i}{A_i} \notin\mathbb{N} A i C i ∈ / N . In fact, since A i , C i > 0 A_i,C_i > 0 A i , C i > 0 , we have that C i A i ∉ Z \frac{C_i}{A_i} \notin\mathbb{Z} A i C i ∈ / Z . But then β r − α r = C i A i \beta_r - \alpha_r = \frac{C_i}{A_i} β r − α r = A i C i . Since α r , β r ∈ N \alpha_r,\beta_r \in\mathbb{N} α r , β r ∈ N we have that C i A i ∈ Z \frac{C_i}{A_i} \in\mathbb{Z} A i C i ∈ Z , a contradiction.
For the second statement of the claim we proceed as follows. Take any finite subset { s 1 , … , s n } \{s_1,\ldots,s_n\} { s 1 , … , s n } such that s j = λ ( L ) ( v j ) s_j = \lambda^{(L)}(v_j) s j = λ ( L ) ( v j ) for some pointed graph ( G j , v j ) (G_j,v_j) ( G j , v j ) . Now, let G G G be the disjoint union of G 1 , … , G n G_1,\ldots,G_n G 1 , … , G n . Claim 13 then establishes s 1 , … , s n ∈ Z L , k s_1,\ldots,s_n \in Z_{L,k} s 1 , … , s n ∈ Z L , k for k k k large enough. Lemma 17 and Claim 16 then establish that these values are linearly independent over Q \mathbb{Q} Q .
Proof of Proposition 10
Proposition 10. Suppose ( G , v ) (G,v) ( G , v ) and ( H , u ) (H,u) ( H , u ) are two featured pointed graphs with virtual nodes. Then, for all L L L -layered GNNs N \mathcal{N} N , μ ( L ) ( v ) = μ ( L ) ( u ) \mu^{(L)}(v) = \mu^{(L)}(u) μ ( L ) ( v ) = μ ( L ) ( u ) implies λ ( L ) ( v ) = λ ( L ) ( u ) \lambda^{(L)}(v) = \lambda^{(L)}(u) λ ( L ) ( v ) = λ ( L ) ( u ) and μ G = μ H \mu_G = \mu_H μ G = μ H implies λ G = λ H \lambda_G = \lambda_H λ G = λ H .
Proof. The proof is comprised of two inductive arguments. First, we show that μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) \mu^{(i+1)}(v) = \mu^{(i+1)}(u) μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) implies μ ( i ) ( v ) = μ ( i ) ( u ) \mu^{(i)}(v) = \mu^{(i)}(u) μ ( i ) ( v ) = μ ( i ) ( u ) . For the base case suppose that μ ( 1 ) ( v ) = μ ( 1 ) ( u ) \mu^{(1)}(v) = \mu^{(1)}(u) μ ( 1 ) ( v ) = μ ( 1 ) ( u ) , but μ ( 0 ) ( v ) ≠ μ ( 0 ) ( u ) \mu^{(0)}(v) \ne\mu^{(0)}(u) μ ( 0 ) ( v ) = μ ( 0 ) ( u ) . If v v v and u u u are ordinary vertices, then μ ( 1 ) ( v ) = hash ( μ ( 0 ) ( v ) , … ) ≠ hash ( μ ( 0 ) ( u ) , … ) \mu^{(1)}(v) = \operatorname{hash}(\mu^{(0)}(v),\ldots) \ne\operatorname{hash}(\mu^{(0)}(u),\ldots) μ ( 1 ) ( v ) = hash ( μ ( 0 ) ( v ) , … ) = hash ( μ ( 0 ) ( u ) , … ) , a contradiction. If v v v and u u u are virtual then, by definition, μ ( 0 ) ( v ) = hash ( virtual ) = μ ( 0 ) ( u ) \mu^{(0)}(v) = \operatorname{hash}(\operatorname{virtual}) = \mu^{(0)}(u) μ ( 0 ) ( v ) = hash ( virtual ) = μ ( 0 ) ( u ) . The case where one node is virtual and the other is ordinary is immediate as then μ ( j ) ( v ) ≠ μ ( j ) ( u ) \mu^{(j)}(v) \ne\mu^{(j)}(u) μ ( j ) ( v ) = μ ( j ) ( u ) for any j ≥ 0 j \ge0 j ≥ 0 .
Let us assume the required condition holds for i > 0 i > 0 i > 0 . We extend this to the i + 1 i+1 i + 1 setting as follows. Suppose μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) \mu^{(i+1)}(v) = \mu^{(i+1)}(u) μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) . If v v v and u u u are ordinary vertices, then μ ( i ) ( v ) ≠ μ ( i ) ( u ) \mu^{(i)}(v) \ne\mu^{(i)}(u) μ ( i ) ( v ) = μ ( i ) ( u ) would result in a similar contradiction as in the base case. On the other hand suppose v v v and u u u are virtual and that μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) \mu^{(i+1)}(v) = \mu^{(i+1)}(u) μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) , but μ ( i ) ( v ) ≠ μ ( i ) ( u ) \mu^{(i)}(v) \ne\mu^{(i)}(u) μ ( i ) ( v ) = μ ( i ) ( u ) . Writing S = { { μ ( i − 1 ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } S = \{\{\mu^{(i-1)}(v') \mid v' \in N(v)\}\} S = {{ μ ( i − 1 ) ( v ′ ) ∣ v ′ ∈ N ( v )}} and Z = { { μ ( i − 1 ) ( u ′ ) ∣ u ′ ∈ N ( u ) } } Z = \{\{\mu^{(i-1)}(u') \mid u' \in N(u)\}\} Z = {{ μ ( i − 1 ) ( u ′ ) ∣ u ′ ∈ N ( u )}} we observe that S ≠ Z S \ne Z S = Z . But then, S + = Z + S^+ = Z^+ S + = Z + , where S + = { { μ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } S^+ = \{\{\mu^{(i)}(v') \mid v' \in N(v)\}\} S + = {{ μ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v )}} and Z + = { { μ ( i ) ( u ′ ) ∣ u ′ ∈ N ( u ) } } Z^+ = \{\{\mu^{(i)}(u') \mid u' \in N(u)\}\} Z + = {{ μ ( i ) ( u ′ ) ∣ u ′ ∈ N ( u )}} . Now, let f f f be a bijection between N ( v ) N(v) N ( v ) and N ( u ) N(u) N ( u ) such that μ ( i ) ( v ′ ) = μ ( i ) ( f ( v ′ ) ) \mu^{(i)}(v') = \mu^{(i)}(f(v')) μ ( i ) ( v ′ ) = μ ( i ) ( f ( v ′ )) for all v ′ ∈ N ( v ) v' \in N(v) v ′ ∈ N ( v ) . But then, by I.H., the same bijection gives μ ( i − 1 ) ( v ′ ) = μ ( i − 1 ) ( f ( v ′ ) ) \mu^{(i-1)}(v') = \mu^{(i-1)}(f(v')) μ ( i − 1 ) ( v ′ ) = μ ( i − 1 ) ( f ( v ′ )) and establishes S = Z S = Z S = Z , a contradiction. The case where one node is virtual and the other is ordinary is immediate.
We now prove that μ ( L ) ( v ) = μ ( L ) ( u ) \mu^{(L)}(v) = \mu^{(L)}(u) μ ( L ) ( v ) = μ ( L ) ( u ) implies λ ( L ) ( v ) = λ ( L ) ( u ) \lambda^{(L)}(v) = \lambda^{(L)}(u) λ ( L ) ( v ) = λ ( L ) ( u ) by induction on 0 ≤ i ≤ L 0 \le i \le L 0 ≤ i ≤ L . The base case i = 0 i = 0 i = 0 is immediate as λ ( v ) = λ ( u ) \lambda(v) = \lambda(u) λ ( v ) = λ ( u ) if and only if μ ( 0 ) ( v ) = μ ( 0 ) ( u ) \mu^{(0)}(v) = \mu^{(0)}(u) μ ( 0 ) ( v ) = μ ( 0 ) ( u ) . Since λ ( 0 ) \lambda^{(0)} λ ( 0 ) is an FNN for ordinary vertices and produced the same vector for virtual ones, we have that μ ( 0 ) ( v ) = μ ( 0 ) ( u ) \mu^{(0)}(v) = \mu^{(0)}(u) μ ( 0 ) ( v ) = μ ( 0 ) ( u ) implies λ ( 0 ) ( v ) = λ ( 0 ) ( u ) \lambda^{(0)}(v) = \lambda^{(0)}(u) λ ( 0 ) ( v ) = λ ( 0 ) ( u ) .
For the inductive step assume that our hypothesis holds for 0 ≤ i < L 0 \le i < L 0 ≤ i < L . We show that it holds for i + 1 i+1 i + 1 as well. For this purpose suppose μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) \mu^{(i+1)}(v) = \mu^{(i+1)}(u) μ ( i + 1 ) ( v ) = μ ( i + 1 ) ( u ) . Then, as argued above, μ ( i ) ( v ) = μ ( i ) ( u ) \mu^{(i)}(v) = \mu^{(i)}(u) μ ( i ) ( v ) = μ ( i ) ( u ) and { { μ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } = { { μ ( i ) ( u ′ ) ∣ u ′ ∈ N ( u ) } } \{\{\mu^{(i)}(v') \mid v' \in N(v)\}\} = \{\{\mu^{(i)}(u') \mid u' \in N(u)\}\} {{ μ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v )}} = {{ μ ( i ) ( u ′ ) ∣ u ′ ∈ N ( u )}} . But then, by our inductive hypothesis, λ ( i ) ( v ) = λ ( i ) ( u ) \lambda^{(i)}(v) = \lambda^{(i)}(u) λ ( i ) ( v ) = λ ( i ) ( u ) as well as { { λ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } = { { λ ( i ) ( u ′ ) ∣ u ′ ∈ N ( u ) } } \{\{\lambda^{(i)}(v') \mid v' \in N(v)\}\} = \{\{\lambda^{(i)}(u') \mid u' \in N(u)\}\} {{ λ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v )}} = {{ λ ( i ) ( u ′ ) ∣ u ′ ∈ N ( u )}} . Recall that, before activation, λ ( i + 1 ) ( v ) \lambda^{(i+1)}(v) λ ( i + 1 ) ( v ) is a linear combination of { { λ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v ) } } \{\{\lambda^{(i)}(v') \mid v' \in N(v)\}\} {{ λ ( i ) ( v ′ ) ∣ v ′ ∈ N ( v )}} and λ ( i ) ( v ) \lambda^{(i)}(v) λ ( i ) ( v ) ; and, in fact, so is λ ( i + 1 ) ( u ) \lambda^{(i+1)}(u) λ ( i + 1 ) ( u ) . It is then easy to see that λ ( i + 1 ) ( v ) = λ ( i + 1 ) ( u ) \lambda^{(i+1)}(v) = \lambda^{(i+1)}(u) λ ( i + 1 ) ( v ) = λ ( i + 1 ) ( u ) as required.
To see that μ G = μ H \mu_G = \mu_H μ G = μ H implies λ G = λ H \lambda_G = \lambda_H λ G = λ H one needs only note that { { μ ( L ) ( v ) ∣ v ∈ V } } = { { μ ( L ) ( u ) ∣ u ∈ U } } \{\{\mu^{(L)}(v) \mid v \in V\}\} = \{\{\mu^{(L)}(u) \mid u \in U\}\} {{ μ ( L ) ( v ) ∣ v ∈ V }} = {{ μ ( L ) ( u ) ∣ u ∈ U }} ; it being understood that V V V is the set of vertices of G G G and U U U is the set of vertices of H H H . Then, ∑ { { λ ( L ) ( v ) ∣ v ∈ V } } = ∑ { { λ ( L ) ( u ) ∣ u ∈ U } } \sum\{\{\lambda^{(L)}(v) \mid v \in V\}\} = \sum\{\{\lambda^{(L)}(u) \mid u \in U\}\} ∑ {{ λ ( L ) ( v ) ∣ v ∈ V }} = ∑ {{ λ ( L ) ( u ) ∣ u ∈ U }} as required. □ \square □
Full proof of Theorem 11
Theorem 11. Let N \mathcal{N} N be an L L L -layer GNN that uses σ ∈ { exp , sinh , cosh } \sigma\in\{\exp,\sinh,\cosh\} σ ∈ { exp , sinh , cosh } as activation and produces 1-dimensional vertex embeddings in its final layer. Further assume that λ G 1 = λ G 2 \lambda_{G_1} = \lambda_{G_2} λ G 1 = λ G 2 if and only if μ G 1 = μ G 2 \mu_{G_1} = \mu_{G_2} μ G 1 = μ G 2 for all featured graphs with virtual nodes G 1 , G 2 G_1,G_2 G 1 , G 2 . Then for every featured graph G = ( V , E , λ ) G = (V,E,\lambda) G = ( V , E , λ ) the values { exp ( A L ′ λ ( L − 1 ) ( v ) ) ∣ v ∈ V } \{\exp(A'^{\lambda}_{L}(L-1)(v)) \mid v \in V\} { exp ( A L ′ λ ( L − 1 ) ( v )) ∣ v ∈ V } are algebraically independent over Q \mathbb{Q} Q .
In this section we only fill in the parts of the above theorem. Namely we show that G Q G_Q G Q and G R G_R G R as constructed in the theorem are distinguishable by L L L -round 1-WL, that N \mathcal{N} N is such that λ G Q = λ G R \lambda_{G_Q} = \lambda_{G_R} λ G Q = λ G R , and show that the above theorem holds with σ ∈ { sinh , cosh } \sigma\in\{\sinh,\cosh\} σ ∈ { sinh , cosh } .
We proceed by showing the first claim. For this purpose recall the pointed graphs ( G , v 1 ) , … , ( G , v n ) (G,v_1),\ldots,(G,v_n) ( G , v 1 ) , … , ( G , v n ) , values z i = exp ( A L ′ λ ( L − 1 ) ( v i ) ) z_i = \exp(A'^{\lambda}_{L}(L-1)(v_i)) z i = exp ( A L ′ λ ( L − 1 ) ( v i )) , the identity
∑ i = 1 q α i z 1 β i , 1 ⋯ z n β i , n exp ( b L ′ ) + α q + 1 exp ( b L ′ ) = ∑ j = 1 r γ j z 1 δ j , 1 ⋯ z n δ j , n exp ( b L ′ ) , \sum_{i=1}^{q}\alpha_i z_1^{\beta_{i,1}}\cdots z_n^{\beta_{i,n}}\exp(b'_L)+\alpha_{q+1}\exp(b'_L)=\sum_{j=1}^{r}\gamma_j z_1^{\delta_{j,1}}\cdots z_n^{\delta_{j,n}}\exp(b'_L), i = 1 ∑ q α i z 1 β i , 1 ⋯ z n β i , n exp ( b L ′ ) + α q + 1 exp ( b L ′ ) = j = 1 ∑ r γ j z 1 δ j , 1 ⋯ z n δ j , n exp ( b L ′ ) ,
and graph construction:
for 1 ≤ i ≤ q 1 \le i \le q 1 ≤ i ≤ q , add α i \alpha_i α i disjoint copies of the graph constructed as follows: (a) for 1 ≤ k ≤ n 1 \le k \le n 1 ≤ k ≤ n , add β i , k \beta_{i,k} β i , k fresh copies of the pointed graph ( G , v k ) (G,v_k) ( G , v k ) ; (b) create a fresh virtual node u u u and add an edge from u u u to the distinguished vertex in each copy added in the previous step;
add α q + 1 \alpha_{q+1} α q + 1 fresh isolated virtual vertices;
for 1 ≤ j ≤ r 1 \le j \le r 1 ≤ j ≤ r and 1 ≤ k ≤ n 1 \le k \le n 1 ≤ k ≤ n , add γ j δ j , k \gamma_j\delta_{j,k} γ j δ j , k disjoint copies of ( G , v k ) (G,v_k) ( G , v k ) .
The graph G R G_R G R is defined symmetrically: interchange q q q and r r r as well as ( α , β ) (\alpha,\beta) ( α , β ) and ( γ , δ ) (\gamma,\delta) ( γ , δ ) , and omit Step 2.
Claim 19. For G Q G_Q G Q and G R G_R G R as in Theorem 11 we have μ G Q ≠ μ G R \mu_{G_Q} \ne\mu_{G_R} μ G Q = μ G R .
Proof. Recall that G Q G_Q G Q and G R G_R G R are built from pointed graphs ( G , v 1 ) , … , ( G , v n ) (G,v_1),\ldots,(G,v_n) ( G , v 1 ) , … , ( G , v n ) that are pairwise distinguishable by the ( L − 1 ) (L-1) ( L − 1 ) -round 1-WL algorithm. Looking at steps 1 (a) and 3 of the construction in Theorem 11 we see that there were ∑ i = 1 q α i β i , k + ∑ j = 1 r γ j δ j , k \sum_{i=1}^{q}\alpha_i\beta_{i,k}+\sum_{j=1}^{r}\gamma_j\delta_{j,k} ∑ i = 1 q α i β i , k + ∑ j = 1 r γ j δ j , k disjoint copies of ( G , v k ) (G,v_k) ( G , v k ) added to both G Q G_Q G Q and G R G_R G R . Notice that the only edges added were ones that originate from a fresh vertex introduced in step 1 (b). Thus, in both G Q G_Q G Q and G R G_R G R , the copies of ( G , v k ) (G,v_k) ( G , v k ) are coloured identically by the L L 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 α q + 1 ≠ 0 \alpha_{q+1} \ne0 α q + 1 = 0 , it is immediate that μ G Q ≠ μ G R \mu_{G_Q} \ne\mu_{G_R} μ G Q = μ G R .
On the other hand suppose that α q + 1 = 0 \alpha_{q+1} = 0 α q + 1 = 0 . We claim that the vertices added in step 1 (b) make the two graphs distinguishable. For this purpose let c 1 , … , c n c_1,\ldots,c_n c 1 , … , c n be the ( L − 1 ) (L-1) ( L − 1 ) -round 1-WL colours produced on the pointed vertices ( G , v 1 ) , … , ( G , v n ) (G,v_1),\ldots,(G,v_n) ( G , v 1 ) , … , ( G , v n ) . Recall that they are all distinct. Taking any v ∈ V Q v \in V_Q v ∈ V Q added in step 1 (b) we see that it takes the colour μ ( L ) ( v ) = { ( c 1 ↦ β i , 1 ) , … , ( c n ↦ β i , n ) } \mu^{(L)}(v) = \{(c_1 \mapsto\beta_{i,1}),\ldots,(c_n \mapsto\beta_{i,n})\} μ ( L ) ( v ) = {( c 1 ↦ β i , 1 ) , … , ( c n ↦ β i , n )} for some 1 ≤ i ≤ q 1 \le i \le q 1 ≤ i ≤ q . By inspecting Q ( x 1 , … , x n ) = R ( x 1 , … , x n ) Q(x_1,\ldots,x_n) = R(x_1,\ldots,x_n) Q ( x 1 , … , x n ) = R ( x 1 , … , x n ) in Theorem 11 we see that there is no 1 ≤ j ≤ r 1 \le j \le r 1 ≤ j ≤ r for which ( β i , 1 , … , β i , n ) = ( δ j , 1 , … , δ j , n ) (\beta_{i,1},\ldots,\beta_{i,n}) = (\delta_{j,1},\ldots,\delta_{j,n}) ( β i , 1 , … , β i , n ) = ( δ j , 1 , … , δ j , n ) . Thus, by the construction in step 1, there is no u ∈ V R u \in V_R u ∈ V R such that μ ( L ) ( u ) = μ ( L ) ( v ) \mu^{(L)}(u) = \mu^{(L)}(v) μ ( L ) ( u ) = μ ( L ) ( v ) . With that we conclude μ G Q ≠ μ G R \mu_{G_Q} \ne\mu_{G_R} μ G Q = μ G R .
Claim 20. For G Q G_Q G Q and G R G_R G R as in Theorem 11 we have λ G Q = λ G R \lambda_{G_Q} = \lambda_{G_R} λ G Q = λ G R .
Proof. For the final global readout notice that, by construction of G Q G_Q G Q and G R G_R G R , there is a bijection between the vertices of G Q G_Q G Q and G R G_R G R added in Steps 1(a) and 3 that preserves the colours attributed by the L L L -round 1-WL algorithm. Indeed, Step 1 adds α i ⋅ β i , k \alpha_i \cdot\beta_{i,k} α i ⋅ β i , k copies of ( G k , v k ) (G_k,v_k) ( G k , v k ) to G Q G_Q G Q while Step 3 does the same for G R G_R G R , and vice versa for γ j \gamma_j γ j , δ j , k \delta_{j,k} δ j , k . 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
∑ v ∈ V Q λ ( L ) ( v ) = K + exp ( b L ′ ) ⋅ Q ( z 1 , … , z n ) = K + exp ( b L ′ ) ⋅ R ( z 1 , … , z n ) = ∑ v ∈ V R λ ( L ) ( v ) , \sum_{v \in V_Q} \lambda^{(L)}(v) = K + \exp(b'_L) \cdot Q(z_1,\ldots,z_n) = K + \exp(b'_L) \cdot R(z_1,\ldots,z_n) = \sum_{v \in V_R} \lambda^{(L)}(v), v ∈ V Q ∑ λ ( L ) ( v ) = K + exp ( b L ′ ) ⋅ Q ( z 1 , … , z n ) = K + exp ( b L ′ ) ⋅ R ( z 1 , … , z n ) = v ∈ V R ∑ λ ( L ) ( v ) ,
where K K K 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 λ G Q = λ G R \lambda_{G_Q} = \lambda_{G_R} λ G Q = λ G R , 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 z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n are algebraically dependent over Q \mathbb{Q} Q . This allowed us to construct two distinct polynomials Q Q Q and R R R with positive integer coefficients such that Q ( z 1 , … , z n ) = R ( z 1 , … , z n ) Q(z_1,\ldots,z_n) = R(z_1,\ldots,z_n) Q ( z 1 , … , z n ) = R ( z 1 , … , z n ) . They then gave rise to two graphs G Q G_Q G Q and G R G_R G R satisfying μ G Q ≠ μ G R \mu_{G_Q} \ne\mu_{G_R} μ G Q = μ G R (Claim 19) and λ G Q = λ G R \lambda_{G_Q} = \lambda_{G_R} λ G Q = λ G R (Claim 20). But Theorem 11 requires λ G 1 = λ G 2 ⇔ μ G 1 = μ G 2 \lambda_{G_1} = \lambda_{G_2} \Leftrightarrow\mu_{G_1} = \mu_{G_2} λ G 1 = λ G 2 ⇔ μ G 1 = μ G 2 for all graphs G 1 , G 2 G_1,G_2 G 1 , G 2 thus resulting in a contradictions. It must then be the case that if N \mathcal{N} N matches the L L L -round 1-WL test on graphs with virtual nodes, the values z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n (where z i = exp ( A L ′ λ ( L − 1 ) ( v i ) ) z_i = \exp(A'_L\lambda^{(L-1)}(v_i)) z i = exp ( A L ′ λ ( L − 1 ) ( v i )) ) must be algebraically independent over Q \mathbb{Q} Q .
Lastly, we extend our reasoning to other advertised forms of activation:
Claim 21. Theorem 11 extends to GNNs with σ ∈ { sinh , cosh } \sigma\in\{\sinh,\cosh\} σ ∈ { sinh , cosh } activation.
Proof. To prove the Theorem in full we must show that the values in { exp ( A L ′ λ ( L − 1 ) ( v ) ) ∣ v ∈ V } \{\exp(A'_L\lambda^{(L-1)}(v)) \mid v \in V\} { exp ( A L ′ λ ( L − 1 ) ( v )) ∣ v ∈ V } are algebraically independent over Q \mathbb{Q} Q for any given graph G = ( V , E ) G = (V,E) G = ( V , E ) . For the purposes of contradiction suppose this is not the case. Enumerating the values as z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n we obtain a non-zero polynomial P ( x 1 , … , x n ) P(x_1,\ldots,x_n) P ( x 1 , … , x n ) with rational coefficients for which P ( z 1 , … , z n ) = 0 P(z_1,\ldots,z_n) = 0 P ( z 1 , … , z n ) = 0 . We again assume, by multiplying by the lowest common denominator if needed, that the coefficients in P P P are integers.
Let us now inspect the expression R ( x 1 , … , x n ) = P ( x 1 , … , x n ) ⋅ P ( x 1 − 1 , … , x n − 1 ) R(x_1,\ldots,x_n) = P(x_1,\ldots,x_n) \cdot P(x_1^{-1},\ldots,x_n^{-1}) R ( x 1 , … , x n ) = P ( x 1 , … , x n ) ⋅ P ( x 1 − 1 , … , x n − 1 ) . Clearly, R ( z 1 , … , z n ) = 0 R(z_1,\ldots,z_n) = 0 R ( z 1 , … , z n ) = 0 . Now, peeking into P ( x 1 , … , x n ) P(x_1,\ldots,x_n) P ( x 1 , … , x n ) we see that it takes the form ∑ i = 1 m a i M i + b \sum_{i=1}^{m} a_i M_i + b ∑ i = 1 m a i M i + b , where each M i M_i M i is a monomial in x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n . Thus, R ( x 1 , … , x n ) R(x_1,\ldots,x_n) R ( x 1 , … , x n ) takes the form:
( ∑ i = 1 m a i M i + b ) ⋅ ( ∑ i = 1 m a i M i − 1 + b ) . \left(\sum_{i=1}^{m} a_i M_i + b\right) \cdot\left(\sum_{i=1}^{m} a_i M_i^{-1} + b\right). ( i = 1 ∑ m a i M i + b ) ⋅ ( i = 1 ∑ m a i M i − 1 + b ) .
Expanding the expression above we obtain:
b 2 + b ∑ i = 1 m a i M i + b ∑ i = 1 m a i M i − 1 + ∑ i = 1 m ∑ j = 1 m a i a j M i M j − 1 . b^2 + b\sum_{i=1}^{m} a_iM_i + b\sum_{i=1}^{m} a_iM_i^{-1} + \sum_{i=1}^{m}\sum_{j=1}^{m} a_i a_j M_i M_j^{-1}. b 2 + b i = 1 ∑ m a i M i + b i = 1 ∑ m a i M i − 1 + i = 1 ∑ m j = 1 ∑ m a i a j M i M j − 1 .
Having the above we wish to rid ourselves of monomials that feature both negative and positive powers; i.e. M i M j − 1 M_iM_j^{-1} M i M j − 1 . For this purpose let N N N be any monomial over x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n such that, for all 1 ≤ j ≤ m 1 \le j \le m 1 ≤ j ≤ m , N M j − 1 = x 1 k 1 ⋯ x n k n NM_j^{-1}=x_1^{k_1}\cdots x_n^{k_n} N M j − 1 = x 1 k 1 ⋯ x n k n for some k 1 , … , k n ∈ N ∖ { 0 } k_1,\ldots,k_n \in\mathbb{N}\setminus\{0\} k 1 , … , k n ∈ N ∖ { 0 } . Clearly S ( x 1 , … , x n ) = N R ( x 1 , … , x n ) S(x_1,\ldots,x_n)=NR(x_1,\ldots,x_n) S ( x 1 , … , x n ) = N R ( x 1 , … , x n ) is a polynomial that takes the form:
b 2 N + b ∑ i = 1 m a i N M i + b ∑ i = 1 m a i N M i − 1 + ∑ i = 1 m ∑ j = 1 m a i a j N M i M j − 1 . b^2N+b\sum_{i=1}^{m}a_iNM_i+b\sum_{i=1}^{m}a_iNM_i^{-1}+\sum_{i=1}^{m}\sum_{j=1}^{m}a_i a_jNM_iM_j^{-1}. b 2 N + b i = 1 ∑ m a i N M i + b i = 1 ∑ m a i N M i − 1 + i = 1 ∑ m j = 1 ∑ m a i a j N M i M j − 1 .
Then, S ( x 1 , … , x n ) S(x_1,\ldots,x_n) S ( x 1 , … , x n ) can be rewritten into the compact form ∑ i = 1 m ′ a i ′ N i \sum_{i=1}^{m'}a'_iN_i ∑ i = 1 m ′ a i ′ N i , where each a i ′ ∈ Z a'_i\in\mathbb{Z} a i ′ ∈ Z and N i N_i N i is a monomial of the form x 1 c i , 1 , … , x n c i , n x_1^{c_{i,1}},\ldots,x_n^{c_{i,n}} x 1 c i , 1 , … , x n c i , n , where c i , 1 , … , c i , n ∈ N c_{i,1},\ldots,c_{i,n}\in\mathbb{N} c i , 1 , … , c i , n ∈ N . Now, recalling that S ( x 1 , … , x n ) = N P ( x 1 , … , x n ) ⋅ P ( x 1 − 1 , … , x n − 1 ) S(x_1,\ldots,x_n)=NP(x_1,\ldots,x_n)\cdot P(x_1^{-1},\ldots,x_n^{-1}) S ( x 1 , … , x n ) = N P ( x 1 , … , x n ) ⋅ P ( x 1 − 1 , … , x n − 1 ) , we see that S ( z 1 , … , z n ) = 0 S(z_1,\ldots,z_n)=0 S ( z 1 , … , z n ) = 0 . Additionally, S ( z 1 − 1 , … , z n − 1 ) = 0 S(z_1^{-1},\ldots,z_n^{-1})=0 S ( z 1 − 1 , … , z n − 1 ) = 0 . Thus, the relations T + ( x 1 , … , x n ) T_+(x_1,\ldots,x_n) T + ( x 1 , … , x n ) and T − ( x 1 , … , x n ) T_-(x_1,\ldots,x_n) T − ( x 1 , … , x n ) defined as:
e b L ′ S ( x 1 , … , x n ) ± e − b L ′ S ( x 1 − 1 , … , x n − 1 ) 2 \frac{e^{b'_L}S(x_1,\ldots,x_n)\pm e^{-b'_L}S(x_1^{-1},\ldots,x_n^{-1})}{2} 2 e b L ′ S ( x 1 , … , x n ) ± e − b L ′ S ( x 1 − 1 , … , x n − 1 )
also evaluate to zero at z 1 , … , z n z_1,\ldots,z_n z 1 , … , z n ; it being understood that ± ≡ + \pm\equiv+ ± ≡ + in T + T_+ T + with ± ≡ − \pm\equiv- ± ≡ − in T − T_- T − , and with b L ′ b'_L b L ′ being the L L L -th layer bias vector used by virtual nodes. Peaking inside T ± ( z 1 , … , z n ) T_{\pm}(z_1,\ldots,z_n) T ± ( z 1 , … , z n ) we see:
∑ i = 1 m ′ a i ′ ⋅ e b L ′ N i ( z 1 , … , z n ) ± e − b L ′ N i ( z 1 − 1 , … , z n − 1 ) 2 . \sum_{i=1}^{m'}a'_i\cdot\frac{e^{b'_L}N_i(z_1,\ldots,z_n)\pm e^{-b'_L}N_i(z_1^{-1},\ldots,z_n^{-1})}{2}. i = 1 ∑ m ′ a i ′ ⋅ 2 e b L ′ N i ( z 1 , … , z n ) ± e − b L ′ N i ( z 1 − 1 , … , z n − 1 ) .
Since N i N_i N i are monomials and z j = e s j z_j=e^{s_j} z j = e s j we obtain:
∑ i = 1 m ′ a i ′ ⋅ ( e s 1 ) c i , 1 ⋯ ( e s n ) c i , n ⋅ e b L ′ ± ( e s 1 ) − c i , 1 ⋯ ( e s n ) − c i , n ⋅ e − b L ′ 2 . \sum_{i=1}^{m'}a'_i\cdot\frac{(e^{s_1})^{c_{i,1}}\cdots(e^{s_n})^{c_{i,n}}\cdot e^{b'_L}\pm(e^{s_1})^{-c_{i,1}}\cdots(e^{s_n})^{-c_{i,n}}\cdot e^{-b'_L}}{2}. i = 1 ∑ m ′ a i ′ ⋅ 2 ( e s 1 ) c i , 1 ⋯ ( e s n ) c i , n ⋅ e b L ′ ± ( e s 1 ) − c i , 1 ⋯ ( e s n ) − c i , n ⋅ e − b L ′ .
Recalling that sinh ( x ) = e x − e − x 2 \sinh(x)=\frac{e^x-e^{-x}}{2} sinh ( x ) = 2 e x − e − x and cosh ( x ) = e x + e − x 2 \cosh(x)=\frac{e^x+e^{-x}}{2} cosh ( x ) = 2 e x + e − x we obtain that T − ( z 1 , … , z n ) T_-(z_1,\ldots,z_n) T − ( z 1 , … , z n ) and T + ( z 1 , … , z n ) T_+(z_1,\ldots,z_n) T + ( z 1 , … , z n ) are, respectively:
∑ i = 1 m ′ a i ′ sinh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) and ∑ i = 1 m ′ a i ′ cosh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) . \sum_{i=1}^{m'}a'_i\sinh(s_1c_{i,1}+\cdots+s_nc_{i,n}+b'_L)
\quad\text{and}\quad
\sum_{i=1}^{m'}a'_i\cosh(s_1c_{i,1}+\cdots+s_nc_{i,n}+b'_L). i = 1 ∑ m ′ a i ′ sinh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) and i = 1 ∑ m ′ a i ′ cosh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) .
Noting that s 1 , … , s n ∈ { A L ′ λ ( L − 1 ) ( v ) ∣ v ∈ V } s_1,\ldots,s_n\in\{A'_L\lambda^{(L-1)}(v)\mid v\in V\} s 1 , … , s n ∈ { A L ′ λ ( L − 1 ) ( v ) ∣ v ∈ V } , each expression sinh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) \sinh(s_1c_{i,1}+\cdots+s_nc_{i,n}+b'_L) sinh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) is then computable by a virtual node using sinh as activation. Indeed, taking pointed graphs ( G 1 , v 1 ) , … , ( G n , v n ) (G_1,v_1),\ldots,(G_n,v_n) ( G 1 , v 1 ) , … , ( G n , v n ) such that A L ′ λ ( L − 1 ) ( v j ) = s j A'_L\lambda^{(L-1)}(v_j)=s_j A L ′ λ ( L − 1 ) ( v j ) = s j we have that a virtual node u i u_i u i connected to c i , j c_{i,j} c i , j copies of ( G j , v j ) (G_j,v_j) ( G j , v j ) for all 1 ≤ j ≤ n 1\le j\le n 1 ≤ j ≤ n has λ ( L ) ( u i ) = sinh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) \lambda^{(L)}(u_i)=\sinh(s_1c_{i,1}+\cdots+s_nc_{i,n}+b'_L) λ ( L ) ( u i ) = sinh ( s 1 c i , 1 + ⋯ + s n c i , n + b L ′ ) . Similar observations follow for cosh. The outermost sum can then be treated as the global readout of N \mathcal{N} N over virtual nodes; provided that terms with negative coefficients have been moved to the right hand side of T ± ( z 1 , … , z n ) = 0 T_{\pm}(z_1,\ldots,z_n)=0 T ± ( z 1 , … , z n ) = 0 . 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 T ± ( x 1 , … , x n ) T_{\pm}(x_1,\ldots,x_n) T ± ( x 1 , … , x n ) does not turn out to be the zero function. Notice, first, that R ( x 1 , … , x n ) R(x_1,\ldots,x_n) R ( x 1 , … , x n ) is non-zero. For this let us again look at P ( x 1 , … , x n ) = ∑ i = 1 m a i x 1 d i , 1 ⋯ x n d i , n + b P(x_1,\ldots,x_n)=\sum_{i=1}^{m}a_ix^{d_{i,1}}_1\cdots x^{d_{i,n}}_n+b P ( x 1 , … , x n ) = ∑ i = 1 m a i x 1 d i , 1 ⋯ x n d i , n + b , where a i ∈ Z ∖ { 0 } a_i\in\mathbb{Z}\setminus\{0\} a i ∈ Z ∖ { 0 } , b ∈ Z b\in\mathbb{Z} b ∈ Z and d i , 1 , … , d i , n ∈ N d_{i,1},\ldots,d_{i,n}\in\mathbb{N} d i , 1 , … , d i , n ∈ N not all zero. Let β = max { d i , j ∣ 1 ≤ i ≤ m , 1 ≤ j ≤ n } + 1 \beta=\max\{d_{i,j}\mid1\le i\le m,1\le j\le n\}+1 β = max { d i , j ∣ 1 ≤ i ≤ m , 1 ≤ j ≤ n } + 1 and B i = β 1 d i , 1 + ⋯ + β n d i , n B_i=\beta^1d_{i,1}+\cdots+\beta^nd_{i,n} B i = β 1 d i , 1 + ⋯ + β n d i , n . Then P ( x β 1 , … , x β n ) = ∑ i = 1 m a i x B i + b P(x^{\beta^1},\ldots,x^{\beta^n})=\sum_{i=1}^{m}a_ix^{B_i}+b P ( x β 1 , … , x β n ) = ∑ i = 1 m a i x B i + b is a polynomial, where B i B_i B i captures via a β \beta β -ary encoding the sequence ( d i , 1 , … , d i , n ) (d_{i,1},\ldots,d_{i,n}) ( d i , 1 , … , d i , n ) . Since all degree sequences were taken to be distinct, we have that all B i B_i B i are as well. Thus the polynomial is non-zero. Without loss of generality, let B 1 B_1 B 1 and B m B_m B m be, respectively, the minimum and maximum values amongst B 1 , … , B m B_1,\ldots,B_m B 1 , … , B m . Now, inspecting R ( x β 1 , … , x β n ) R(x^{\beta^1},\ldots,x^{\beta^n}) R ( x β 1 , … , x β n ) we have:
b 2 + b ∑ i = 1 m a i x B i + b ∑ i = 1 m a i x − B i + ∑ i = 1 m ∑ j = 1 m a i a j x B i − B j . b^2+b\sum_{i=1}^{m}a_ix^{B_i}+b\sum_{i=1}^{m}a_ix^{-B_i}+\sum_{i=1}^{m}\sum_{j=1}^{m}a_ia_jx^{B_i-B_j}. b 2 + b i = 1 ∑ m a i x B i + b i = 1 ∑ m a i x − B i + i = 1 ∑ m j = 1 ∑ m a i a j x B i − B j .
Let us first suppose that b = 0 b=0 b = 0 . Then, multiplying by x B m − B 1 x^{B_m-B_1} x B m − B 1 and taking the limit we obtain:
lim x → 0 ∑ i = 1 m ∑ j = 1 m a i a j x B i − B j + B m − B 1 = a 1 a m . \lim_{x\to0}\sum_{i=1}^{m}\sum_{j=1}^{m}a_ia_jx^{B_i-B_j+B_m-B_1}=a_1a_m. x → 0 lim i = 1 ∑ m j = 1 ∑ m a i a j x B i − B j + B m − B 1 = a 1 a m .
Otherwise, when b ≠ 0 b \ne0 b = 0 , we have the following by multiplying by x B m x^{B_m} x B m and taking the limit:
lim x → 0 ( b 2 x B m + b ∑ i = 1 m a i x B i + B m + b ∑ i = 1 m a i x − B i + B m + ∑ i = 1 m ∑ j = 1 m a i a j x B i − B j + B m ) = b a m . \lim_{x\to0}\left(b^2x^{B_m}+b\sum_{i=1}^{m}a_i x^{B_i+B_m}+b\sum_{i=1}^{m}a_i x^{-B_i+B_m}+\sum_{i=1}^{m}\sum_{j=1}^{m}a_i a_j x^{B_i-B_j+B_m}\right)=ba^m. x → 0 lim ( b 2 x B m + b i = 1 ∑ m a i x B i + B m + b i = 1 ∑ m a i x − B i + B m + i = 1 ∑ m j = 1 ∑ m a i a j x B i − B j + B m ) = b a m .
Having both cases we conclude that the expression R ( x 1 , … , x n ) R(x_1,\ldots,x_n) R ( x 1 , … , x n ) is non-zero.
Almost immediately, because of the above, S ( x 1 , … , x n ) = N R ( x 1 , … , x n ) S(x_1,\ldots,x_n)=NR(x_1,\ldots,x_n) S ( x 1 , … , x n ) = N R ( x 1 , … , x n ) is a non-zero polynomial. Indeed, begin by writing R ( x 1 , … , x n ) R(x_1,\ldots,x_n) R ( x 1 , … , x n ) as ∑ i = 1 m ′ a i ′ x 1 d i , 1 ′ ⋯ x n d i , n ′ + b ′ \sum_{i=1}^{m'}a'_i x_1^{d'_{i,1}}\cdots x_n^{d'_{i,n}}+b' ∑ i = 1 m ′ a i ′ x 1 d i , 1 ′ ⋯ x n d i , n ′ + b ′ where a i ′ , b ′ ∈ Z a'_i,b'\in\mathbb{Z} a i ′ , b ′ ∈ Z , d i , 1 , … , d i , n ∈ Z d_{i,1},\ldots,d_{i,n}\in\mathbb{Z} d i , 1 , … , d i , n ∈ Z not all zero and with sequences ( d i , 1 , … , d i , n ) ≠ ( d j , 1 , … , d j , n ) (d_{i,1},\ldots,d_{i,n})\ne(d_{j,1},\ldots,d_{j,n}) ( d i , 1 , … , d i , n ) = ( d j , 1 , … , d j , n ) for i ≠ j i\ne j i = j . But then, multiplying by a common monomial N = x 1 d 0 , 1 ⋯ x n d 0 , n N=x_1^{d_{0,1}}\cdots x_n^{d_{0,n}} N = x 1 d 0 , 1 ⋯ x n d 0 , n cannot result in terms cancelling out. Indeed, ( d i , 1 + d 0 , 1 , … , d i , n + d 0 , n ) = ( d j , 1 + d 0 , 1 , … , d j , n + d 0 , n ) (d_{i,1}+d_{0,1},\ldots,d_{i,n}+d_{0,n})=(d_{j,1}+d_{0,1},\ldots,d_{j,n}+d_{0,n}) ( d i , 1 + d 0 , 1 , … , d i , n + d 0 , n ) = ( d j , 1 + d 0 , 1 , … , d j , n + d 0 , n ) implies ( d i , 1 , … , d i , n ) = ( d j , 1 , … , d j , n ) (d_{i,1},\ldots,d_{i,n})=(d_{j,1},\ldots,d_{j,n}) ( d i , 1 , … , d i , n ) = ( d j , 1 , … , d j , n ) , a contradiction. Thus the polynomial S ( x 1 , … , x n ) S(x_1,\ldots,x_n) S ( x 1 , … , x n ) has at least a single term with a non-zero coefficient making the polynomial itself non-zero.
Lastly, we need to show that e b L ′ S ( x 1 , … , x n ) ± e − b L ′ S ( x 1 − 1 , … , x n − 1 ) e^{b'_L}S(x_1,\ldots,x_n)\pm e^{-b'_L}S(x_1^{-1},\ldots,x_n^{-1}) e b L ′ S ( x 1 , … , x n ) ± e − b L ′ S ( x 1 − 1 , … , x n − 1 ) is non-zero. Clearly, if the above is the case, then the relevant expressions T ± ( x 1 , … , x n ) T_{\pm}(x_1,\ldots,x_n) T ± ( x 1 , … , x n ) are non-zero as well. Inspecting the monomials (with non-zero coefficients) of S ( x 1 , … , x n ) S(x_1,\ldots,x_n) S ( x 1 , … , x n ) and S ( x 1 − 1 , … , x n − 1 ) S(x_1^{-1},\ldots,x_n^{-1}) S ( x 1 − 1 , … , x n − 1 ) we see that they are all distinct (and that there are no constant terms in either of the expressions). Since e b L ′ ≠ 0 e^{b'_L}\ne0 e b L ′ = 0 we have that e b L ′ S ( x 1 , … , x n ) ± e − b L ′ S ( x 1 − 1 , … , x n − 1 ) e^{b'_L}S(x_1,\ldots,x_n)\pm e^{-b'_L}S(x_1^{-1},\ldots,x_n^{-1}) e b L ′ S ( x 1 , … , x n ) ± e − b L ′ S ( x 1 − 1 , … , x n − 1 ) does not cause cancellations leaving the expression non-zero. □
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 ± ∞ \pm\infty ± ∞ 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 A , C < 1 A,C<1 A , C < 1 , and exactly 1 for sinh, cosh and exp when A , C < 0.1 A,C<0.1 A , C < 0.1 (and as long as C A ∉ N \frac{C}{A}\notin\mathbb{N} A C ∈ / N ). This indicates that GNN errors in the float64 setting are due to imprecisions in float64 arithmetic.
Figure 2. Success ratio for GNNs by floating-point precision (panel row), fixed self-weight C C C (panel column), activation (heatmap row), and aggregation-weight A A A (heatmap column). Checkmarks denote success ratio 1; all panels share the same color scale.
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 significand precision; float128 specifies 15 bits for the exponent and 113 bits of significand 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.
Table 1. Float32 results at self-weight C = 0.1 C = 0.1 C = 0.1 and aggregation-weight A = 0.7 A = 0.7 A = 0.7 . A non-finite failure means that at least one final node embedding is NaN, + ∞ +\infty + ∞ , or − ∞ -\infty − ∞ ; these outcomes are combined into one category.
Figure 3 presents the full runs for sigmoid, tanh and sinh activated GNNs with A , C ∈ { 0.1 , 0.2 , … , 1 } A,C\in\{0.1,0.2,\ldots,1\} A , C ∈ { 0.1 , 0.2 , … , 1 } in the 128-bit float setting. Notice that in the case of sigmoid and tanh the success rate is 1 unless C A ∈ N \frac{C}{A}\in\mathbb{N} A C ∈ N .
Figure 3. Success ratio in float128 arithmetic for GNNs with medium self-weight C C C (heatmap row), medium aggregation-weight A A A (heatmap column), and the sigmoid, tanh, and sinh activations (panels). Checkmarks denote success ratio 1; all panels share the same color scale.