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.
翻译:对不完整知识图解解答复杂的逻辑问题是一项艰巨的任务,而且已经进行了广泛的研究。基于嵌入的方法需要复杂的查询培训,无法对分布以外的查询结构进行全面概括。最近的工作将这项任务设置为端到端优化问题,只需要一个预先训练的链接预测器。然而,由于数量庞大的组合搜索空间,最佳解决方案只能近似,限制最终准确性。在这项工作中,我们提议QTO(查询计算树优化)能够有效找到准确最佳解决方案。QTO通过在树型计算图上前向后传播找到最佳解决方案,即查询计算树。特别是,QTO利用在查询计算树中编码的独立来减少搜索空间,因为优化程序只涉及本地计算。在3个数据集上进行的实验显示,QTO在复杂查询回答上取得了最先进的表现,以平均22%的速率比以往最佳效果高。此外,QTO在每张数的中间解决方案中,可以解释每张数为90的中间解决方案的准确度。