Command Palette
Search for a command to run...
Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimization
Yushi Bai; Xin Lv; Juanzi Li; Lei Hou

Abstract
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.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| complex-query-answering-on-fb15k | QTO | MRR 1p: 0.895 MRR 2i: 0.803 MRR 2p: 0.674 MRR 2u: 0.767 MRR 3i: 0.836 MRR 3p: 0.588 MRR ip: 0.740 MRR pi: 0.752 MRR up: 0.613 |
| complex-query-answering-on-fb15k-237 | QTO | MRR 1p: 0.490 MRR 2i: 0.431 MRR 2p: 0.214 MRR 2u: 0.227 MRR 3i: 0.568 MRR 3p: 0.212 MRR ip: 0.280 MRR pi: 0.381 MRR up: 0.214 |
| complex-query-answering-on-nell-995 | QTO | MRR 1p: 0.607 MRR 2i: 0.425 MRR 2p: 0.241 MRR 2u: 0.204 MRR 3i: 0.506 MRR 3p: 0.216 MRR ip: 0.265 MRR pi: 0.313 MRR up: 0.179 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.