Why is the expressive power of standard message-passing GNNs bounded by the 1-Weisfeiler–Lehman (1-WL) graph isomorphism test, what is an explicit pair of non-isomorphic graphs (with identical node features) that GCNs cannot distinguish, and what architectural changes go beyond 1-WL?

Deep learning, Graph neural networks
Level L5 Expert. Length Long. Nature Th+Mat Both.

What's being asked

Whether you can prove the 1-WL upper bound by induction on layers, give a concrete counterexample pair and explain both GIN-style multiset injectivity and beyond-1-WL methods.

Key idea

At each layer l, a standard MPNN updates node v using only its own state and the multiset of its neighbours’ states—the exact same local information used by 1-WL colour refinement. By induction on l, if 1-WL assigns two nodes identical colours at every step, any MPNN gives them identical embeddings.

Steps

  1. Describe the 1-WL colour-refinement test: start with cv(0) equal to node v’s initial label, then update cv(l+1)=HASH⁡(cv(l),{ ⁣{cu(l):u∈N(v)} ⁣}) using an injective hash over multisets { ⁣{⋅} ⁣}. Two graphs pass (are indistinguishable by 1-WL) if their colour histograms match at convergence.
  2. Prove MPNN ≤ 1-WL by induction on layer l: assume cv(l)=cv′(l)  ⟹  hv(l)=hv′(l) (true at l=0 since initial features match). If cv(l+1)=cv′(l+1), injectivity of HASH⁡ implies cv(l)=cv′(l) and equal neighbour colour multisets { ⁣{cu(l)} ⁣}={ ⁣{cu′(l)} ⁣}. By the induction hypothesis, node embeddings and neighbour embedding multisets match too, so any deterministic MPNN update ϕ(hv(l),⨁u∈N(v)ψ(hv(l),hu(l))) outputs hv(l+1)=hv′(l+1).
  3. Give an explicit non-isomorphic pair that fails 1-WL (and all GCNs): a single 6-cycle C6 versus two disjoint triangles C3⊔C3, both with 6 nodes and identical initial features (say all 1s). Every node in both graphs has degree 2 and an identical infinite 2-regular unfolding tree, so 1-WL and every MPNN assign all 12 nodes the same embedding at every depth, giving identical graph readouts.
  4. Contrast aggregators and beyond-1-WL fixes: mean and max pooling are strictly weaker than 1-WL (failing to distinguish multisets with equal proportions or identical maxima, such as {1,1} vs {1}), whereas Graph Isomorphism Networks (GIN) use sum aggregation + MLP to reach full 1-WL power. To surpass 1-WL (detecting triangles/cycles), use higher-order k-WL / k-GNNs over k-tuples, subgraph-based GNNs (ego-networks) or structural/positional encodings (such as random-walk landing probabilities or Laplacian eigenvectors).

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Deep learning: For a positive pair (x,y)∼p(x,y) and K−1 independent negative samples y2,…,yK∼p(y) with critic score f(x,y), how do you prove that minimising the InfoNCE loss LK=−E[log⁡ef(x,y)ef(x,y)+∑j=2Kef(x,yj)] maximises a lower bound on the mutual information I(X;Y)≥log⁡K−LK, and what is the optimal critic f∗(x,y)?
Next in Deep learning: none