# Improving Multi-hop Logical Reasoning in Knowledge Graphs with Context-Aware Query Representation Learning

Source: [Improving Multi-hop Logical Reasoning in Knowledge Graphs with Context-Aware Query Representation Learning](<https://www.sota2.com/research/paper/68fa73971e209131cea5d73b>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-04T04:54:58.076Z

Authors: Jeonghoon Kim, Heesoo Jung, Hyeju Jang, Hogun Park

Published: 2024-06-11T07:48:20.000Z

## Abstract

Multi-hop logical reasoning on knowledge graphs is a pivotal task in natural language processing, with numerous approaches aiming to answer First-Order Logic (FOL) queries. Recent geometry (e.g., box, cone) and probability (e.g., beta distribution)-based methodologies have effectively addressed complex FOL queries. However, a common challenge across these methods lies in determining accurate geometric bounds or probability parameters for these queries. The challenge arises because existing methods rely on linear sequential operations within their computation graphs, overlooking the logical structure of the query and the relation-induced information that can be gleaned from the relations of the query, which we call the context of the query. To address the problem, we propose a model-agnostic methodology that enhances the effectiveness of existing multi-hop logical reasoning approaches by fully integrating the context of the FOL query graph. Our approach distinctively discerns (1) the structural context inherent to the query structure and (2) the relation-induced context unique to each node in the query graph as delineated in the corresponding knowledge graph. This dual-context paradigm helps nodes within a query graph attain refined internal representations throughout the multi-hop reasoning steps. Through experiments on two datasets, our method consistently enhances the three multi-hop reasoning foundation models, achieving performance improvements of up to 19.5%. Our code is available at https://github.com/kjh9503/caqr.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Answering Conjunctive Queries without Negation on FB15k-237 (test)](<https://www.sota2.com/research/sota/answering-conjunctive-queries-without-negation-on-fb15k-237-test.md>): Answering conjunctive queries without negation; FB15k-237 (test); MRR (1p): 42.92.

- [Complex Query Answering on NELL (test)](<https://www.sota2.com/research/sota/complex-query-answering-on-nell-test.md>): Complex Query Answering; NELL (test); 1-Hop Score: 57.15.

- [Logical Query Answering on NELL](<https://www.sota2.com/research/sota/logical-query-answering-on-nell.md>): Logical Query Answering; NELL; MRR (2in): 0.061.

- [Multi-hop Logical Query Answering on FB15k-237 (test)](<https://www.sota2.com/research/sota/multi-hop-logical-query-answering-on-fb15k-237-test.md>): Multi-hop Logical Query Answering; FB15k-237 (test); Avg P Score: 0.231.

- [Knowledge Graph Reasoning on FB15k-237 (test)](<https://www.sota2.com/research/sota/knowledge-graph-reasoning-on-fb15k-237-test.md>): Knowledge Graph Reasoning; FB15k-237 (test); HITS@3 (Avg): 6.85.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2406.07034>)

[PDF](<https://arxiv.org/pdf/2406.07034.pdf>)

[Implementation](<https://github.com/kjh9503/caqr>)
