HaluEval-Wild: Evaluating Hallucinations of Language Models in the Wild

Zhiying Zhu, Zhiqing Sun, Yiming Yang

Abstract

Hallucinations pose a significant challenge to the reliability of large language models (LLMs) in critical domains. Recent benchmarks designed to assess LLM hallucinations within conventional NLP tasks, such as knowledge-intensive question answering (QA) and summarization, are insufficient for capturing the complexities of user-LLM interactions in dynamic, real-world settings. To address this gap, we introduce HaluEval-Wild, the first benchmark specifically designed to evaluate LLM hallucinations in the wild. We meticulously collect challenging (adversarially filtered by Alpaca) user queries from existing real-world user-LLM interaction datasets, including ShareGPT, to evaluate the hallucination rates of various LLMs. Upon analyzing the collected queries, we categorize them into five distinct types, which enables a fine-grained analysis of the types of hallucinations LLMs exhibit, and synthesize the reference answers with the powerful GPT-4 model and retrieval-augmented generation (RAG). Our benchmark offers a novel approach towards enhancing our comprehension and improvement of LLM reliability in scenarios reflective of real-world interactions.

Introduction

While Large Language Models (LLMs) have demonstrated remarkable capabilities, they remain prone to "hallucinations"—generating text that is fluent but factually incorrect or unverifiable. Existing benchmarks for detecting these errors typically rely on traditional NLP tasks like machine translation or summarization. However, these do not capture the messy, dynamic nature of how people actually use LLMs in the real world. There is a significant gap between performance on "clean" academic tasks and reliability in "wild" user-LLM interactions. HaluEval-Wild addresses this by focusing on 500 challenging real-world queries.

Methodology

The researchers developed a multi-step pipeline to create a representative and challenging benchmark:

  1. Challenging Query Collection: Using the ShareGPT dataset, they trained a Llama-2-7B classifier to identify queries likely to trigger hallucinations (e.g., responses starting with "I'm sorry, but...").
  2. Fine-grained Categorization: Queries were categorized into five types: Out-of-Scope (OoS), Complex Reasoning (CR), Inappropriate Content (IC), Beyond-Modality Interaction (BM), and Confused/Erroneous Queries (CE).
  3. Reference Answer Generation: To ensure high-quality ground truth, they used GPT-4 augmented with Retrieval-Augmented Generation (RAG) to pull fresh data from search engines.
  4. Evaluation: GPT-4-as-a-Judge was employed to compare various LLM responses against these RAG-verified reference answers.
The HaluEval-Wild construction pipeline involves query collection, categorization, and RAG-based reference generation.

Key Insights

  • The "Distillation Trap": Models trained through knowledge distillation (imitating proprietary models) often rank high on chatbot leaderboards but exhibit higher hallucination rates. They learn the style of a helpful assistant without the underlying knowledge depth.
  • RAG is Essential: Even GPT-4 has a non-trivial hallucination rate (18.64%) on these tough queries. Using RAG reduced this to 5%, proving that external knowledge is critical for establishing a reliable baseline.
  • Self-Reflection: Asking a model to review its own response can reduce hallucinations, especially when the model is given a "hint" about the query type (e.g., "Complex Reasoning").

Evaluation Results

The researchers evaluated several popular models, finding a wide variance in reliability. GPT-4-Turbo was the most reliable, while models like Alpaca 7B struggled significantly. Complex Reasoning (CR) proved to be the most difficult category for almost all models.

Detailed evaluation results across various LLMs on the HaluEval-Wild benchmark, showing hallucination rates by category.

Conclusion

HaluEval-Wild reveals that standard chatbot leaderboards may mask significant factuality issues. By focusing on challenging, real-world user queries and utilizing RAG for evaluation, this benchmark provides a more rigorous assessment of LLM reliability in the wild. Future work will expand this to multi-turn dialogues and more automated reference updates.

Summary updated

Abstract

Hallucinations pose a significant challenge to the reliability of large language models (LLMs) in critical domains. Recent benchmarks designed to assess LLM hallucinations within conventional NLP tasks, such as knowledge-intensive question answering (QA) and summarization, are insufficient for capturing the complexities of user-LLM interactions in dynamic, real-world settings. To address this gap, we introduce HaluEval-Wild, the first benchmark specifically designed to evaluate LLM hallucinations in the wild. We meticulously collect challenging (adversarially filtered by Alpaca) user queries from existing real-world user-LLM interaction datasets, including ShareGPT, to evaluate the hallucination rates of various LLMs. Upon analyzing the collected queries, we categorize them into five distinct types, which enables a fine-grained analysis of the types of hallucinations LLMs exhibit, and synthesize the reference answers with the powerful GPT-4 model and retrieval-augmented generation (RAG). Our benchmark offers a novel approach towards enhancing our comprehension and improvement of LLM reliability in scenarios reflective of real-world interactions. Our benchmark is available at https://github.com/Dianezzy/HaluEval-Wild.
BibTeX
@inproceedings{zhu2025halueval,
  author = {Zhiying Zhu and Zhiqing Sun and Yiming Yang},
  title = {{HaluEval-Wild: Evaluating Hallucinations of Language Models in the Wild}},
  booktitle = {BuildingTrust @ ICLR},
  year = {2025},
  url = {https://openreview.net/forum?id=sjwX4Vif03},
}
Figure