NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

How Hard Is It for Message-Passing GNNs to Simulate One Step of the Weisfeiler-Lehman Test?

Guanyu Cui, Yuhe Guo, Zhewei Wei, Hsin-Hao SuNeurIPS 2026

TL;DR

Textbook Graph Neural Network (GNN) theory says that standard message-passing GNNs are just as expressive as the classic Weisfeiler-Lehman (WL) graph isomorphism test. However, when you enforce realistic limits on message size and numerical precision, simulating even a single step of that test hides a tough global coordination problem that forces deterministic networks to be surprisingly deep or wide. The escape hatch? Injecting just a tiny bit of randomness and tolerating a minuscule chance of error lets a shallow, one-layer GNN get the job done effortlessly.

What Problem Does This Paper Address?

If you work anywhere near geometric deep learning, you have probably heard the foundational rule: Message-Passing GNNs (MPGNNs) match the expressive power of the 1-dimensional Weisfeiler-Lehman (WL) test.

In one step of the WL test, every node looks at its current label ("color") and the multiset of its neighbors' colors, then hashes that local combination into a brand-new color. Because gathering neighbor info is purely local, it seems obvious that a 1-layer GNN could simulate one WL step.

Here is the catch: classic proofs assume infinite precision or unlimited message sizes, and they gloss over a subtle requirement. Two nodes anywhere in the graph must receive the exact same new color if and only if their neighborhood color combinations match, and all new colors must fit into a fixed palette of size $C$. If your GNN is oblivious—meaning its weights are fixed before seeing the input graph, just like in standard inductive learning—preventing two distant, unrelated neighborhoods from accidentally colliding into the same color becomes a global coordination problem. The authors ask: how much depth ($d$), message width ($w$), numerical precision ($p$), and randomness ($R$) does an MPGNN actually need to pull off one WL step?

Methods

Because this is a pure theory paper, the authors trade GPUs for mathematical reductions:

  • Communication Complexity Lower Bounds: To prove what GNNs cannot do cheaply, the authors wire classic communication games (like checking if two distant bit-strings are equal, known as Equality and ExistsEqual) into adversarial families of graphs. If a shallow, low-bandwidth GNN could run one WL step without collisions, two separated players could use it to solve Equality faster than information theory allows.
  • Distributed Computing & Hashing Upper Bounds: To show what GNNs can do, the authors borrow from distributed computing (specifically the CONGEST model). For exact deterministic upper bounds, they introduce a slightly stronger rooted, port-aware MPGNN—where one node carries a "root" flag and nodes can tell their incident edges apart—to build spanning trees and sort colors globally. For randomized GNNs, they apply almost universal hashing to compress neighborhood multisets on the fly.
  • Inductive vs. Transductive Framing: They cleanly separate oblivious simulation (fixed weights before seeing the graph) from instance-dependent simulation (tailoring weights to a specific target graph, and measuring how many local communication rounds it takes to adapt those weights).

Datasets

Not discussed in the paper. (This is a theoretical investigation; all bounds are proven mathematically over constructed families of unattributed graphs.)

Key Insights and Ideas

  • A local rule hides a global bottleneck: Computing a node's neighborhood summary takes one hop, but mapping those summaries into a bounded color space $[C]$ without collisions requires knowing which types actually appear across the entire graph.
  • Randomness is a massive shortcut (if you have enough colors): Deterministic and zero-error GNNs get crushed by worst-case global communication requirements. However, if you allow a tiny failure probability $p_f$ and have a large enough color palette, universal hashing lets nodes pick collision-free colors locally in a single layer—no global coordination required.
  • Color palette size dictates architecture: Even with randomness, if your output color palette is squeezed down to the bare minimum ($C = \Theta(n)$ for $n$ nodes), the birthday paradox kicks in. Collisions become unavoidable locally, and a non-trivial depth-versus-bandwidth trade-off roars right back.
  • Expressive existence $\neq$ easy optimization: If an oracle hands you custom weights for one specific graph, a 1-layer GNN can easily simulate a WL step. Yet finding those weights via local, decentralized adaptation (like distributed forward-backward passes) is just as communication-heavy as running a deep oblivious GNN from scratch.

Key Results

Let $n$ be nodes, $m$ edges, $D$ graph diameter, $d$ layers, $wp$ bits per edge per layer (bandwidth), $C$ color palette size, $R$ random bits, and $p_f$ failure probability.

Table 1: Summary of results. Here n and m denote the numbers of nodes and edges, respectively; D denotes the diameter; d, w, and p denote the depth, message width, and message precision of an MPGNN, respectively, as defined in Section 2.2; R denotes the number of random bits used; C denotes the size of the color set, as defined in Section 2.4; and pf denotes the failure probability. The parameter c0 ≥2 depends on pf. In our upper-bound constructions, we focus on communication resources (such as d, w and p), and assume sufficiently large local states and sufficiently expressive local functions, including in the rooted, port-aware model.
  • Oblivious Deterministic / Zero-Error: Any standard anonymous MPGNN needs depth $d = \Omega\left(D + \frac{m}{wp}\right)$ in the worst case when $\log C = o(m)$. A rooted, port-aware MPGNN nearly matches this with $d = O\left(D + \frac{m \log C}{wp}\right)$.
  • Oblivious Bounded-Error (Large Color Space): When $C \ge \lceil \frac{3n^2}{2p_f} \rceil$, a standard anonymous MPGNN needs just $d = 1$ layer and bandwidth $wp = \Theta(\log C)$, using $R = \Theta\left(\log \frac{n \log C}{p_f}\right)$ random bits (improving prior $O(\log^2 n)$ seed requirements down to $\Theta(\log n)$ in standard polynomial regimes). The authors also prove a matching lower bound showing this logarithmic randomness is strictly necessary.
  • Oblivious Bounded-Error (Small Color Space): Shrinking the palette to $C = \Theta(n)$ breaks constant-depth logarithmic-bandwidth models, forcing $d = \Omega\left(D + \min\{\log^* n, \frac{n}{wp}\}\right)$.
  • Instance-Dependent: Ideal parameters always exist at $d = 1$ and $wp = \Theta(\log n)$. However, finding them via $r$ decentralized graph-local adaptation rounds requires $r = \Omega\left(\frac{D}{d} + \frac{m}{dwp}\right)$.

Limitations and Future Work

  • Model gap in upper bounds: Several upper bounds rely on the stronger rooted, port-aware GNN relaxation; whether fully anonymous, unordered-neighborhood GNNs can achieve matching deterministic upper bounds remains an open question.
  • Unbounded local compute: To isolate communication bottlenecks, the upper bounds assume nodes have unlimited local memory and arbitrarily expressive update functions (capable of exact sorting and hashing), rather than standard finite-width ReLU MLPs.
  • Worst-case graphs & missing middle: Lower bounds rely on adversarial graph constructions rather than average-case, real-world graph distributions, and the randomized color regime strictly between $C = \Theta(n)$ and $C = \Theta(n^2/p_f)$ isn't fully mapped out yet.
  • Higher-order GNNs: Extending this communication-complexity lens to $k$-WL and higher-order GNNs over vertex tuples is left for future work.

Summary updated

BibTeX
@inproceedings{cui2026how,
  author = {Guanyu Cui and Yuhe Guo and Zhewei Wei and Hsin-Hao Su},
  title = {{How Hard Is It for Message-Passing GNNs to Simulate One Step of the Weisfeiler-Lehman Test?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ZHXIlyKr8l},
}
Figure