Lune

AAAI2023Top-tier venue

NQE: N-ary Query Embedding for Complex Query Answering over Hyper-Relational Knowledge Graphs

Haoran Luo, Haihong E, Yuhao Yang, Gengxian Zhou, Yikai Guo, Tianyu Yao, Zichen Tang, Xueyuan Lin, Kaiyang Wan

Abstract

Complex query answering (CQA) is an essential task for multi-hop and logical reasoning on knowledge graphs (KGs). Currently, most approaches are limited to queries among binary relational facts and pay less attention to n-ary facts (n≥2) containing more than two entities, which are more prevalent in the real world. Moreover, previous CQA methods can only make predictions for a few given types of queries and cannot be flexibly extended to more complex logical queries, which significantly limits their applications. To overcome these challenges, in this work, we propose a novel N-ary Query Embedding (NQE) model for CQA over hyper-relational knowledge graphs (HKGs), which include massive n-ary facts. The NQE utilizes a dual-heterogeneous Transformer encoder and fuzzy logic theory to satisfy all n-ary FOL queries, including existential quantifiers (∃), conjunction (∧), disjunction (∨), and negation (¬). We also propose a parallel processing algorithm that can train or predict arbitrary n-ary FOL queries in a single batch, regardless of the kind of each query, with good flexibility and extensibility. In addition, we generate a new CQA dataset WD50K-NFOL, including diverse n-ary FOL queries over WD50K. Experimental results on WD50K-NFOL and other standard CQA datasets show that NQE is the state-of-the-art CQA method over HKGs with good generalization capability. Our code and dataset are publicly available.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

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

Get the answer

Free to start. No credit card required.

Lineage

  • ConRAD: Conformal Risk-Aware Neural Databases cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
  • ConRAD: Conformal Risk-Aware Neural Databases cites Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs
  • ConRAD: Conformal Risk-Aware Neural Databases cites Neural-Symbolic Models for Logical Queries on Knowledge Graphs
  • Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge Graphs cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
  • Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge Graphs cites Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs
  • Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge Graphs cites Neural-Symbolic Models for Logical Queries on Knowledge Graphs
  • Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
  • BoxE: A Box Embedding Model for Knowledge Base Completion cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
  • Understanding Inter-Session Intentions via Complex Logical Reasoning cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
  • Understanding Inter-Session Intentions via Complex Logical Reasoning cites Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs
  • Understanding Inter-Session Intentions via Complex Logical Reasoning cites Neural-Symbolic Models for Logical Queries on Knowledge Graphs
  • Neural-Symbolic Models for Logical Queries on Knowledge Graphs cites Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box Embeddings
  • Neural-Symbolic Models for Logical Queries on Knowledge Graphs cites Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge Graphs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Cross-Lingual Pitfalls: Automatic Probing Cross-Lingual Weakness of Multilingual Large Language ModelsZixiang Xu, Yanbo Wang, Yue Huang, Xiuying Chen et al.ACL 2025 · 5 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. Understanding Inter-Session Intentions via Complex Logical ReasoningJiaxin Bai, Chen Luo, Zheng Li, Qingyu Yin et al.KDD 2024 · 4 citations
  4. ConRAD: Conformal Risk-Aware Neural DatabasesSonia Horchidan, Fabian Zeiher, Xiangyu Shi, Vasiliki Kalavri et al.VLDB 2026

Builds on17

  1. Query2box: Reasoning over Knowledge Graphs in Vector Space Using Box EmbeddingsHongyu Ren, Weihua Hu, Jure LeskovecICLR 2020 · 355 citations
  2. Beta Embeddings for Multi-Hop Logical Reasoning in Knowledge GraphsHongyu Ren, Jure LeskovecNeurIPS 2020 · 267 citations
  3. BoxE: A Box Embedding Model for Knowledge Base CompletionRalph Abboud, Ismail Ilkan Ceylan, Thomas Lukasiewicz, Tommaso SalvatoriNeurIPS 2020 · 245 citations
  4. Beyond Triplets: Hyper-Relational Knowledge Graph Embedding for Link PredictionPaolo Rosso, Dingqi Yang, Philippe Cudré-MaurouxWWW 2020 · 158 citations
  5. Neural-Symbolic Models for Logical Queries on Knowledge GraphsZhaocheng Zhu, Mikhail Galkin, Zuobai Zhang, Jian TangICML 2022 · 106 citations

Related papers

  1. Fuzzy Logic Based Logical Query Answering on Knowledge GraphsXuelu Chen, Ziniu Hu, Yizhou SunAAAI 2022 · 42 citations
  2. Neural-Symbolic Entangled Framework for Complex Query AnsweringZezhong Xu, Wen Zhang, Peng Ye, Hui Chen et al.NeurIPS 2022 · 31 citations
  3. Neural Methods for Logical Reasoning over Knowledge GraphsAlfonso Amayuelas, Shuai Zhang, Susie Xi Rao, Ce ZhangICLR 2022 · 27 citations
  4. Query2Triple: Unified Query Encoding for Answering Diverse Complex Queries over Knowledge GraphsYao Xu, Shizhu He, Cunguang Wang, Li Cai et al.EMNLP Findings 2023 · 3 citations
  5. Query Embedding on Hyper-Relational Knowledge GraphsDimitrios Alivanistos, Max Berrendorf, Michael Cochez, Mikhail GalkinICLR 2022 · 29 citations
Dusk over the sea between two cliffs drawn in fine vertical lines