Can Knowledge Graphs Make Large Language Models More Trustworthy? An Empirical Study Over Open-ended Question Answering

Yuan Sui, Yufei He, Zifeng Ding, Bryan Hooi

Abstract

Large Language Models (LLMs) often suffer from hallucinations, particularly in open-ended reasoning tasks. This study introduces OKGQA, a novel benchmark designed to evaluate whether Knowledge Graphs (KGs) can improve LLM factuality in complex scenarios. By implementing a unified framework for graph-guided retrieval and generation, we demonstrate that structured external knowledge significantly boosts factual precision and reasoning transparency, even when the underlying graph is partially corrupted.

Introduction

While LLMs excel at generating fluent text, they frequently produce authoritative-sounding but false information. Existing efforts to mitigate these "hallucinations" using Knowledge Graphs have primarily focused on closed-ended tasks (e.g., simple fact retrieval). However, these narrow evaluations fail to reflect real-world AI usage, such as explanation, comparison, and prediction. This research addresses this gap by introducing a rigorous, open-ended benchmark that tests an LLM's ability to handle complex "Why" and "How" questions while remaining grounded in structured truth.

Methods: Graph-Guided Retrieval and Generation

The researchers propose a two-stage framework to integrate structured knowledge into the generative process:

  1. Graph-guided Retrieval (G-retrieval): Instead of simple keyword matching, the system employs a "prize-cost trade-off" strategy to identify relevant information. It evaluates three distinct retrieval forms:
  2. Triplet-retrieval: Individual (subject, relation, object) facts.
  3. Path-retrieval: Chains of interconnected facts.
  4. Sub-graph retrieval: Dense, connected neighborhoods of information identified via the Prize-Collecting Steiner Tree algorithm.
  5. Graph-guided Generation (G-generator): The LLM utilizes the retrieved structural context to produce detailed, paragraph-long responses.
The proposed framework for KG-augmented generation, featuring graph-guided retrieval and generation stages.

To evaluate robustness, the authors also created OKGQA-P, a variant where the KG is deliberately "poisoned" (e.g., swapping relations or deleting edges) to determine the model's breaking point.

The OKGQA Benchmark

The OKGQA benchmark consists of over 2,000 open-ended queries categorized into 10 reasoning types, including Cause Explanation, Trend Prediction, and Contrast Analysis. All queries are grounded in DBpedia, a structured representation of Wikipedia. This setup allows for a clear comparison between a model's internal knowledge and its ability to leverage external, verifiable data.

Key Results and Insights

Subgraphs Provide the Best Context

While simple triplets offer isolated facts, subgraphs provide the structural context necessary for complex reasoning. Subgraph-based retrieval consistently outperformed both paths and triplets, particularly in descriptive and explanatory tasks. This suggests that the "neighborhood" of a fact is often as important as the fact itself for high-quality generation.

Performance comparison across query categories, highlighting the superiority of subgraph-based retrieval over simpler methods and the baseline.

Significant Factuality Gains

Empirical results show massive improvements in reliability. For instance, using GPT-4o with KG triplets boosted the FActScore (factual precision) from 55.35% to 72.55%. These gains were consistent across various model architectures, including Llama-3.1 and Mistral, proving the method's broad applicability.

Robustness to Noise

One of the study's most striking findings is the models' resilience. KG-augmented LLMs continued to outperform "naked" LLMs even when the knowledge graph was up to 50% corrupted. This indicates that even an imperfect external reference is significantly better than relying solely on the model's internal weights.

Conclusion and Future Directions

Integrating Knowledge Graphs into LLMs transforms them from black-box generators into traceable reasoning engines. By providing a clear path back to structured sources, KG-augmentation enhances both trust and transparency. Future work will focus on addressing the limitations of static KGs by exploring real-time graph updates and "on-the-fly" graph construction from unstructured text to handle rapidly evolving information.

Summary updated

BibTeX
@inproceedings{sui2025can,
  author = {Yuan Sui and Yufei He and Zifeng Ding and Bryan Hooi},
  title = {{Can Knowledge Graphs Make Large Language Models More Trustworthy? An Empirical Study Over Open-ended Question Answering}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure