The Hallucinations Leaderboard - An Open Effort to Measure Hallucinations in Large Language Models

Giwon Hong, Aryo Pradipta Gema, Rohit Saxena, Xiaotang Du, Ping Nie, Yu Zhao, Laura Perez-Beltrachini, Max Ryabinin, Xuanli He, Clémentine Fourrier, Pasquale MinerviniarXiv 2024

Abstract

Large Language Models (LLMs) have transformed the Natural Language Processing (NLP) landscape with their remarkable ability to understand and generate human-like text. However, these models are prone to "hallucinations" -- outputs that do not align with factual reality or the input context. This paper introduces the Hallucinations Leaderboard, an open initiative to quantitatively measure and compare the tendency of each model to produce hallucinations. The leaderboard uses a comprehensive set of benchmarks focusing on different aspects of hallucinations, such as factuality and faithfulness, across various tasks, including question-answering, summarisation, and reading comprehension. Our analysis provides insights into the performance of different models, guiding researchers and practitioners in choosing the most reliable models for their applications.

Introduction

While Large Language Models (LLMs) have become the backbone of modern Natural Language Processing, they suffer from a persistent and critical flaw: hallucinations. These occur when a model generates text that is either factually incorrect or inconsistent with the provided context. To address the lack of a unified, transparent comparison of these tendencies, we introduce the Hallucinations Leaderboard. This open-source initiative systematically quantifies hallucination rates across 20 models using 15 diverse benchmarks, revealing critical insights into the relationship between model alignment and factual accuracy.

Defining Hallucinations

Hallucinations in LLMs are generally categorized into two distinct types:

  1. Faithfulness Hallucinations: Occur when a model ignores or contradicts the provided input. For instance, a summarization task might include details not present in the source text.
  2. Factuality Hallucinations: Occur when a model generates information that contradicts real-world knowledge, such as misstating a historical fact or a person's birthplace.
Overview of Faithfulness and Factuality Hallucinations and their respective evaluation benchmarks.

Methodology and Benchmarking

The Hallucinations Leaderboard is built upon the EleutherAI Language Model Evaluation Harness. Models are evaluated in zero-shot or few-shot settings to assess their "out of the box" performance. The framework distinguishes between generative tasks (e.g., summarization) and discriminative tasks (e.g., judging statement veracity).

To provide a holistic view, we propose two aggregate metrics:

  • Factuality Score: Averaged performance across benchmarks like NQ-Open, TriviaQA, PopQA, TruthfulQA, and FEVER.
  • Faithfulness Score: Averaged performance across benchmarks like XSum, CNN/DM, RACE, SQuADv2, and NQ-Swap.

Key Insights

The Instruction-Tuning Trade-off

A significant finding is the trade-off introduced by instruction fine-tuning. While fine-tuning (e.g., Llama-2-Chat) significantly improves a model's ability to remain "faithful" to instructions, it can actually degrade "factuality." For example, Mistral-7B-Instruct showed a marked increase in faithfulness but a 4.7-point decrease in factuality compared to its base version.

Detection vs. Generation

Models generally exhibit a higher proficiency in detecting hallucinations in external text than in avoiding them during their own generation. This suggests that models may possess internal representations of truth that are not consistently surfaced during the decoding process.

The "Strong Prior" Phenomenon

In certain instruction-following tasks, very small models (e.g., GPT-Neo-125M) can outperform larger counterparts. This is attributed to their limited "parametric knowledge"; with fewer internal world facts to rely on, they are less likely to experience conflicts between their memory and the provided prompt instructions.

Results and Analysis

  • Scaling Effects: Factuality scores show consistent improvement as model size increases, indicating that larger models better internalize real-world knowledge.
  • Model Performance: Mistral-7B emerged as a particularly strong performer in factuality, especially on TriviaQA. Conversely, while Llama-2 models excelled at discriminative tasks like FEVER, they struggled with closed-book question answering (NQ-Open).
  • Alignment Success: Instruction-tuned models, such as Llama-2-13b-chat, demonstrated a +2.6 improvement in faithfulness over base versions, confirming that alignment successfully teaches models to adhere to context.

Limitations and Future Work

The current leaderboard focuses on open-source models to ensure reproducibility. However, this excludes prominent closed-source models like GPT-4. Additionally, LLMs remain highly sensitive to prompt phrasing, and static benchmarks face the risk of data contamination. Future work will incorporate complex reasoning tasks and explore self-consistency as a signal for truth.

Summary updated

BibTeX
@misc{hong2024hallucinations,
  author = {Giwon Hong and Aryo Pradipta Gema and Rohit Saxena and Xiaotang Du and Ping Nie and Yu Zhao and Laura Perez-Beltrachini and Max Ryabinin and Xuanli He and Clémentine Fourrier and Pasquale Minervini},
  title = {{The Hallucinations Leaderboard - An Open Effort to Measure Hallucinations in Large Language Models}},
  year = {2024},
  eprint = {2404.05904},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.05904},
}
Figure