Mitigating Large Language Model Hallucinations via Autonomous Knowledge Graph-based Retrofitting

Xinyan Guan, Yanjiang Liu, Hongyu Lin, Yaojie Lu, Ben He +2 more
11/22/2023
cs.CL

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Incorporating factual knowledge in knowledge graph is regarded as a promising approach for mitigating the hallucination of large language models (LLMs). Existing methods usually only use the user's input to query the knowledge graph, thus failing to address the factual hallucination generated by LLMs during its reasoning process. To address this problem, this paper proposes Knowledge Graph-based Retrofitting (KGR), a new framework that incorporates LLMs with KGs to mitigate factual hallucination during the reasoning process by retrofitting the initial draft responses of LLMs based on the factual knowledge stored in KGs. Specifically, KGR leverages LLMs to extract, select, validate, and retrofit factual statements within the model-generated responses, which enables an autonomous knowledge verifying and refining procedure without any additional manual efforts. Experiments show that KGR can significantly improve the performance of LLMs on factual QA benchmarks especially when involving complex reasoning processes, which demonstrates the necessity and effectiveness of KGR in mitigating hallucination and enhancing the reliability of LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{guan2023mitigating,
  title  = {Mitigating Large Language Model Hallucinations via Autonomous Knowledge Graph-based Retrofitting},
  author = {Xinyan Guan and Yanjiang Liu and Hongyu Lin and Yaojie Lu and Ben He and Xianpei Han and Le Sun},
  year   = {2023},
  eprint = {2311.13314},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.13314v1}
}

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/2311.13314.svg)](https://codeofpaper.com/paper/2311.13314)

Discussion