Detecting hallucinations in large language models using semantic entropy
By Sebastian Farquhar, Jannik Kossen, Lorenz Kuhn, Yarin Gal. Nature, 2024
1,470 citations recorded by the source corpus.
Large language model (LLM) systems, such as ChatGPT1 or Gemini2, can show impressive reasoning and question-answering capabilities but often ‘hallucinate’ false outputs and unsubstantiated answers3,4. Answering unreliably or without the necessary information prevents adoption in diverse fields, with problems including fabrication of legal precedents5 or untrue facts in news articles6 and even posing a risk to human life in medical domains such as radiology7. Encouraging truthfulness through supervision or reinforcement has been only partially successful8. Researchers need a general method for detecting hallucinations in LLMs that works even with new and unseen questions to which humans might not know the answer. Here we develop new methods grounded in statistics, proposing entropy-based uncertainty estimators for LLMs to detect a subset of hallucinations—confabulations—which are arbitrary and incorrect generations. Our method addresses the fact that one idea can be expressed in many ways by computing uncertainty at the level of meaning rather than specific sequences of words. Our method works across datasets and tasks without a priori knowledge of the task, requires no task-specific data and robustly generalizes to new tasks not seen before. By detecting when a prompt is likely to produce a confabulation, our method helps users understand when they must take extra care with LLMs and opens up new possibilities for using LLMs that are otherwise prevented by their unreliability. Hallucinations (confabulations) in large language model systems can be tackled by measuring uncertainty about the meanings of generated responses rather than the text itself to improve question-answering accuracy.
Subfields: Artificial Intelligence
View Paper: https://www.semanticscholar.org/paper/f82f49c20c6acc69f884f05e3a9f1ceea91061ce
Citations in the corpus
- Embedding Trust: Semantic Isotropy Predicts Nonfactuality in Long-Form Text Generation (2025, unknown): “However, in NLI methods specifically, models have historically had limited context windows and several of the comparison algorithms grow quadratically in the number of inputs (Farquhar et al., 2024; Zhang et al., 2024; Manakul et al., 2023; Wang et al., 2024c; Chen et al., 2025).”
- LLM-confidence reranker: A training-free approach for enhancing retrieval-augmented generation systems (2026, unknown): “Drawing inspiration from Semantic Entropy (SE) (Farquhar et al., 2024), which measures uncertainty via the entropy of semantically clustered outputs, we introduce the Maximum Semantic Cluster Proportion (MSCP) as a straightforward and efficient confidence metric for black-box LLMs.”