Distinguishing Ignorance from Error in LLM Hallucinations

Adi Simhi, Jonathan Herzig, Idan Szpektor, Yonatan Belinkov
10/29/2024
cs.CL

Official code: technion-cs-nlp/hallucination-mitigation (23 stars, last commit 2024-12-17).

Abstract

Large language models (LLMs) are susceptible to hallucinations -- factually incorrect outputs -- leading to a large body of work on detecting and mitigating such cases. We argue that it is important to distinguish between two types of hallucinations: ones where the model does not hold the correct answer in its parameters, which we term HK-, and ones where the model answers incorrectly despite having the required knowledge, termed HK+. We first find that HK+ hallucinations are prevalent and occur across models and datasets. Then, we demonstrate that distinguishing between these two cases is beneficial for mitigating hallucinations. Importantly, we show that different models hallucinate on different examples, which motivates constructing model-specific hallucination datasets for training detectors. Overall, our findings draw attention to classifying types of hallucinations and provide means to handle them more effectively. The code is available at https://github.com/technion-cs-nlp/hallucination-mitigation .

View on arXivView PDF

Code Implementations(1)

235PythonApr 15, 20241 years ago

Similar Papers

Cite this paper

@article{simhi2024distinguishing,
  title  = {Distinguishing Ignorance from Error in LLM Hallucinations},
  author = {Adi Simhi and Jonathan Herzig and Idan Szpektor and Yonatan Belinkov},
  year   = {2024},
  eprint = {2410.22071},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.22071v2}
}

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

Discussion