Preprint
Large Language Models

Distinguishing Ignorance from Error in LLM Hallucinations

Adi Simhi, Jonathan Herzig, Idan Szpektor, Yonatan Belinkov
October 29, 2024arXiv.org18 citations

18

Citations

0

Influential Citations

arXiv.org

Venue

2024

Year

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 .

Analysis

Why This Paper Matters

Large language models (LLMs) are notorious for generating factually incorrect outputs, known as hallucinations. Most existing work treats all hallucinations as a uniform problem, focusing on detecting or mitigating them without considering their underlying cause. This paper by Simhi et al. challenges that assumption by introducing a critical distinction: hallucinations where the model lacks the correct knowledge (HK-) versus those where the model has the knowledge but still answers incorrectly (HK+). This distinction is practically important because the two types may require different mitigation strategies—for example, HK- might be addressed by augmenting the model's knowledge base, while HK+ might require better reasoning or calibration.

The paper's findings that HK+ hallucinations are prevalent across models and datasets underscore that knowledge possession alone does not guarantee correct output. This shifts the focus from purely knowledge-based fixes to also addressing reasoning errors. Moreover, the observation that different models hallucinate on different examples suggests that a one-size-fits-all detector may be suboptimal, motivating the development of model-specific hallucination datasets. This work thus provides a more nuanced framework for understanding and tackling hallucinations, which is highly relevant for practitioners deploying LLMs in high-stakes applications.

Technical Contributions

  • Taxonomy of Hallucinations: Introduces a clear binary classification of hallucinations into HK- (knowledge absent) and HK+ (knowledge present but output wrong). This is a conceptual advance over prior work that treats all hallucinations as knowledge failures.
  • Method for Distinguishing Types: Proposes a method to determine whether the model's parameters contain the correct answer, enabling the classification of each hallucination instance.
  • Empirical Demonstration: Shows that HK+ hallucinations are not rare but occur frequently across different LLMs and datasets, validating the practical relevance of the taxonomy.
  • Mitigation Benefit: Demonstrates that using the HK-/HK+ distinction improves hallucination mitigation, suggesting that tailored strategies are more effective than generic ones.
  • Model-Specific Datasets: Highlights that different models hallucinate on different examples, advocating for the creation of model-specific training data for hallucination detectors.

Results

The abstract reports that HK+ hallucinations are prevalent across models and datasets, but no specific numerical metrics (e.g., percentages, accuracy gains) are provided. The key result is that distinguishing between HK- and HK+ leads to better mitigation outcomes, though the magnitude of improvement is not quantified. The finding that different models hallucinate on different examples is qualitative but supports the practical recommendation for model-specific datasets.

Significance

This paper has broad implications for the AI field, particularly for LLM reliability and safety. By reframing hallucinations as a heterogeneous phenomenon, it opens new avenues for research into targeted mitigation techniques. Practitioners can use this framework to diagnose why their model hallucinates and apply appropriate fixes—whether by augmenting knowledge or improving reasoning. The call for model-specific datasets also encourages more personalized evaluation and debugging, which could lead to more robust LLM deployments. Overall, this work advances the understanding of LLM failures and provides a foundation for more effective hallucination management.