The Weisfeiler-Leman Dimension of Conjunctive Queries

Type: Article

Publication Date: 2024-05-10

Citations: 0

DOI: https://doi.org/10.1145/3651587

Abstract

A graph parameter is a function f on graphs with the property that, for any pair of isomorphic graphs G 1 and G 2 , f(G 1 )=f(G 2 ). The Weisfeiler--Leman (WL) dimension of 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 ∞ 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 Dvorak (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 queries. Given any conjunctive query φ, we prove that its WL-dimension is equal to the semantic extension width 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 sew(φ). The majority of the paper is concerned with establishing a lower bound of the WL-dimension of a query. Given any conjunctive query φ with semantic extension width k, we consider a graph F of treewidth k obtained from the Gaifman graph of φ by repeatedly cloning the vertices corresponding to existentially quantified variables. Using a modification due to Furer (ICALP 2001) of the Cai-Fürer-Immerman construction (Combinatorica 1992), we then obtain a pair of graphs χ(F) and ^χ(F) that are indistinguishable by the (k-1)-dimensional WL-algorithm since F has treewidth k. Finally, in the technical heart of the paper, we show that φ has a different number of answers in χ(F) and ^χ(F). Thus, φ can distinguish two graphs that cannot be distinguished by the (k-1)-dimensional WL-algorithm, so the WL-dimension of φ is at least k.

Locations

  • arXiv (Cornell University) - View - PDF
  • Queen Mary Research Online (Queen Mary University of London) - View - PDF
  • Oxford University Research Archive (ORA) (University of Oxford) - View - PDF
  • Proceedings of the ACM on Management of Data - View

Similar Works

Action Title Year Authors
+ The Weisfeiler-Leman Dimension of Existential Conjunctive Queries 2023 Andreas Göbel
Leslie Ann Goldberg
Marc Roth
+ Counting Answers to Existential Questions 2019 Holger Dell
Marc Roth
Philip Wellnitz
+ PDF Chat Computational complexity of the Weisfeiler-Leman dimension 2024 Moritz Lichter
Simon Raßmann
Pascal Schweitzer
+ A short note on the counting complexity of conjunctive queries 2021 Stefan Mengel
+ PDF Chat A short note on the counting complexity of conjunctive queries 2021 Stefan Mengel
+ A short note on the counting complexity of conjunctive queries 2021 Stefan Mengel
+ Problems in NP can Admit Double-Exponential Lower Bounds when Parameterized by Treewidth and Vertex Cover 2023 Florent Foucaud
Esther Galby
Liana Khazaliya
Shaohua Li
Fionn Inerney
Roohani Sharma
Prafullkumar Tale
+ One Hierarchy Spawns Another: Graph Deconstructions and the Complexity Classification of Conjunctive Queries 2013 Hubie Chen
Moritz Müller
+ Semantic Width of Conjunctive Queries and Constraint Satisfaction Problems 2018 Georg Gottlob
Matthias Lanzinger
Reinhard Pichler
+ PDF Chat Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations 2024 Jacob Focke
Leslie Ann Goldberg
Marc Roth
Stanislav Živný
+ PDF Chat Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations 2022 Jacob Focke
Leslie Ann Goldberg
Marc Roth
Stanislav Živný
+ Approximately Counting Answers to Conjunctive Queries with Disequalities and Negations 2021 Jacob Focke
Leslie Ann Goldberg
Marc Roth
Stanislav Živný
+ PDF Chat Metric Dimension Parameterized by Treewidth 2019 Édouard Bonnet
Nidhi Purohit
+ PDF Chat Counting Answers to Unions of Conjunctive Queries: Natural Tractability Criteria and Meta-Complexity 2024 Jacob Focke
Leslie Ann Goldberg
Marc Roth
Stanislav Živný
+ A Practical, Progressively-Expressive GNN 2022 Lingxiao Zhao
Louis Härtel
Neil Shah
Leman Akoglu
+ PDF Chat The Descriptive Complexity of Subgraph Isomorphism Without Numerics 2017 Oleg Verbitsky
Maksim Zhukovskii
+ PDF Chat The Descriptive Complexity of Subgraph Isomorphism Without Numerics 2018 Oleg Verbitsky
Maksim Zhukovskii
+ PDF Chat Structural Tractability of Counting of Solutions to Conjunctive Queries 2014 Arnaud Durand
Stefan Mengel
+ PDF Chat Structural tractability of counting of solutions to conjunctive queries 2013 Arnaud Durand
Stefan Mengel
+ PDF Chat Structural Parameterization of Locating-Dominating Set and Test Cover 2024 Dipayan Chakraborty
Florent Foucaud
Diptapriyo Majumdar
Prafullkumar Tale

Works That Cite This (0)

Action Title Year Authors