Expressive Power of Graph Neural Networks
Relate message passing to the 1-WL refinement test, work through a graph pair it cannot separate, and explain why injective aggregation matters.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 3
- Reading time
- 2 min
In this article3 chapters
Compare the information available after each round
A message-passing layer updates the state \(h_v^{(\ell)}\) of vertex \(v\) from its old state and a permutation-invariant summary of the neighbors \(N(v)\). One form is
\[ h_v^{(\ell+1)}= \phi_\ell\!\left(h_v^{(\ell)}, \sum_{u\in N(v)}\psi_\ell(h_u^{(\ell)})\right). \]
One-dimensional Weisfeiler–Leman, abbreviated 1-WL, refines colors by assigning a new color to each pair of a current color and a multiset of neighbor colors. Start from the same input labels in both procedures. Inductively, vertices with the same new color had equal old colors and equal neighbor color multisets, hence get equal neural states. A permutation-invariant readout cannot separate graphs with equal color histograms at every round under these assumptions.
Graph message passing shows how sum and mean preserve different neighborhood facts. The binary cycle space supplies an explicit graph invariant that can distinguish one six-cycle from two triangles.
A cycle and two triangles share every color histogram
Compare a six-cycle with a disjoint union of two triangles. Both have six vertices of degree two. From a common initial label, every vertex has the same neighbor multiset in every round. Connectivity differs but the one-vertex color process sees no difference. Additional input features can change this example. Higher-order refinement reasons about tuples of vertices and can record relationships missed at the level of single vertices.
Injective aggregation can match the refinement
Mean aggregation identifies the multiset with one copy of a feature with the multiset containing two identical copies. A sum can preserve this count. In the countable-label and bounded-multiset setting, an appropriate feature map can make that sum injective on multisets. With sufficiently expressive updates and readout, a graph isomorphism network can match the distinguishing power of 1-WL in the theoretical setting. Distributed graph queries can explicitly enumerate triangles. Equivariant networks show a complementary design question about spatial transformations of the input.[1][2]