HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models

Junyi Li, Xiaoxue Cheng, Wayne Xin Zhao, Jian-Yun Nie, Ji-Rong Wen
5/19/2023
cs.CL

Official code: RUCAIBox/HaluEval (595 stars, MIT, last commit 2024-02-12).

Abstract

Large language models (LLMs), such as ChatGPT, are prone to generate hallucinations, i.e., content that conflicts with the source or cannot be verified by the factual knowledge. To understand what types of content and to which extent LLMs are apt to hallucinate, we introduce the Hallucination Evaluation benchmark for Large Language Models (HaluEval), a large collection of generated and human-annotated hallucinated samples for evaluating the performance of LLMs in recognizing hallucination. To generate these samples, we propose a ChatGPT-based two-step framework, i.e., sampling-then-filtering. Besides, we also hire some human labelers to annotate the hallucinations in ChatGPT responses. The empirical results suggest that ChatGPT is likely to generate hallucinated content in specific topics by fabricating unverifiable information (i.e., about $19.5\%$ responses). Moreover, existing LLMs face great challenges in recognizing the hallucinations in texts. However, our experiments also prove that providing external knowledge or adding reasoning steps can help LLMs recognize hallucinations. Our benchmark can be accessed at https://github.com/RUCAIBox/HaluEval.

View on arXivView PDF

Code Implementations(1)

RUCAIBox/HaluEvalOfficial100%
MIT

This is the repository of HaluEval, a large-scale hallucination evaluation benchmark for Large Language Models.

59548PythonMay 18, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2023halueval,
  title  = {HaluEval: A Large-Scale Hallucination Evaluation Benchmark for Large Language Models},
  author = {Junyi Li and Xiaoxue Cheng and Wayne Xin Zhao and Jian-Yun Nie and Ji-Rong Wen},
  year   = {2023},
  eprint = {2305.11747},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.11747v3}
}

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

Discussion