The Weisfeiler-Leman Dimension of Conjunctive Queries
Andreas Göbel, Leslie Ann Goldberg, Marc Roth
备注:
39 pages, 4 figures, abstract shortened due to ArXiv requirements, an extended abstract of this work is accepted for publication in the proceedings of PODS 24
The Weisfeiler-Leman (WL) dimension of a graph parameter $f$ is the minimum $k$ such that, if $G_1$ and $G_2$ are indistinguishable by the $k$-dimensional WL-algorithm then $f(G_1)=f(G_2)$. The WL-dimension of $f$ is $\infty$ if no such $k$ exists. We study the WL-dimension of graph parameters characterised by the number of answers from a fixed conjunctive query to the graph. Given a conjunctive query $φ$, we quantify the WL-dimension of the function that maps every graph $G$ to the number of answers of $φ$ in $G$.
The works of Dvorák (J. Graph Theory 2010), Dell, Grohe, and Rattan (ICALP 2018), and Neuen (ArXiv 2023) have answered this question for full conjunctive queries, which are conjunctive queries without existentially quantified variables. For such queries $φ$, the WL-dimension is equal to the treewidth of the Gaifman graph of $φ$.
In this work, we give a characterisation that applies to all conjunctive qureies. Given any conjunctive query $φ$, we prove that its WL-dimension is equal to the semantic extension width $\mathsf{sew}(φ)$, a novel width measure that can be thought of as a combination of the treewidth of $φ$ and its quantified star size, an invariant introduced by Durand and Mengel (ICDT 2013) describing how the existentially quantified variables of $φ$ are connected with the free variables. Using the recently established equivalence between the WL-algorithm and higher-order Graph Neural Networks (GNNs) due to Morris et al. (AAAI 2019), we obtain as a consequence that the function counting answers to a conjunctive query $φ$ cannot be computed by GNNs of order smaller than $\mathsf{sew}(φ)$.
我们介绍了深度Weisfeiler-Leman算法(DeepWL)的框架,它允许设计比著名的Weisfeiler-Leman算法更强大的纯组合图同构测试。我们证明,作为一个抽象的计算模型,多项式时间DeepWL算法具有与Blass,Gurevich和Shelah(Ann. Pure Appl. Logic.,1999年)这是一个众所周知的开放问题是否存在一个多项式时间图同构测试意味着存在一个多项式时间规范化算法。我们的主要技术结果表明,对于每一类图(满足一些温和的封闭条件),如果存在多项式时间DeepWL同构测试,则存在该类的多项式规范化算法。这意味着在这个类上还有一个捕获多项式时间的逻辑。