The Iteration Number of the Weisfeiler-Leman Algorithm
Abstract
We prove new upper and lower bounds on the number of iterations the k-dimensional Weisfeiler-Leman algorithm (k-WL) requires until stabilization. For k ≥ 3, we show that k-WL stabilizes after at most O(knk−1log n) iterations (where n denotes the number of vertices of the input structures), obtaining the first improvement over the trivial upper bound of nk− 1 and extending a previous upper bound of O(n log n) for k = 2 [Lichter et al., LICS 2019].We complement our upper bounds by constructing k-ary relational structures on which k-WL requires at least nΩ(k)iterations to stabilize. This improves over a previous lower bound of nΩ(k/logk)[Berkholz, Nordström, LICS 2016].We also investigate tradeoffs between the dimension and the iteration number of WL, and show that d-WL, where , can simulate the k-WL algorithm using only O(k2• n⌊k/2⌋+1log n) many iterations, but still requires at least nΩ(k)iterations for any d (that is sufficiently smaller than n).The number of iterations required by k-WL to distinguish two structures corresponds to the quantifier rank of a sentence distinguishing them in the (k + 1)-variable fragment 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 , as well as tradeoffs between variable number and quantifier rank.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Compressing CFI Graphs and Lower Bounds for the Weisfeiler-Leman Refinements cites Truly Supercritical Trade-Offs for Resolution, Cutting Planes, Monotone Circuits, and Weisfeiler-Leman
- Truly Supercritical Trade-Offs for Resolution, Cutting Planes, Monotone Circuits, and Weisfeiler-Leman cites Compressing CFI Graphs and Lower Bounds for the Weisfeiler-Leman Refinements
Cited by top-tier papers8
- Fine-grained Expressivity of Graph Neural NetworksJan Böker, Ron Levie, Ningyuan Huang, Soledad Villar et al.NeurIPS 2023 · 34 citations
- Bridging Theory and Practice in Link Representation with Graph Neural NetworksVeronica Lachi, Francesco Ferrini, Antonio Longa, Bruno Lepri et al.NeurIPS 2025 · 5 citations
- Compressing CFI Graphs and Lower Bounds for the Weisfeiler-Leman RefinementsMartin Grohe, Moritz Lichter, Daniel Neuen, Pascal SchweitzerFOCS 2023 · 4 citations
- Truly Supercritical Trade-Offs for Resolution, Cutting Planes, Monotone Circuits, and Weisfeiler-LemanSusanna F. de Rezende, Noah Fleming, Duri Andrea Janett, Jakob Nordström et al.STOC 2025 · 1 citation
- Simulating Logspace-Recursion with Logarithmic Quantifier DepthSteffen van Bergerem, Martin Grohe, Sandra Kiefer, Luca OeljeklausLICS 2023 · 1 citation
Builds on1
Related papers
- Bounding the Weisfeiler-Leman Dimension via a Depth Analysis of I/R-TreesSandra Kiefer, Daniel NeuenLICS 2024 · 1 citation
- From Quantifier Depth to Quantifier Number: Separating Structures with k VariablesHarry Vinall-SmeethLICS 2024
- Three Iterations of (d - 1)-WL Test Distinguish Non Isometric Clouds of d-dimensional PointsValentino Delle Rose, Alexander Kozachinskiy, Cristobal Rojas, Mircea Petrache et al.NeurIPS 2023 · 14 citations
- Multi-Structural Games and Number of QuantifiersRonald Fagin, Jonathan Lenchner, Kenneth W. Regan, Nikhil VyasLICS 2021 · 5 citations
- On the Power of the Weisfeiler-Leman Test for Graph Motif ParametersMatthias Lanzinger, Pablo BarcelóICLR 2024 · 11 citations
