Memory-augmented Query Reconstruction for LLM-based Knowledge Graph Reasoning

Mufan Xu, Gewen Liang, Kehai Chen, Wei Wang, Xun Zhou +3 more
3/7/2025
cs.CL

No official code found. Best implementation: HITlgw/MemQ (6 stars, last commit 2025-10-20).

Abstract

Large language models (LLMs) have achieved remarkable performance on knowledge graph question answering (KGQA) tasks by planning and interacting with knowledge graphs. However, existing methods often confuse tool utilization with knowledge reasoning, harming readability of model outputs and giving rise to hallucinatory tool invocations, which hinder the advancement of KGQA. To address this issue, we propose Memory-augmented Query Reconstruction for LLM-based Knowledge Graph Reasoning (MemQ) to decouple LLM from tool invocation tasks using LLM-built query memory. By establishing a memory module with explicit descriptions of query statements, the proposed MemQ facilitates the KGQA process with natural language reasoning and memory-augmented query reconstruction. Meanwhile, we design an effective and readable reasoning to enhance the LLM's reasoning capability in KGQA. Experimental results that MemQ achieves state-of-the-art performance on widely used benchmarks WebQSP and CWQ.

View on arXivView PDF

Code Implementations(1)

HITlgw/MemQCommunity61%

Official Implementation of ACL 2025 paper: "Memory-augmented Query Reconstruction for LLM-based Knowledge Graph Reasoning"

61PythonMay 20, 20251 years ago
knowledge-graphlarge-language-modelsmemqreasoning

Similar Papers

Cite this paper

@article{xu2025memoryaugmented,
  title  = {Memory-augmented Query Reconstruction for LLM-based Knowledge Graph Reasoning},
  author = {Mufan Xu and Gewen Liang and Kehai Chen and Wei Wang and Xun Zhou and Muyun Yang and Tiejun Zhao and Min Zhang},
  year   = {2025},
  eprint = {2503.05193},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.05193v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.05193.svg)](https://codeofpaper.com/paper/2503.05193)

Discussion