English

The Iteration Number of the Weisfeiler-Leman Algorithm

Data Structures and Algorithms 2025-04-21 v2 Discrete Mathematics Logic in Computer Science

Abstract

We prove new upper and lower bounds on the number of iterations the kk-dimensional Weisfeiler-Leman algorithm (kk-WL) requires until stabilization. For k3k \geq 3, we show that kk-WL stabilizes after at most O(knk1logn)O(kn^{k-1}\log n) iterations (where nn denotes the number of vertices of the input structures), obtaining the first improvement over the trivial upper bound of nk1n^{k}-1 and extending a previous upper bound of O(nlogn)O(n \log n) for k=2k=2 [Lichter et al., LICS 2019]. We complement our upper bounds by constructing kk-ary relational structures on which kk-WL requires at least nΩ(k)n^{\Omega(k)} iterations to stabilize. This improves over a previous lower bound of nΩ(k/logk)n^{\Omega(k / \log k)} [Berkholz, Nordstr\"{o}m, LICS 2016]. We also investigate tradeoffs between the dimension and the iteration number of WL, and show that dd-WL, where d=3(k+1)2d = \lceil\frac{3(k+1)}{2}\rceil, can simulate the kk-WL algorithm using only O(k2nk/2+1logn)O(k^2 \cdot n^{\lfloor k/2\rfloor + 1} \log n) many iterations, but still requires at least nΩ(k)n^{\Omega(k)} iterations for any dd (that is sufficiently smaller than nn). The number of iterations required by kk-WL to distinguish two structures corresponds to the quantifier rank of a sentence distinguishing them in the (k+1)(k + 1)-variable fragment Ck+1C_{k+1} of first-order logic with counting quantifiers. Hence, our results also imply new upper and lower bounds on the quantifier rank required in the logic Ck+1C_{k+1}, as well as tradeoffs between variable number and quantifier rank.

Keywords

Cite

@article{arxiv.2301.13317,
  title  = {The Iteration Number of the Weisfeiler-Leman Algorithm},
  author = {Martin Grohe and Moritz Lichter and Daniel Neuen},
  journal= {arXiv preprint arXiv:2301.13317},
  year   = {2025}
}

Comments

30 pages, 1 figure, full version of a paper accepted at LICS 2023; second version improves the presentation of the results