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

Xiaoze Liu, Feijie Wu, Tianyang Xu, Zhuo Chen, Yichi Zhang +2 more
4/1/2024
cs.CLcs.AIcs.LG

Official code: xz-liu/GraphEval (35 stars, MIT, last commit 2024-09-03).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

xz-liu/GraphEvalOfficial100%
MIT

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

353Shell, PythonMar 30, 20242 years agoMIT

Cite this paper

@article{liu2024evaluating,
  title  = {Evaluating the Factuality of Large Language Models using Large-Scale Knowledge Graphs},
  author = {Xiaoze Liu and Feijie Wu and Tianyang Xu and Zhuo Chen and Yichi Zhang and Xiaoqian Wang and Jing Gao},
  year   = {2024},
  eprint = {2404.00942},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00942v1}
}

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

Discussion