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 * Corresponding author 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 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 be3344fd-a4d8-40cd-b9bf-02ddb490aec1Cited by top-tier papers5
- KnowLog: Knowledge Enhanced Pre-trained Language Model for Log UnderstandingLipeng Ma, Weidong Yang, Bo Xu, Sihang Jiang et al.ICSE 2024 · 26 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
- Conditional Logical Message Passing Transformer for Complex Query AnsweringChongzhi Zhang, Zhiping Peng, Junhao Zheng, Qianli MaKDD 2024 · 3 citations
- 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
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Inductive Relation Prediction by Subgraph ReasoningKomal K. Teru, Etienne G. Denis, William L. HamiltonICML 2020 · 493 citations
- Inductive Entity Representations from Text via Link PredictionDaniel Daza, Michael Cochez, Paul GrothWWW 2021 · 129 citations
- Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge GraphsNurendra Choudhary, Nikhil Rao, Sumeet Katariya, Karthik Subbian et al.WWW 2021 · 73 citations
- Inductive Relation Prediction by BERTHanwen Zha, Zhiyu Chen, Xifeng YanAAAI 2022 · 69 citations
Related papers
- Inductive Logical Query Answering in Knowledge GraphsMichael Galkin, Zhaocheng Zhu, Hongyu Ren, Jian TangNeurIPS 2022 · 36 citations
- A Foundation Model for Zero-shot Logical Query ReasoningMichael Galkin, Jincheng Zhou, Bruno Ribeiro, Jian Tang et al.NeurIPS 2024 · 20 citations
- Simple Yet Effective: Structure Guided Pre-trained Transformer for Multi-modal Knowledge Graph ReasoningKe Liang, Lingyuan Meng, Yue Liu, Meng Liu et al.ACM MM 2024 · 29 citations
- 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
- Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical QueriesXiao Liu, Shiyu Zhao, Kai Su, Yukuo Cen et al.KDD 2022 · 38 citations
