One Model, Any Conjunctive Query: Graph Neural Networks for Answering Queries over Incomplete Knowledge Graphs

TMLR Paper4794 Authors

06 May 2025 (modified: 22 Jun 2025)Under review for TMLREveryoneRevisionsBibTeXCC BY 4.0
Abstract: Motivated by the incompleteness of modern knowledge graphs, a new setup for query answering has emerged, where the goal is to predict answers that do not necessarily appear in the knowledge graph, but are present in its completion. In this paper, we formally introduce and study two query answering problems, namely, query answer classification and query answer retrieval. To solve these problems, we propose AnyCQ, a model that can classify answers to any conjunctive query on any knowledge graph. At the core of our framework lies a graph neural network trained using a reinforcement learning objective to answer Boolean queries. Trained only on simple, small instances, AnyCQ generalizes to large queries of arbitrary structure, reliably classifying and retrieving answers to queries that existing approaches fail to handle. This is empirically validated through our newly proposed, challenging benchmarks. Finally, we empirically show that AnyCQ can effectively transfer to completely novel knowledge graphs when equipped with an appropriate link prediction model, highlighting its potential for querying incomplete data.
Submission Length: Regular submission (no more than 12 pages of main content)
Changes Since Last Submission: - updated the **Related Work** section - changed the way of introducing LE and PE labels, and added an extended description of them in **Appendix A.6** - extended the descriptions of new benchmark datasets in **Section 6.1** and **Appendix C.2** and added a visualization of the used queries (**Figure 4**) - fixed formatting inconsistencies and restructured the table layout in the main body - extended **Appendix E** with easy recall evaluation for SQL with more timeouts (30, 60 and 120s) - added a subsection about fuzzy logic limitations in **Appendix A**
Assigned Action Editor: ~antonio_vergari2
Submission Number: 4794
Loading