arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.10793cs.CLcs.AIcs.LG
收藏

GraphEval:一种基于知识图谱的大语言模型幻觉评估框架

GraphEval: A Knowledge-Graph Based LLM Hallucination Evaluation Framework

University of Bristol(布里斯托尔大学);Amazon Science(亚马逊科学研究院)

Hannah Sansford, Nicholas Richardson, Hermina Petric Maretic, Juba Nait Saada

AI总结:

针对现有大语言模型幻觉评估方法可解释性弱、核查不全面、成本高的问题,提出基于知识图谱的GraphEval框架,可定位幻觉位置,结合NLI模型提升平衡准确率,还衍生出GraphCorrect方法可纠正多数幻觉。

摘要:

针对大语言模型(LLM)的响应,评估其与给定知识的一致性、检测矛盾内容(即幻觉)的方法,对LLM应用而言正变得愈发重要。现有指标存在诸多不足:无法提供可解释的判定结果,难以系统性核查响应中的全部信息,且通常计算成本过高,难以投入实际应用。我们提出GraphEval——一种基于知识图谱(KG)结构表征信息的幻觉评估框架。该方法能识别KG中易产生幻觉的特定三元组,因此相较于以往方法,若响应中存在幻觉,它能更清晰地指明幻觉出现的具体位置。此外,将我们的方法与前沿自然语言推理(NLI)模型结合使用时,在各类幻觉基准测试上的平衡准确率,优于直接使用原始NLI模型的效果。最后,我们探索了利用GraphEval结合KG结构进行幻觉修正的应用,将该方法命名为GraphCorrect,并证实大多数幻觉确实可以被纠正。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑