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

使用大规模知识图谱评估大型语言模型的事实性

Evaluating the Factuality of Large Language Models using Large-Scale Knowledge Graphs

Purdue University(普渡大学);Zhejiang University(浙江大学)

Xiaoze Liu, Feijie Wu, Tianyang Xu, Zhuo Chen, Yichi Zhang, Xiaoqian Wang, Jing Gao

AI总结:

本文提出GraphEval,利用包含超千万事实的大规模知识图谱构建测试集,并通过评判模型评估LLM回答的事实正确性,在保证评估一致性的同时显著降低成本。

摘要:

大型语言模型(LLMs)的出现显著改变了人工智能格局,提升了机器学习与人工智能能力。事实性问题对LLMs而言是一项关键关切,因为它们可能生成事实上不正确的回答。在本文中,我们提出GraphEval,利用一个规模极大的测试数据集来评估LLM的性能。具体而言,该测试数据集从一个包含超过1000万条事实的大型知识图谱中获取,无需昂贵的人工标注。与基于生成回答来评估LLM的传统方法不同,GraphEval通过构建一个评判模型来估计LLM所给答案的正确性,从而简化了评估流程。我们的实验表明,该评判模型的事实性评估与LLM生成输出的正确性高度一致,同时大幅降低了评估成本。此外,我们的发现为LLM在不同指标上的表现提供了有价值的见解,并突显了未来在确保LLM输出事实完整性方面改进的潜力。代码已公开于 https://github.com/xz-liu/GraphEval。

英文摘要:

The advent of Large Language Models (LLMs) has significantly transformed the AI landscape, enhancing machine learning and AI capabilities. Factuality issue is a critical concern for LLMs, as they may generate factually incorrect responses. In this paper, we propose GraphEval to evaluate an LLM's performance using a substantially large test dataset. Specifically, the test dataset is retrieved from a large knowledge graph with more than 10 million facts without expensive human efforts. Unlike conventional methods that evaluate LLMs based on generated responses, GraphEval streamlines the evaluation process by creating a judge model to estimate the correctness of the answers given by the LLM. Our experiments demonstrate that the judge model's factuality assessment aligns closely with the correctness of the LLM's generated outputs, while also substantially reducing evaluation costs. Besides, our findings offer valuable insights into LLM performance across different metrics and highlight the potential for future improvements in ensuring the factual integrity of LLM outputs. The code is publicly available at https://github.com/xz-liu/GraphEval.

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

↑