Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Complex Query Answering with Neural Link Predictors

About

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.

Erik Arakelyan, Daniel Daza, Pasquale Minervini, Michael Cochez• 2020

Related benchmarks

TaskDatasetResultRank
Logical Query AnsweringNELL995 (test)
MRR (1-path)0.667
41
Logical Query AnsweringFB15K (test)
MRR (1p)0.918
36
Logical Query Answering (EPFO)FB15k-237 (test)
2-Path Error0.095
31
Complex Query AnsweringNELL-995 (test)
Hits@1 (1p)60.4
31
Complex Query AnsweringFB15K (test)
Hits@1 (1p)85.8
30
Logical Query AnsweringFB15k-237
MRR (2-inverse path)0.299
29
Knowledge Graph ReasoningFB15k-237 (test)
HITS@3 (Avg)0.29
29
Complex Query AnsweringFB15k-237 (test)
Hits@1 (avg path)0.223
27
Logical Query AnsweringNELL995
MRR (1-Path)0.442
22
Query AnsweringICEWS18+H
1p Path Metric16.6
10
Showing 10 of 18 rows

Other info

Code

Follow for update