Lune

EMNLP Findings2023

Query2Triple: Unified Query Encoding for Answering Diverse Complex Queries over Knowledge Graphs

Yao Xu, Shizhu He, Cunguang Wang, Li Cai, Kang Liu, Jun Zhao

Abstract

Complex Query Answering (CQA) is a challenge task of Knowledge Graph (KG). Due to the incompleteness of KGs, query embedding (QE) methods have been proposed to encode queries and entities into the same embedding space, and treat logical operators as neural set operators to obtain answers. However, these methods train KG embeddings and neural set operators concurrently on both simple (one-hop) and complex (multi-hop and logical) queries, which causes performance degradation on simple queries and low training efficiency. In this paper, we propose Query to Triple (Q2T), a novel approach that decouples the training for simple and complex queries. Q2T divides the training into two stages: (1) Pre-training a neural link predictor on simple queries to predict tail entities based on the head entity and relation. (2) Training a query encoder on complex queries to encode diverse complex queries into a unified triple form that can be efficiently solved by the pretrained neural link predictor. Our proposed Q2T is not only efficient to train, but also modular, thus easily adaptable to various neural link predictors that have been studied well. Extensive experiments demonstrate that, even without explicit modeling for neural set operators, Q2T still achieves state-of-the-art performance on diverse complex queries over three public benchmarks.

Ask Lune

Ask anything. The answer quotes the paper.

Lune reads all of it and the papers around it, then shows you the passages behind every answer.

Questions to start from

Lune answers from

the full paper · 4 top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Cited by top-tier papers4

  1. Enhancing Transformers for Generalizable First-Order Logical EntailmentTianshi Zheng, Jiazheng Wang, Zihao Wang, Jiaxin Bai et al.ACL 2025 · 7 citations
  2. 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
  3. Conditional Logical Message Passing Transformer for Complex Query AnsweringChongzhi Zhang, Zhiping Peng, Junhao Zheng, Qianli MaKDD 2024 · 3 citations
  4. Privacy-Preserved Neural Graph DatabasesQi Hu, Haoran Li, Jiaxin Bai, Zihao Wang et al.KDD 2024 · 1 citation

Builds on11

  1. Do Transformers Really Perform Badly for Graph Representation?Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng et al.NeurIPS 2021 · 1,632 citations
  2. 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
  3. Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 citations
  4. Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge GraphsHongyu Ren, Jure LeskovecNeurIPS 2020 · 267 citations
  5. ConE: Cone Embeddings for Multi-Hop Reasoning over Knowledge GraphsZhanqiu Zhang, Jie Wang, Jiajun Chen, Shuiwang Ji et al.NeurIPS 2021 · 161 citations

Related papers

  1. Neural-Symbolic Entangled Framework for Complex Query AnsweringZezhong Xu, Wen Zhang, Peng Ye, Hui Chen et al.NeurIPS 2022 · 31 citations
  2. Logical Message Passing Networks with One-hop Inference on Atomic FormulasZihao Wang, Yangqiu Song, Ginny Y. Wong, Simon SeeICLR 2023 · 4 citations
  3. NQE: N-ary Query Embedding for Complex Query Answering over Hyper-Relational Knowledge GraphsHaoran Luo, Haihong E, Yuhao Yang, Gengxian Zhou et al.AAAI 2023 · 13 citations
  4. Answering Complex Logical Queries on Knowledge Graphs via Query Computation Tree OptimizationYushi Bai, Xin Lv, Juanzi Li, Lei HouICML 2023 · 47 citations
  5. Complex Query Answering with Neural Link PredictorsErik Arakelyan, Daniel Daza, Pasquale Minervini, Michael CochezICLR 2021 · 29 citations
Dusk over the sea between two cliffs drawn in fine vertical lines