Enrich-on-Graph: Query-Graph Alignment for Complex Reasoning with LLM Enriching

Songze Li, Zhiqiang Liu, Zhengke Gui, Huajun Chen, Wen Zhang

TL;DR

This paper introduces Enrich-on-Graph (EoG), a novel framework that uses Large Language Models (LLMs) to enrich knowledge graphs (KGs), making them more aligned with user queries. This alignment significantly improves the performance of KGQA systems, enabling more accurate and efficient complex reasoning.

What Problem Does This Paper Address?

Large Language Models (LLMs) are powerful but often struggle with factual accuracy and hallucinations, especially in knowledge-intensive tasks like Knowledge Graph Question Answering (KGQA). This is largely due to a "semantic gap" between the structured, often rigid, format of knowledge graphs and the flexible, natural language of user queries. Existing methods often fail to bridge this gap effectively, leading to noisy or irrelevant information being used for reasoning. This paper aims to solve this by creating a more direct and semantically aligned connection between queries and KGs.

Methods

EoG is a three-stage framework designed to bridge the semantic gap:

  1. Parsing: Both the user query and the knowledge graph are parsed into a common format. This involves breaking down complex queries into sub-queries and transforming KG triples into "graph queries."
  2. Focus-Aware Multi-Channel Pruning: This stage removes irrelevant or noisy information from the KG. It uses multiple "recall channels" to consider both global and local query focuses, ensuring that the pruned graph is more relevant to the specific question.
  3. Structure-Driven Knowledge Enriching: This is the core innovation. EoG uses LLMs to enrich the pruned KG by adding new relationships and hierarchical information. It leverages properties like similarity, symmetry, and transitivity to align the KG's structure with the query's intent, effectively resolving structural mismatches.

The enriched graph then acts as a more reliable external knowledge source for LLMs to perform reasoning.

Datasets

The paper evaluates EoG on two standard KGQA benchmark datasets:

  • WebQSP: Contains ~4,737 questions with simple and two-hop reasoning.
  • CWQ (Complex WebQuestions): Features ~34,689 questions requiring complex 2-4 hop reasoning.

Both datasets use Freebase as their underlying knowledge graph.

Key Insights and Ideas

  • The Semantic Gap is Key: The paper strongly emphasizes that the core challenge in KGQA is the semantic mismatch (focus and structure) between queries and KGs.
  • LLMs as Enrichers, Not Just Reasoners: Instead of solely relying on LLMs for reasoning over raw KGs, EoG leverages their prior knowledge to improve the KG itself, making it more suitable for reasoning.
  • Query-Aligned Graphs are Crucial: The generated query-aligned graphs (G*) are shown to be significantly more effective for LLM reasoning than vanilla KGs.
  • Novel Graph Quality Metrics: The introduction of Relevance, Semantic Richness, and Redundancy metrics provides a principled way to evaluate the quality of generated graphs, which are theoretically linked to the optimization objective.

Key Results

  • State-of-the-Art Performance: EoG achieves state-of-the-art results on both CWQ and WebQSP datasets, outperforming previous methods by significant margins (e.g., improving Hits@1 by 13.1% and F1 by 15.8% on CWQ compared to RoG).
  • Efficiency: EoG requires significantly fewer LLM calls and less token usage compared to other advanced methods like ToG and DoG, leading to lower computational costs.
  • Robustness and Adaptability: The framework demonstrates strong performance across different LLM base models and is plug-and-play, enhancing other KGQA methods when used as a module.
  • Improved Graph Quality: The generated graphs show higher Relevance and Semantic Richness, with lower Redundancy, as validated by the proposed metrics and visualizations.

Limitations and Future Work

  • Domain-Specific Ontologies: The current "Feature Enrich" module generates general-domain ontologies. Future work could explore designing domain-specific ontology hierarchies for better performance on specialized tasks.
  • LLM Scale Exploration: The study primarily used ChatGPT-series LLMs. Further investigation into how LLMs of different parameter scales affect alignment performance is suggested.
  • Parameter Sensitivity: While experiments showed minimal impact of temperature settings, exploring other LLM parameters could be beneficial.

Summary updated

BibTeX
@inproceedings{li2025enrich,
  author = {Songze Li and Zhiqiang Liu and Zhengke Gui and Huajun Chen and Wen Zhang},
  title = {{Enrich-on-Graph: Query-Graph Alignment for Complex Reasoning with LLM Enriching}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure