Introduction
The Weisfeiler-Leman ($k$-WL) algorithm is a cornerstone of combinatorial graph theory and serves as the primary benchmark for the expressive power of Graph Neural Networks (GNNs). While it is well-established that the $k$-WL hierarchy can distinguish non-isomorphic graphs, the temporal complexity—specifically the number of iterations required to reach stabilization—has remained a significant theoretical gap. This paper provides a breakthrough by establishing the first non-trivial upper bounds and significantly tighter lower bounds for the iteration number of $k$-WL.
The Stabilization Problem
For a graph with $n$ vertices, the $k$-WL algorithm iteratively refines the coloring of $k$-tuples of vertices. Stabilization occurs when further iterations no longer change the partition of these tuples into color classes. Historically, the "trivial" upper bound for this process was $n^k - 1$ iterations, assuming at least one new color class is created per round. While the $k=2$ case was known to stabilize in $O(n \log n)$ rounds, the bounds for $k \ge 3$ lacked precision, leaving a massive discrepancy between the trivial $n^k$ limit and known lower bounds.
Methods: Algebraic Tensors and Pebble Games
The authors employ two distinct mathematical strategies to close this gap:
- Algebraic Tensors (Upper Bounds): To prove the new $O(kn^{k-1} \log n)$ upper bound, the researchers generalized an algebraic approach. They associated $k$-WL colorings with matrix algebras over complex numbers. By defining a specific tensor multiplication that simulates a round of $k$-WL, they used representation theory to bound the sequence of generated algebras. This proves that $k$-WL effectively "parallelizes" its work, splitting multiple color classes simultaneously to accelerate convergence.
- Pebble Games and Layered Expanders (Lower Bounds): To establish a tighter lower bound of $n^{\Omega(k)}$, the authors utilized the $k$-pebble game, a game-theoretic characterization of $k$-WL. They constructed "layered expanders" and transformed them into relational structures based on XOR-constraints (linear equations over $\mathbb{F}_2$). These structures force the algorithm to run for a number of rounds nearly proportional to its state-space complexity before identifying global differences.
Key Insights and Results
The Dimension-Depth Tradeoff
A fascinating finding of this research is the ability to trade algorithm complexity for speed. The authors show that $(1.5k)$-WL can simulate $k$-WL in significantly fewer iterations ($n^{k/2}$ vs $n^k$). This suggests that in computational applications, increasing the "width" (dimension $k$) can drastically reduce the necessary "depth" (iterations).
Logical Complexity
The iteration number is directly tied to the quantifier rank—the nesting depth of "exists" and "for all" statements—in first-order logic with counting. These results provide new bounds on the complexity of descriptions required to distinguish mathematical structures, showing that the algorithm's depth is fundamentally linked to its dimension.
Summary of Bounds
- New Upper Bound: For $k \ge 3$, $k$-WL stabilizes in at most $O(kn^{k-1} \log n)$ rounds.
- New Lower Bound: There exist structures where $k$-WL requires at least $n^{\Omega(k)}$ rounds to stabilize, a significant improvement over the previous $n^{\Omega(k / \log k)}$ bound.
Implications and Future Work
While these results provide a definitive linear-in-$k$ exponent for the iteration number, they also highlight practical limitations for GNNs. To truly capture the power of $k$-WL, a GNN might need to be polynomially deep relative to the number of vertices, which is often impractical in current architectures.
Furthermore, a distinction remains between relational structures and simple graphs. The $n^{\Omega(k)}$ lower bound is proven for relational structures; whether $k$-WL on simple graphs (arity 2) can actually take $n^{\Omega(k)}$ iterations remains an open question, as the current best-known lower bound for simple graphs is $\Omega(n)$.
Summary updated