Skip to main content
QUICK REVIEW

[Paper Review] Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree Optimization

Yushi Bai, Xin Lv|arXiv (Cornell University)|Dec 19, 2022
Advanced Graph Neural NetworksComputer Science6 citations
TL;DR

This paper proposes QTO (Query Computation Tree Optimization), a novel optimization-based method that efficiently computes the exact optimal solution for complex logical queries on incomplete knowledge graphs by leveraging a tree-structured computation graph. By applying forward-backward propagation on the query computation tree and exploiting structural independence, QTO achieves state-of-the-art performance, outperforming prior methods by an average of 22% on complex query answering and over 90% accuracy in interpreting intermediate entity assignments.

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.

Motivation & Objective

  • To address the challenge of answering complex logical queries on incomplete knowledge graphs where existing embedding-based methods struggle with generalization and interpretability.
  • To overcome the exponential search space in optimization-based approaches that limit accuracy due to approximation.
  • To develop a method that finds the exact optimal solution for complex queries without requiring training on complex queries.
  • To enable faithful, interpretable entity assignments for intermediate variables in logical queries.
  • To ensure theoretical optimality and high efficiency in reasoning on both long and easy queries.

Proposed method

  • QTO formulates complex logical queries as a tree-like computation graph, known as the query computation tree, to exploit structural independence among subqueries.
  • It performs forward propagation to recursively maximize the likelihood of entity assignments on subqueries rooted at each variable node.
  • The method uses a backward pass with argmax operations to recover the most likely entity assignments, enabling interpretability of intermediate results.
  • QTO leverages a pretrained KGE model to score one-hop atoms and integrates these scores into the tree-optimization framework.
  • The optimization is based on sparse matrix operations on the adjacency matrix of the knowledge graph, enabling GPU-accelerated inference.
  • Theoretical analysis proves that QTO finds the globally optimal solution under the given formulation.

Experimental results

Research questions

  • RQ1Can an optimization-based method achieve exact optimal solutions for complex logical queries on incomplete knowledge graphs without requiring training on complex queries?
  • RQ2How can structural independence in the query computation tree be exploited to reduce the search space and enable efficient computation?
  • RQ3To what extent does QTO outperform approximation-based methods like CQD in terms of accuracy and robustness on out-of-distribution query structures?
  • RQ4Can QTO maintain high accuracy and interpretability on both long reasoning chains and easy queries with no missing links?
  • RQ5How does QTO perform in predicting the cardinality of answer sets compared to existing methods?

Key findings

  • QTO achieves a 22% average improvement over previous state-of-the-art methods on complex query answering across three benchmark datasets.
  • On existential positive first-order queries, QTO improves performance by 13.5% compared to the previous SOTA method.
  • For queries with negation, QTO achieves a 37.5% improvement over the previous SOTA method.
  • QTO is the first method to guarantee exact solutions for easy queries (i.e., those with no missing links), achieving 100% Hits@1 on such cases.
  • The method interprets intermediate entity assignments with over 90% accuracy, providing high interpretability.
  • QTO significantly outperforms GNN-QE in cardinality prediction, achieving lower mean absolute percentage error on answer set size estimation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.