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

Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimization

About

Answering complex logical queries on incomplete knowledge graphs is a challenging task, and has been widely studied. Embedding-based methods require training on complex queries, and cannot generalize well to out-of-distribution query structures. Recent work frames this task as an end-to-end optimization problem, and it only requires a pretrained link predictor. However, due to the exponentially large combinatorial search space, the optimal solution can only be approximated, limiting the final accuracy. In this work, we propose QTO (Query Computation Tree Optimization) that can efficiently find the exact optimal solution. QTO finds the optimal solution by a forward-backward propagation on the tree-like computation graph, i.e., query computation tree. In particular, QTO utilizes the independence encoded in the query computation tree to reduce the search space, where only local computations are involved during the optimization procedure. Experiments on 3 datasets show that QTO obtains state-of-the-art performance on complex query answering, outperforming previous best results by an average of 22%. Moreover, QTO can interpret the intermediate solutions for each of the one-hop atoms in the query with over 90% accuracy. The code of our paper is at https://github.com/bys0318/QTO.

Yushi Bai, Xin Lv, Juanzi Li, Lei Hou• 2022

Related benchmarks

TaskDatasetResultRank
Logical Query AnsweringNELL995 (test)
MRR (1-path)0.607
41
Logical Query AnsweringFB15K (test)
MRR (1p)0.895
36
Complex Query AnsweringNELL-995 (test)
Hits@1 (1p)60.7
31
Logical Query Answering (EPFO)FB15k-237 (test)
2-Path Error21.4
31
Complex Query AnsweringFB15K (test)
Hits@1 (1p)89.2
30
Complex Query AnsweringFB15k-237 (test)
Hits@1 (avg path)0.335
27
Query AnsweringFB15k237+H
1p Success Rate0.671
10
Query AnsweringNELL995+H
1p Success Rate77.3
10
Query AnsweringICEWS18+H
1p Path Metric32.5
10
Logical Query Answering (EPFO)(e, r) (11 datasets) (Inductive)
MRR0.328
8
Showing 10 of 19 rows

Other info

Code

Follow for update