cs.LGMay 22, 2026

Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Them

Authors: Snir Hordan, Nadav Dym, Tim Seppelt

Organizations: Faculty of Mathematics Technion - Israel Institute of Technology · IT University of Copenhagen

Abstract

Graphs with a simple spectrum admit cubic-time isomorphism testing, yet we prove that for every natural number kk, the kk-Weisfeiler-Leman (kk-WL) test cannot distinguish all non-isomorphic graphs with a simple spectrum. As the WL hierarchy upper-bounds the distinguishing power of widely-used Graph Neural Networks (GNNs), this incompleteness applies to all such GNNs, ruling out completeness for every kk-WL-aligned GNN family. To close this gap, we introduce PRiSM (Partition, Refine, Solve, Match), the first provably complete canonicalization of simple-spectrum eigendecompositions. PRiSM obtains the completeness guarantee that prior canonicalizations provably lack, and resolves the open problem of achieving complete expressivity on simple-spectrum graphs. When composed with DeepSets or a Transformer, PRiSM achieves universal approximation on simple-spectrum graphs, justifying the use of canonicalized Laplacian positional encodings. Empirically, PRiSM performs comparably to or outperforms existing spectral canonicalizations on graph regression, classification, and expressivity

Explore similar work

Sep 14, 2026cs.SI

On the Expressive Power of Implicit Line-Graph Higher-Order Weisfeiler--Leman

Whitney's theorem allows isomorphism testing for connected simple graphs, apart from K3K_3 and K1,3K_{1,3}, to be formulated as distinguishing their line graphs. However, the relation between fixed-dimensional Weisfeiler--Leman (WL) expressivity on line graphs and on their roots remains unresolved. We study this relation through Implicit Line-Graph WL (ILG-kk-WL), which is exactly kk-WL on L(G)L(G), executed over the edges of GG with line-graph relations derived from endpoint incidence and without explicitly constructing L(G)L(G). On the Whitney-general class, the relation between root-domain and line-graph WL depends on kk. For k=1,2k=1,2, ILG-kk-WL adds no distinguishing power beyond root-domain 11-WL and misses some pairs that 11-WL separates. For k=3k=3, we prove the backward containment L(G)≡3-WLL(H)⇒G≡3-WLHL(G)\equiv_{3\text{-WL}}L(H)\Rightarrow G\equiv_{3\text{-WL}}H. Strongly regular witness pairs, including the Shrikhande/rook pair, show that ILG-33-WL is strictly more expressive than 33-WL. The backward containment also extends to disconnected graphs with no isolated vertices when every connected component is Whitney-general. Deterministic ILG-33-WL separates all three substructure-counting witness pairs, all 105105 pairs in SR25, and 359359 of 400400 BREC pairs. An untrained dense ILG-33-GNN gives the same pairwise verdicts on these evaluations.
Fan Yang
May 7, 2026cs.LG

Full-Spectrum Graph Neural Networks: Expressive and Scalable

It is well established that spectral graph neural networks (GNNs) can universally approximate node signals; however, their expressive power remains bounded by the 1-dimensional Weisfeiler-Lehman test, which is mirrored in their lack of universality for higher-order signals. To go beyond this bound, we propose the Full-Spectrum GNNs (FSpecGNNs), a second-order generalization of classical spectral GNNs. FSpecGNN advances spectral filtering from two perspectives: (1) it lifts signals from the node domain to the node-pair domain; and (2) it extends the univariate spectral filter over eigenvalues to a bivariate filter over eigenvalue pairs. We show that classical spectral GNNs arise as a diagonal special case of FSpecGNNs, and prove that FSpecGNNs can be at most as expressive as Local 2-GNN while universally approximating node-pair signals, the latter being particularly beneficial for heterophilic graph learning. Moreover, FSpecGNN admits scalable implementations that avoid explicit node-pair-level computations; combined with a low-rank approximation that reduces full-spectrum convolution to a combination of polynomial spectral filters, it enables learning on large graphs. Empirically, FSpecGNN validates the predicted expressivity and delivers strong performance on heterophilic benchmarks.
Xiaohan Wang, Deyu Bo, Longlong Li +1
Jul 1, 2026cs.DC

Scaling Weisfeiler-Leman Expressiveness Analysis to Massive Graphs with GPUs

The stable coloring of the Weisfeiler-Leman (1-WL) test is a cornerstone of Graph Neural Networks because it provides an upper bound to the expressive power of message-passing architectures. Unfortunately, computing it presents two fundamental bottlenecks. First, classic algorithms are inherently sequential and cannot exploit modern massively parallel hardware. Second, these are \emph{global} algorithms, i.e., they require availability in memory of the full graph, severely limiting applicability to real-world instances. We leverage a linear-algebraic interpretation of 1-WL stable coloring and introduce two key contributions: (i)~a randomized refinement algorithm with tight probabilistic guarantees and (ii)~a correctness-preserving batching scheme that decomposes the graph into independently processable subgraphs while provably returning a stable coloring of the original graph. This approach maps directly to GPU-efficient primitives. In numerical experiments, our CUDA implementation delivers speedups up to two orders of magnitude over classical CPU-based partition refinement and, for the first time, successfully computes stable colorings on web-scale graphs with over 30 billion edges, where CPU baselines time out or fail.
Filippo Biondi, Mirco Tribastone, Max Tschaikowski