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

Krzysztof Olejniczak, Xingyue Huang, Mikhail Galkin, İsmail İlkan Ceylan
9/21/2024
cs.LGcs.AI

No official code found. Best implementation: kolejnyy/ANYCQ (5 stars, MIT, last commit 2025-02-09).

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.

View on arXivView PDF

Code Implementations(1)

kolejnyy/ANYCQCommunity100%
MIT

[LoG '25] Repository implementing AnyCQ - a GNN-guided search engine for answering queries over incomplete Knowledge Graphs

51Shell, PythonSep 9, 20241 years agoMIT

Similar Papers

Cite this paper

@article{olejniczak2024model,
  title  = {One Model, Any Conjunctive Query: Graph Neural Networks for Answering Queries over Incomplete Knowledge Graphs},
  author = {Krzysztof Olejniczak and Xingyue Huang and Mikhail Galkin and İsmail İlkan Ceylan},
  year   = {2024},
  eprint = {2409.13959},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.13959v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.13959.svg)](https://codeofpaper.com/paper/2409.13959)

Discussion