InterrogateLLM: Zero-Resource Hallucination Detection in LLM-Generated Answers

Yakir Yehuda, Itzik Malkiel, Oren Barkan, Jonathan Weill, Royi Ronen +1 more
3/5/2024
cs.CLcs.LG

No official code found. Best implementation: yakir-yehuda/InterrogateLLM (11 stars, last commit 2024-08-20).

Abstract

Despite the many advances of Large Language Models (LLMs) and their unprecedented rapid evolution, their impact and integration into every facet of our daily lives is limited due to various reasons. One critical factor hindering their widespread adoption is the occurrence of hallucinations, where LLMs invent answers that sound realistic, yet drift away from factual truth. In this paper, we present a novel method for detecting hallucinations in large language models, which tackles a critical issue in the adoption of these models in various real-world scenarios. Through extensive evaluations across multiple datasets and LLMs, including Llama-2, we study the hallucination levels of various recent LLMs and demonstrate the effectiveness of our method to automatically detect them. Notably, we observe up to 87% hallucinations for Llama-2 in a specific experiment, where our method achieves a Balanced Accuracy of 81%, all without relying on external knowledge.

View on arXivView PDF

Code Implementations(1)

114PythonMar 19, 20242 years ago

Similar Papers

Cite this paper

@article{yehuda2024interrogatellm,
  title  = {InterrogateLLM: Zero-Resource Hallucination Detection in LLM-Generated Answers},
  author = {Yakir Yehuda and Itzik Malkiel and Oren Barkan and Jonathan Weill and Royi Ronen and Noam Koenigstein},
  year   = {2024},
  eprint = {2403.02889},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.02889v3}
}

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

Discussion