Complex Query Answering with Neural Link Predictors
Erik Arakelyan, Daniel Daza, Pasquale Minervini, Michael Cochez
Abstract
Neural link predictors are immensely useful for identifying missing edges in large scale Knowledge Graphs. However, it is still not clear how to use these models for answering more complex queries that arise in a number of domains, such as queries using logical conjunctions (∧), disjunctions (∨) and existential quantifiers (∃), while accounting for missing edges. In this work, we propose a framework for efficiently answering complex queries on incomplete Knowledge Graphs. We translate each query into an end-to-end differentiable objective, where the truth value of each atom is computed by a pre-trained neural link predictor. We then analyse two solutions to the optimisation problem, including gradient-based and combinatorial search. In our experiments, the proposed approach produces more accurate results than state-of-the-art methods -black-box neural models trained on millions of generated queries -without the need of training on a large and diverse set of complex queries. Using orders of magnitude less training data, we obtain relative improvements ranging from 8% up to 40% in Hits@3 across different knowledge graphs containing factual information. Finally, we demonstrate that it is possible to explain the outcome of our model in terms of the intermediate solutions identified for each of the complex query atoms. All our source code and datasets are available online 1 . Neural link predictors (Nickel et al., 2016) tackle the problem of identifying missing edges in large KGs. However, in many complex domains, an open challenge is developing techniques for answering complex queries involving multiple and potentially unobserved edges, entities, and variables, rather than just single edges. We focus on First-Order Logical Queries that use conjunctions (∧), disjunctions (∨), and existential quantifiers (∃). A multitude of queries can be expressed by using such operators -for instance, the query "Which drugs D interact with proteins associated with diseases t 1 or t 2 ?" can be rewritten as ?D : ∃P.interacts(D, P ) ∧ [assoc(P, t 1 ) ∨ assoc(P, t 2 )], which can be answered via sub-graph matching.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
47 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimization cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimization cites Neural-Symbolic Models for Logical Queries on Knowledge Graphs
- Probabilistic Entity Representation Model for Reasoning over Knowledge Graphs cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Answering Complex Queries in Knowledge Graphs with Bidirectional Sequence Encoders cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Neural-Symbolic Models for Logical Queries on Knowledge Graphs cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Learning Reasoning Strategies in End-to-End Differentiable Proving cites Differentiable Reasoning on Large Knowledge Bases and Natural Language
- Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraints cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
- Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraints cites Differentiable Reasoning on Large Knowledge Bases and Natural Language
- Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraints cites Neural-Symbolic Models for Logical Queries on Knowledge Graphs
- Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical Constraints cites Learning Reasoning Strategies in End-to-End Differentiable Proving
Cited by top-tier papers47
- Neural-Symbolic Models for Logical Queries on Knowledge GraphsZhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, Jian TangICML 2022 · 106 citations
- Probabilistic Entity Representation Model for Reasoning over Knowledge GraphsNurendra Choudhary, Nikhil Rao, Sumeet Katariya, Karthik Subbian et al.NeurIPS 2021 · 50 citations
- Answering Complex Queries in Knowledge Graphs with Bidirectional Sequence EncodersBhushan Kotnis, Carolin Lawrence, Mathias NiepertAAAI 2021 · 48 citations
- Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree OptimizationYushi Bai, Xin Lv, Juanzi Li, Lei HouICML 2023 · 47 citations
- Complex Query Answering on Eventuality Knowledge Graph with Implicit Logical ConstraintsJiaxin Bai, Xin Liu, Weiqi Wang, Chen Luo et al.NeurIPS 2023 · 46 citations
Builds on4
- Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 citations
- Learning Reasoning Strategies in End-to-End Differentiable ProvingPasquale Minervini, Sebastian Riedel, Pontus Stenetorp, Edward Grefenstette et al.ICML 2020 · 102 citations
- Differentiable Reasoning on Large Knowledge Bases and Natural LanguagePasquale Minervini, Matko Bosnjak, Tim Rocktäschel, Sebastian Riedel et al.AAAI 2020 · 94 citations
- Answering Complex Queries in Knowledge Graphs with Bidirectional Sequence EncodersBhushan Kotnis, Carolin Lawrence, Mathias NiepertAAAI 2021 · 48 citations
Related papers
- Efficient Embeddings of Logical Variables for Query Answering over Incomplete Knowledge GraphsDingmin Wang, Yeyuan Chen, Bernardo Cuenca GrauAAAI 2023 · 16 citations
- Adapting Neural Link Predictors for Data-Efficient Complex Query AnsweringErik Arakelyan, Pasquale Minervini, Daniel Daza, Michael Cochez et al.NeurIPS 2023 · 25 citations
- Query2Triple: Unified Query Encoding for Answering Diverse Complex Queries over Knowledge GraphsYao Xu, Shizhu He, Cunguang Wang, Li Cai et al.EMNLP Findings 2023 · 3 citations
- Neural-Symbolic Entangled Framework for Complex Query AnsweringZezhong Xu, Wen Zhang, Peng Ye, Hui Chen et al.NeurIPS 2022 · 31 citations
- Inductive Logical Query Answering in Knowledge GraphsMichael Galkin, Zhaocheng Zhu, Hongyu Ren, Jian TangNeurIPS 2022 · 36 citations
