Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Survey

Garima Agrawal, Tharindu Kumarage, Zeyad Alghamdi, Huan Liu

Abstract

Large Language Models (LLMs) frequently suffer from "hallucinations," generating factually incorrect information due to inherent knowledge gaps and the probabilistic nature of token prediction. This survey explores the integration of Knowledge Graphs (KGs)—structured repositories of real-world facts—as a reliable "ground truth" to mitigate these issues. By categorizing research into knowledge-aware inference, training, and validation, we demonstrate how structured data significantly enhances factual accuracy, particularly in smaller models and complex reasoning tasks.

The Hallucination Challenge

Despite their impressive capabilities, LLMs often prioritize the most likely next word over the most truthful one. This leads to plausible-sounding but false outputs. While text-based Retrieval-Augmented Generation (RAG) helps, unstructured text can be noisy. Knowledge Graphs offer a solution by storing information as precise triples (e.g., Michael Jordan -> played for -> Chicago Bulls), providing a structured anchor for LLM outputs.

A Taxonomy of KG-Augmented LLMs

The integration of KGs into LLM workflows can be organized into three distinct stages: inference, training, and validation.

Taxonomy of KG-augmented LLM methods, categorizing approaches into inference, training, and validation stages.

1. Knowledge-aware Inference

This stage augments the model at "test time" without altering its weights:

  • KG-Augmented Retrieval: Finding relevant KG triples to provide as context in the prompt (e.g., KAPING).
  • KG-Augmented Reasoning: Using KGs to guide multi-step logic, grounding "Chain-of-Thought" processes in graph paths (e.g., RoG, MindMap).
  • KG-Controlled Generation: Directing the LLM to generate structured queries (like SPARQL) to fetch exact data.

2. Knowledge-aware Training

This involves injecting KG data directly into the model's parameters:

  • Pre-training: Using KGs to mask entities during training so the model learns specific relationships (e.g., ERNIE).
  • Fine-tuning: Training on synthetic sentences derived from KGs to specialize the model in certain domains (e.g., SKILL).

3. Knowledge-aware Validation

KGs act as a post-hoc "fact-checker" to verify and correct the LLM’s generated responses (e.g., FOLK).

Research indicates a significant performance boost across various benchmarks, including Mintaka for QA and HotpotQA for reasoning. Notable findings include:

  • The "Small Model" Advantage: Smaller LLMs benefit most from KG retrieval. With limited internal parameter space, external KG augmentation can improve answer correctness by over 80%.
  • Reasoning vs. Retrieval: Larger models like GPT-4 benefit more from KG-guided reasoning than simple retrieval. Guided reasoning can increase accuracy in complex tasks from approximately 67% to 86%.
  • The Shift to Inference: As shown in the evolution of the field, research has shifted from expensive pre-training toward cost-effective inference-time augmentation. This allows for "plug-and-play" updates with the latest facts.
Evolution of KG-augmented LLM research from 2019 to 2023, showing a growing trend toward inference-time methods like retrieval and reasoning.

Future Outlook and Limitations

While promising, several hurdles remain. The quality and potential bias of the underlying Knowledge Graph directly impact the LLM's output. Furthermore, most KGs are static; future research must focus on Dynamic KGs that update in real-time. There is also a growing need for Multi-Modal KGs that integrate images and video to help LLMs understand the world beyond text. Finally, the computational overhead of fact-checking every sentence against massive graphs remains a challenge for low-latency applications.

Summary updated

BibTeX
@inproceedings{agrawal2024can,
  author = {Garima Agrawal and Tharindu Kumarage and Zeyad Alghamdi and Huan Liu},
  title = {{Can Knowledge Graphs Reduce Hallucinations in LLMs? : A Survey}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.219},
}
Figure