Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Query Structure Modeling for Inductive Logical Reasoning Over Knowledge Graphs

About

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 structure-modeled 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.

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

Related benchmarks

TaskDatasetResultRank
Logical reasoningFB15K-237 transductive (test)
Avg Hits@329.6
5
Logical reasoningFB15k transductive (test)
Avg H@359.6
5
Logical reasoningNELL995 transductive (test)
Avg H@334.2
5
Inductive logical reasoningFB15k-237 V2 (test)
Avg Score17.8
4
Inductive logical reasoningNELL V3 (test)
Avg Success Rate0.101
4
Complex Logical ReasoningNELL995 Inductive cross-KG (test)
H@10 (Avg)0.069
2
Complex Logical ReasoningFB15k Inductive cross-KG (test)
Hits@10 (Average)9.8
2
Showing 7 of 7 rows

Other info

Code

Follow for update