GraphEval: A Knowledge-Graph Based LLM Hallucination Evaluation Framework

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sansford, Hannah, Richardson, Nicholas, Maretic, Hermina Petric, Saada, Juba Nait
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909255523631104
author Sansford, Hannah
Richardson, Nicholas
Maretic, Hermina Petric
Saada, Juba Nait
author_facet Sansford, Hannah
Richardson, Nicholas
Maretic, Hermina Petric
Saada, Juba Nait
contents Methods to evaluate Large Language Model (LLM) responses and detect inconsistencies, also known as hallucinations, with respect to the provided knowledge, are becoming increasingly important for LLM applications. Current metrics fall short in their ability to provide explainable decisions, systematically check all pieces of information in the response, and are often too computationally expensive to be used in practice. We present GraphEval: a hallucination evaluation framework based on representing information in Knowledge Graph (KG) structures. Our method identifies the specific triples in the KG that are prone to hallucinations and hence provides more insight into where in the response a hallucination has occurred, if at all, than previous methods. Furthermore, using our approach in conjunction with state-of-the-art natural language inference (NLI) models leads to an improvement in balanced accuracy on various hallucination benchmarks, compared to using the raw NLI models. Lastly, we explore the use of GraphEval for hallucination correction by leveraging the structure of the KG, a method we name GraphCorrect, and demonstrate that the majority of hallucinations can indeed be rectified.
format Preprint
id arxiv_https___arxiv_org_abs_2407_10793
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle GraphEval: A Knowledge-Graph Based LLM Hallucination Evaluation Framework
Sansford, Hannah
Richardson, Nicholas
Maretic, Hermina Petric
Saada, Juba Nait
Computation and Language
Artificial Intelligence
Machine Learning
Methods to evaluate Large Language Model (LLM) responses and detect inconsistencies, also known as hallucinations, with respect to the provided knowledge, are becoming increasingly important for LLM applications. Current metrics fall short in their ability to provide explainable decisions, systematically check all pieces of information in the response, and are often too computationally expensive to be used in practice. We present GraphEval: a hallucination evaluation framework based on representing information in Knowledge Graph (KG) structures. Our method identifies the specific triples in the KG that are prone to hallucinations and hence provides more insight into where in the response a hallucination has occurred, if at all, than previous methods. Furthermore, using our approach in conjunction with state-of-the-art natural language inference (NLI) models leads to an improvement in balanced accuracy on various hallucination benchmarks, compared to using the raw NLI models. Lastly, we explore the use of GraphEval for hallucination correction by leveraging the structure of the KG, a method we name GraphCorrect, and demonstrate that the majority of hallucinations can indeed be rectified.
title GraphEval: A Knowledge-Graph Based LLM Hallucination Evaluation Framework
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2407.10793