TL;DR
This comprehensive survey traces the journey of the Weisfeiler-Leman (WL) graph isomorphism heuristic from classical graph theory to its role as the theoretical foundation of modern graph machine learning. It outlines how the WL hierarchy determines the expressive limits of Graph Neural Networks (GNNs), explores higher-order neural extensions, and bridges the gap between discrete graph algorithms and continuous equivariant architectures.
What Problem Does This Paper Address?
Machine learning on graphs requires generating vectorial representations (embeddings) of nodes or entire graphs that can respect the structural symmetries of the data. Specifically, graph embeddings must be invariant to node permutations (the order in which nodes are listed shouldn't change the graph's representation), while node embeddings must be equivariant (reordering the input nodes reorders the output features accordingly).
While message-passing Graph Neural Networks (GNNs) have become the dominant tool for these tasks, they possess a fundamental flaw: they are blind to certain structural properties, such as counting triangles or distinguishing complex cyclic patterns. This paper provides a unified theoretical framework to understand these limitations, using the classical Weisfeiler-Leman (WL) graph isomorphism test as a yardstick to measure and systematically improve the expressive power of graph-based machine learning models.
Methods
The paper structures its overview around the Weisfeiler-Leman paradigm, tracing its evolution through three major machine learning methodologies:
- The 1-WL Algorithm (Color Refinement): A classical heuristic that iteratively updates a node's "color" (label) based on the multiset of its neighbors' colors. If two graphs end up with different color histograms, they are guaranteed to be non-isomorphic.
- Graph Kernels: Early non-neural approaches, such as the Weisfeiler-Lehman subtree kernel, which vectorize graphs by counting the frequencies of these discrete colors over multiple iterations, computing similarities via inner products or optimal assignments.
- Graph Neural Networks (Neural 1-WL): Modern message-passing GNNs replace discrete colors with continuous feature vectors and use neural networks to aggregate neighborhood information. The authors highlight architectures like the Graph Isomorphism Network (GIN), which use injective aggregation functions to exactly match the expressive power of the 1-WL test.
- Higher-Order and Equivariant Graph Networks ($k$-WL): To break the expressivity ceiling of 1-WL, the paper explores $k$-dimensional WL algorithms ($k$-WL) that color tuples of nodes rather than individual nodes. This inspires $k$-GNNs and Equivariant Graph Networks (EGNs) that utilize higher-order tensors and tensor operations (like generalized matrix products) to achieve strictly greater expressive power.
Datasets
As a comprehensive survey paper, this work does not introduce a new dataset. Instead, it reviews literature evaluated on standard graph learning benchmarks, explicitly highlighting:
- TUDataset: A widely used collection of benchmark datasets for graph classification and regression, spanning small molecules, proteins, and social networks.
- Open Graph Benchmark (OGB): A modern, large-scale benchmark suite designed to facilitate scalable and robust graph machine learning research across node, edge, and graph-level tasks.
Key Insights and Ideas
- The Expressivity Ceiling: A foundational insight of modern graph ML is that no standard message-passing GNN can be more powerful than the 1-WL test at distinguishing non-isomorphic graphs. GNNs inherit all the structural blindness of 1-WL (e.g., inability to count triangles).
- The $k$-WL Hierarchy: The $k$-WL test forms a strict hierarchy where $(k+1)$-WL is strictly more powerful than $k$-WL for $k \geq 2$. This provides a clear mathematical blueprint for engineering more powerful, higher-order GNNs.
- The Tensor-Equivariance Connection: Equivariant Graph Networks (EGNs) operating on $k$-order tensors can precisely mirror the expressive power of the $k$-WL variants, establishing a deep link between geometric deep learning and discrete combinatorics.
- Expressivity Dictates Generalization: The paper highlights recent work connecting 1-WL expressivity to the Vapnik-Chervonenkis (VC) dimension of GNNs, proving that a model's structural expressivity tightly bounds its ability to generalize to unseen graphs.
Key Results
The paper synthesizes several landmark theoretical results from the literature:
- Theorem 1 & 2 (GNN Bound): Proves that while standard GNNs are upper-bounded by 1-WL, a GNN architecture can exactly match 1-WL's discriminative power if its neighborhood aggregation and merging functions are proven to be injective.
- Theorem 8 (EGN Equivalence): Demonstrates that the graph separation power of $k$-order Oblivious Equivariant Graph Networks (OEGNs) matches the Oblivious $k$-WL ($k$-OWL), and Folklore Equivariant Graph Networks (FEGNs) match the Folklore $k$-WL ($k$-FWL).
- Computational Complexity Trade-off: While 1-WL stable coloring runs in almost linear time ($O(n + m \log n)$), the more expressive $k$-FWL requires $O(k^2 n^{k+1} \log n)$ time, illustrating the severe computational cost of achieving higher expressivity.
Limitations and Future Work
The authors identify several critical open challenges for the field:
- The Scalability-Expressivity Trade-off: Higher-order $k$-WL architectures suffer from exponential complexity in terms of $k$, making them impractical for large real-world graphs. Designing provably powerful yet scalable architectures remains an open challenge.
- The Optimization Gap: Current expressivity proofs are purely existential—they prove a powerful weight configuration exists, but offer no guarantees that standard first-order optimization methods (like SGD or Adam) can actually discover it.
- Continuous Attributes: The classical WL paradigm is fundamentally discrete. How the WL framework behaves when graphs possess high-dimensional, continuous real-valued node and edge attributes is still not fully understood.
- Beyond Binary Isomorphism: 1-WL only answers a binary question: are two graphs isomorphic or not? Future research must leverage the WL paradigm to define more fine-grained, continuous metrics of structural similarity.
Summary updated