SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2305.13585 · ACL · 2023

Query Structure Modeling for Inductive Logical Reasoning Over Knowledge Graphs

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

arXiv · PDF · Open in the Atlas

Code that ran

We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2305.13585")
get_code_for_paper("2305.13585")
have("2305.13585")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2305.13585.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2305.13585.svg)](https://syntology.ai/paper/2305.13585)

Connect an agent — have() is free.