English

Computational complexity of the Weisfeiler-Leman dimension

Computational Complexity 2024-11-18 v2 Discrete Mathematics

Abstract

The Weisfeiler-Leman dimension of a graph GG is the least number kk such that the kk-dimensional Weisfeiler-Leman algorithm distinguishes GG from every other non-isomorphic graph. The dimension is a standard measure of the descriptive complexity of a graph and recently finds various applications in particular in the context of machine learning. In this paper, we study the computational complexity of computing the Weisfeiler-Leman dimension. We observe that in general the problem of deciding whether the Weisfeiler-Leman dimension of GG is at most kk is NP-hard. This is also true for the more restricted problem with graphs of color multiplicity at most 4. Therefore, we study parameterized versions of the problem. We give, for each fixed k2k\geq 2, a polynomial-time algorithm that decides whether the Weisfeiler-Leman dimension of a given graph of color multiplicity at most 55 is at most kk. Moreover, we show that for these color multiplicities this is optimal in the sense that this problem is P-hard under logspace-uniform AC0\text{AC}_0-reductions. Furthermore, for each larger bound cc on the color classes and each fixed k2k\geq 2, we provide a polynomial-time decision algorithm for the abelian case, that is, for structures of which each color class has an abelian automorphism group. While the graph classes we consider may seem quite restrictive, graphs with 44-bounded abelian colors include CFI-graphs and multipedes, which form the basis of almost all known hard instances and lower bounds related to the Weisfeiler-Leman algorithm.

Keywords

Cite

@article{arxiv.2402.11531,
  title  = {Computational complexity of the Weisfeiler-Leman dimension},
  author = {Moritz Lichter and Simon Raßmann and Pascal Schweitzer},
  journal= {arXiv preprint arXiv:2402.11531},
  year   = {2024}
}
R2 v1 2026-06-28T14:52:14.760Z