Lune

ACL2023Top-tier venue

Query Structure Modeling for Inductive Logical Reasoning Over Knowledge Graphs

Siyuan Wang, Zhongyu Wei, Meng Han, Zhihao Fan, Haijun Shan, Qi Zhang, Xuanjing Huang

Abstract

Logical reasoning over incomplete knowledge graphs to answer complex logical queries is a challenging task. With the emergence of new entities and relations in constantly evolving KGs, inductive logical reasoning over KGs has become a crucial problem. However, previous PLMs-based methods struggle to model the logical structures of complex queries, which limits their ability to generalize within the same structure. In this paper, we propose a structuremodeled textual encoding framework for inductive logical reasoning over KGs. It encodes linearized query structures and entities using pre-trained language models to find answers. For structure modeling of complex queries, we design stepwise instructions that implicitly prompt PLMs on the execution order of geometric operations in each query. We further separately model different geometric operations (i.e., projection, intersection, and union) on the representation space using a pre-trained encoder with additional attention and maxout layers to enhance structured modeling. We conduct experiments on two inductive logical reasoning datasets and three transductive datasets. The results demonstrate the effectiveness of our method on logical reasoning over KGs in both inductive and transductive settings. 1 1 Codes are publicly available at https://github.com/ WangsyGit/InductiveLR . 𝑞 ! = 𝑣 ? .∃v:Win(TuringAward, v) ∧ Citizen(Canada, v) ∧ Graduate(v, 𝑣 ? ) Canada Turing Award W in C it iz e n v 𝑣 ? Graduate 𝑞 # = 𝑣 ? .∃v :Win(AcademyAwards, v) ∧ Citizen(Canada, v) ∧ MaidenWork(v, 𝑣 ? ) Canada Academy Awards 𝑣 ? Maiden work

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.

5 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

  • KnowLog: Knowledge Enhanced Pre-trained Language Model for Log Understanding cites Inductive Entity Representations from Text via Link Prediction
  • Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge Graphs cites Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge Graphs
  • Conditional Logical Message Passing Transformer for Complex Query Answering cites Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge Graphs
  • Improving Complex Reasoning over Knowledge Graph with Logic-Aware Curriculum Tuning cites Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge Graphs
  • Knowledge Reasoning Language Model: Unifying Knowledge and Language for Inductive Knowledge Graph Reasoning cites Effective Instruction Parsing Plugin for Complex Logical Query Answering on Knowledge Graphs
  • Knowledge Reasoning Language Model: Unifying Knowledge and Language for Inductive Knowledge Graph Reasoning cites Inductive Relation Prediction by Subgraph Reasoning
  • Inductive Relation Prediction by BERT cites Inductive Relation Prediction by Subgraph Reasoning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. KnowLog: Knowledge Enhanced Pre-trained Language Model for Log UnderstandingLipeng Ma, Weidong Yang, Bo Xu, Sihang Jiang et al.ICSE 2024 · 26 citations
  2. Improving Complex Reasoning over Knowledge Graph with Logic-Aware Curriculum TuningTianle Xia, Liang Ding, Guojia Wan, Yibing Zhan et al.AAAI 2025 · 19 citations
  3. 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
  4. Conditional Logical Message Passing Transformer for Complex Query AnsweringChongzhi Zhang, Zhiping Peng, Junhao Zheng, Qianli MaKDD 2024 · 3 citations
  5. Knowledge Reasoning Language Model: Unifying Knowledge and Language for Inductive Knowledge Graph ReasoningXingrui Zhuo, Jiapu Wang, Gongqing Wu, Zhongyuan Wang et al.ICLR 2026 · 2 citations

Builds on8

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Inductive Relation Prediction by Subgraph ReasoningKomal K. Teru, Etienne G. Denis, William L. HamiltonICML 2020 · 493 citations
  3. Inductive Entity Representations from Text via Link PredictionDaniel Daza, Michael Cochez, Paul GrothWWW 2021 · 129 citations
  4. Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge GraphsNurendra Choudhary, Nikhil Rao, Sumeet Katariya, Karthik Subbian et al.WWW 2021 · 73 citations
  5. Inductive Relation Prediction by BERTHanwen Zha, Zhiyu Chen, Xifeng YanAAAI 2022 · 69 citations

Related papers

  1. Inductive Logical Query Answering in Knowledge GraphsMichael Galkin, Zhaocheng Zhu, Hongyu Ren, Jian TangNeurIPS 2022 · 36 citations
  2. A Foundation Model for Zero-shot Logical Query ReasoningMichael Galkin, Jincheng Zhou, Bruno Ribeiro, Jian Tang et al.NeurIPS 2024 · 20 citations
  3. SALMON: A Structure-Aware Language Model with logicality and densification strategy for Temporal Knowledge Graph ReasoningFu Zhang, Jinghao Lin, Jingwei ChengEMNLP Findings 2024 · 3 citations
  4. Understanding Reasoning Ability of Language Models From the Perspective of Reasoning Paths AggregationXinyi Wang, Alfonso Amayuelas, Kexun Zhang, Liangming Pan et al.ICML 2024 · 27 citations
  5. LLM as Prompter: Low-resource Inductive Reasoning on Arbitrary Knowledge GraphsKai Wang, Yuwei Xu, Zhiyong Wu, Siqiang LuoACL Findings 2024 · 13 citations
Dusk over the sea between two cliffs drawn in fine vertical lines