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 may not 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 .
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 006e7b04-e46d-4d01-ad4f-63672445458fCited by top-tier papers16
- GFT: Graph Foundation Model with Transferable Tree VocabularyZehong Wang, Zheyuan Zhang, Nitesh V. Chawla, Chuxu Zhang et al.NeurIPS 2024 · 108 citations
- Rethinking Complex Queries on Knowledge Graphs with Neural Link PredictorsHang Yin, Zihao Wang, Yangqiu SongICLR 2024 · 25 citations
- A Foundation Model for Zero-shot Logical Query ReasoningMichael Galkin, Jincheng Zhou, Bruno Ribeiro, Jian Tang et al.NeurIPS 2024 · 20 citations
- Improving Complex Reasoning over Knowledge Graph with Logic-Aware Curriculum TuningTianle Xia, Liang Ding, Guojia Wan, Yibing Zhan et al.AAAI 2025 · 19 citations
- Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge GraphsXingrui Zhuo, Jiapu Wang, Gongqing Wu, Shirui Pan et al.WWW 2025 · 5 citations
Builds on12
- Neural Bellman-Ford Networks: A General Graph Neural Network Framework for Link PredictionZhaocheng Zhu, Zuobai Zhang, Louis-Pascal A. C. Xhonneux, Jian TangNeurIPS 2021 · 546 citations
- Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 citations
- Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge GraphsHongyu Ren, Jure LeskovecNeurIPS 2020 · 267 citations
- ConE: Cone Embeddings for Multi-Hop Reasoning over Knowledge GraphsZhanqiu Zhang, Jie Wang, Jiajun Chen, Shuiwang Ji et al.NeurIPS 2021 · 161 citations
- Neural-Symbolic Models for Logical Queries on Knowledge GraphsZhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, Jian TangICML 2022 · 106 citations
Related papers
- Neural-Symbolic Entangled Framework for Complex Query AnsweringZezhong Xu, Wen Zhang, Peng Ye, Hui Chen et al.NeurIPS 2022 · 31 citations
- Complex Query Answering with Neural Link PredictorsErik Arakelyan, Daniel Daza, Pasquale Minervini, Michael CochezICLR 2021 · 29 citations
- Inductive Logical Query Answering in Knowledge GraphsMichael Galkin, Zhaocheng Zhu, Hongyu Ren, Jian TangNeurIPS 2022 · 36 citations
- Fuzzy Logic Based Logical Query Answering on Knowledge GraphsXuelu Chen, Ziniu Hu, Yizhou SunAAAI 2022 · 42 citations
- Adapting Neural Link Predictors for Data-Efficient Complex Query AnsweringErik Arakelyan, Pasquale Minervini, Daniel Daza, Michael Cochez et al.NeurIPS 2023 · 25 citations
