Introduction: The Ubiquity of Graphs
Graph-structured data is foundational to numerous domains, ranging from social networks and recommendation systems to molecular biology and knowledge representation. Unlike grid-like data (images) or sequences (text), graphs are non-regular and complex. To process this information effectively in machine learning, we must transform these structures into vectorial representations, or embeddings, while respecting a fundamental property: permutation invariance. A graph's identity and properties should remain unchanged regardless of how its nodes are ordered in a list.
The central challenge in graph representation learning is expressivity. If a model cannot distinguish between two structurally distinct graphs, it possesses a "blind spot" that limits its predictive power. This paper surveys how the Weisfeiler-Leman (WL) algorithm—a classic tool from discrete mathematics—has become the theoretical yardstick for measuring and improving the expressivity of modern Graph Neural Networks (GNNs).
The Weisfeiler-Leman Framework
The survey categorizes the evolution of graph learning through three main paradigms rooted in the WL algorithm.
1-WL and Color Refinement
The 1-WL algorithm is a discrete heuristic for the graph isomorphism problem. It works through "color refinement": nodes are iteratively assigned labels (colors) based on the multiset of their neighbors' labels. If two graphs produce different histograms of these final colors, they are guaranteed to be non-isomorphic.
From Kernels to Neural Networks
Before the rise of deep learning, the WL Subtree Kernel was the state-of-the-art method for graph classification. It measured similarity by counting shared discrete color patterns. The field experienced a breakthrough with the realization that standard message-passing GNNs are essentially differentiable, continuous versions of 1-WL. Instead of discrete hashing, GNNs use neural layers to aggregate feature vectors from neighborhoods.
Higher-Order WL ($k$-WL)
Despite its utility, 1-WL has known limitations; for instance, it cannot count simple structures like triangles. To address this, the authors discuss the $k$-WL hierarchy, which operates on tuples of $k$ nodes. This theoretical framework has birthed "Higher-order GNNs" that are provably more expressive than standard message-passing architectures.
Key Theoretical Insights
The integration of WL theory into machine learning has yielded several critical insights:
- The Expressivity Ceiling: A standard message-passing GNN is at most as powerful as the 1-WL test. The Graph Isomorphism Network (GIN) was specifically designed to reach this maximal 1-WL expressivity.
- The Hierarchy of Power: There exists a strict hierarchy where $1\text{-WL} \approx 2\text{-WL} < 3\text{-WL} < \dots < n\text{-WL}$. This provides a formal roadmap for developing more powerful models.
- The Scalability-Expressivity Trade-off: While $k$-WL models are more powerful, their computational complexity grows polynomially ($O(n^{k+1})$), making them difficult to scale to large real-world datasets like those found in the Open Graph Benchmark (OGB).
Challenges and Future Directions
While the WL framework provides a robust theoretical foundation, several hurdles remain. Current theory often focuses on the existence of a solution rather than the learnability via standard optimization like SGD. Furthermore, as GNNs grow deeper to capture more global structure, they face issues like over-smoothing, where node features become indistinguishable, and bottlenecks, where information is lost during compression.
Future research aims to move beyond binary isomorphism to define more nuanced, fine-grained notions of graph similarity. Additionally, there is a significant push to integrate domain-specific expert knowledge—such as geometric constraints in chemistry—into the rigid structural framework of the WL hierarchy.
Summary updated