cs.DCJul 1, 2026

Scaling Weisfeiler-Leman Expressiveness Analysis to Massive Graphs with GPUs

Authors: Filippo BiondiMirco TribastoneMax Tschaikowski

Organizations: IMT Lucca, Italy · Sapienza University Rome, Italy

Abstract

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.

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)G3-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 29, 2026cs.LG

Scaling Higher-Order Graph Learning with Maximal Clique Complexes

Graph neural networks (GNNs) are limited to modeling pairwise interactions, while higher-order models based on cell complexes achieve greater expressivity but often suffer from poor scalability. We introduce simplified and factored cellular Weisfeiler Leman tests (sCWL and fCWL), which preserve the expressivity of the CWL test while improving computational efficiency. We further introduce the maximal clique complex, enabling scalable CWNs with reduced time and memory complexity while retaining strong empirical performance. To avoid explicit clique enumeration, we propose CliqueWalk, a biased random walk that samples maximal cliques and scales linearly with graph size. These contributions yield a scalable topological learning framework for higher-order graph representation.
Antoine Vialle, Aref Einizade, Fragkiskos D. Malliaros +1
May 22, 2026cs.LG

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

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
Snir Hordan, Nadav Dym, Tim Seppelt