Complex Query Answering with Neural Link Predictors

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 ($\land$), disjunctions ($\lor$) and existential quantifiers ($\exists$), 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, at https://github.com/uclnlp/cqd.

PDF Abstract ICLR 2021 PDF ICLR 2021 Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Complex Query Answering FB15k CQD MRR 1p 0.892 # 2
MRR 2p 0.653 # 3
MRR 2i 0.771 # 3
MRR 3i 0.806 # 3
MRR ip 0.716 # 2
MRR 2u 0.723 # 3
Complex Query Answering FB15k CQD-Beam Hits@3 1p 0.918 # 1
Hits@3 2p 0.779 # 1
Hits@3 3p 0.577 # 1
Hits@3 2i 0.796 # 1
Hits@3 3i 0.837 # 1
Hits@3 ip 0.375 # 1
Hits@3 pi 0.658 # 1
Hits@3 2u 0.839 # 1
Hits@3 up 0.345 # 1
Complex Query Answering FB15k CQD-CO Hits@3 1p 0.918 # 1
Hits@3 2p 0.454 # 2
Hits@3 3p 0.191 # 2
Hits@3 2i 0.796 # 1
Hits@3 3i 0.837 # 1
Hits@3 ip 0.336 # 2
Hits@3 pi 0.513 # 2
Hits@3 2u 0.816 # 2
Hits@3 up 0.319 # 2
Complex Query Answering FB15k-237 CQD-CO Hits@3 1p 0.512 # 1
Hits@3 2p 0.213 # 2
Hits@3 3p 0.131 # 2
Hits@3 2i 35.2 # 1
Hits@3 3i 0.457 # 1
Hits@3 ip 0.146 # 1
Hits@3 pi 0.222 # 2
Hits@3 2u 0.281 # 2
Hits@3 up 0.132 # 1
Complex Query Answering FB15k-237 CQD MRR 3i 0.486 # 3
Complex Query Answering FB15k-237 CQD-Beam Hits@3 1p 0.512 # 1
Hits@3 2p 0.288 # 1
Hits@3 3p 0.221 # 1
Hits@3 2i 0.352 # 2
Hits@3 3i 0.457 # 1
Hits@3 ip 0.129 # 2
Hits@3 pi 0.249 # 1
Hits@3 2u 0.284 # 1
Hits@3 up 0.121 # 2
Complex Query Answering NELL995 CQD-Beam Hits@3 2p 0.350 # 1
Hits@3 3p 0.288 # 1
Hits@3 ip 0.171 # 2
Hits@3 pi 0.277 # 2
Hits@3 up 0.156 # 2
Complex Query Answering NELL995 CQD-CO Hits@3 1p 0.667 # 1
Hits@3 2p 0.265 # 2
Hits@3 3p 0.220 # 2
Hits@3 2i 0.410 # 1
Hits@3 3i 0.529 # 1
Hits@3 ip 0.196 # 1
Hits@3 pi 0.302 # 1
Hits@3 2u 0.531 # 1
Hits@3 up 0.194 # 1
Complex Query Answering NELL-995 CQD MRR 1p 0.604 # 2
MRR 2i 0.436 # 1
MRR ip 0.256 # 3

Methods


No methods listed for this paper. Add relevant methods here