3.3 Injective-Multiset Matching of 1-WL (Xu et al. 2019 & Grohe 2021)
We separate the Xu et al. (2019) framework into two clean formal layers: (i) the abstract theorem that any MPNN with injective aggregation, combination, and readout matches 1-WL on all finite graphs, and (ii) the sum-aggregation representation theorems over countable feature spaces (which avoid needing a full universal approximation theorem when \(\varphi \) is an arbitrary function, and pair cleanly with UAT once neural approximation is added).
Let \(N\) be a \(d\)-layer MPNN whose initial encoding \(\operatorname {init} : L \to \alpha _0\), every layer’s aggregation \(\operatorname {agg}^{(k)}\) and combination \(\operatorname {comb}^{(k)}\), and graph-level readout \(\operatorname {readout}\) are injective (on the domains reached on finite graphs). Then:
For all finite \(L\)-labelled graphs \(G, H\) and \(v \in V(G), w \in V(H)\), \(\zeta ^{(d)}_N(G, v) = \zeta ^{(d)}_N(H, w) \iff \operatorname {cr}^{(d)}(G, v) = \operatorname {cr}^{(d)}(H, w)\).
For all finite \(L\)-labelled graphs \(G, H\), \(N(G) = N(H) \iff G \equiv _{\mathrm{WL}}^{(d)} H\).
In particular, if \(d \ge \max (|V(G)|, |V(H)|)\), then \(N(G) = N(H) \iff G \equiv _{\mathrm{WL}} H\).
(Xu et al., arXiv:1810.00826, Theorem 3 / theorem:condition.)
Induct on \(d\) using injectivity of \(\operatorname {init}\), \(\operatorname {agg}^{(k)}\), and \(\operatorname {comb}^{(k)}\) to establish \(\zeta ^{(d)}_N(G, v) = \zeta ^{(d)}_N(H, w) \iff \operatorname {cr}^{(d)}(G, v) = \operatorname {cr}^{(d)}(H, w)\). Graph-level equivalence then follows from injectivity of \(\operatorname {readout}\), and part (3) follows from Theorem 1.17.
Let \(\mathcal{X}\) be a countable type and \(N \in \mathbb {N}\) a cardinality bound. Then there exists a function \(f : \mathcal{X} \to \mathbb {R}\) such that the sum map \(M \mapsto \sum _{x \in M} f(x)\) is injective on all multisets \(M \in \mathcal{M}_{\mathrm{fin}}(\mathcal{X})\) of cardinality \(|M| \le N\). Consequently, every function \(g\) on multisets of size at most \(N\) factors as \(g(M) = \phi \! \bigl(\sum _{x \in M} f(x)\bigr)\) for some \(\phi : \mathbb {R}\to Y\). (Xu et al., arXiv:1810.00826, Lemma 5 / theorem:sum; Grohe, arXiv:2104.14624, Lemma 8.5 / lem:sum.)
Since \(\mathcal{X}\) is countable, choose an injection \(Z : \mathcal{X} \hookrightarrow \mathbb {N}\) and set \(f(x) := (N + 1)^{-Z(x)}\) (or for finite \(X\), base-\((N+1)\) digits). By uniqueness of base-\((N+1)\) expansions, distinct multisets of size at most \(N\) yield distinct sums.
Let \(\mathcal{X}\) be a countable type and \(N \in \mathbb {N}\). There exists \(f : \mathcal{X} \to \mathbb {R}\) such that for every irrational \(\varepsilon \in \mathbb {R}\setminus \mathbb {Q}\), the map
is injective on \(\mathcal{X} \times \{ M \in \mathcal{M}_{\mathrm{fin}}(\mathcal{X}) \mid |M| \le N\} \). (Xu et al., arXiv:1810.00826, Corollary 6 / lemma:gin-wl.)
Take \(f(x) = (N+1)^{-Z(x)} \in \mathbb {Q}\) from Lemma 3.7. If \((1 + \varepsilon ) f(c) + \sum _{x \in M} f(x) = (1 + \varepsilon ) f(c') + \sum _{x \in M'} f(x)\) with \(\varepsilon \notin \mathbb {Q}\), then \(\varepsilon (f(c) - f(c')) \in \mathbb {Q}\), forcing \(f(c) = f(c')\) (hence \(c = c'\)) and \(\sum _{x \in M} f(x) = \sum _{x \in M'} f(x)\) (hence \(M = M'\)).
Let \(n \in \mathbb {N}\) and let \(L\) be a finite label space. There exists a recurrent sum-aggregation MPNN \(R\) (with real-valued features) such that for all \(t \le n\), all \(L\)-labelled graphs \(G, H\) of order at most \(n\), and all \(v \in V(G), w \in V(H)\),
Consequently, with an injective multiset readout, \(R\) distinguishes every pair of \(1\)-WL-distinguishable graphs of order at most \(n\) in \(n\) iterations. (Grohe, arXiv:2104.14624, Theorem 8.4 / theo:gnn-lower and Corollary 8.6 / cor:lower1.)
Since \(L\) is finite and \(|V(G)| \le n\), the set of reachable colours across all graphs of order at most \(n\) up to round \(n\) is finite. Apply Lemma 3.7 inductively across rounds \(0, \dots , n\) to construct an injective encoding of pairs \((c, M)\) into \(\mathbb {R}\) using sum aggregation \((c, M) \mapsto c + 2 \sum _{x \in M} x\) (where \(c\) is recovered as the unique odd-multiplicity contribution), then approximate the resulting continuous map on a compact domain if restricting to 2-layer MLPs.