paper-with-me

홈 › Papers

Detecting hallucinations in large language models using semantic entropy

2024-06-19 · Nature 2024 6 · Sebastian Farquhar, Jannik Kossen, Lorenz Kuhn, Yarin Gal

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.

📄 PDF Abstract BibTeX

Code (1)

jlko/semantic_uncertainty pytorch

Tasks

Large Language ModelQuestion Answering

Similar Papers 제목 키워드 기반

Segmentation-Based Attention Entropy: Detecting and Mitigating Object Hallucinations in Large Vision-Language Models

2026-03-17 · Jiale Song, Jiaxin Luo, Xue-song Tang, Kuangrong Hao 외 arxiv

Large Vision-Language Models (LVLMs) achieve strong performance on many multimodal tasks, but object hallucinations severely undermine their reliability. Most existing studies focus on the text modality, attributing hall…

Semantic SegmentationVisual Grounding

Semantic Energy: Detecting LLM Hallucination Beyond Entropy

2025-08-20 · Huan Ma, Jiadong Pan, Jing Liu, Yan Chen 외 arxiv

Large Language Models (LLMs) are being increasingly deployed in real-world applications, but they remain susceptible to hallucinations, which produce fluent yet incorrect responses and lead to erroneous decision-making. …

Detecting AI Hallucinations in Finance: An Information-Theoretic Method Cuts Hallucination Rate by 92%

2025-12-02 · Mainak Singha arxiv

Large language models (LLMs) produce fluent but unsupported answers - hallucinations - limiting safe deployment in high-stakes domains. We propose ECLIPSE, a framework that treats hallucination as a mismatch between a mo…

Question Answering

VL-Uncertainty: Detecting Hallucination in Large Vision-Language Model via Uncertainty Estimation

2024-11-18 · Ruiyang Zhang, Hu Zhang, Zhedong Zheng

Given the higher information load processed by large vision-language models (LVLMs) compared to single-modal LLMs, detecting LVLM hallucinations requires more human and time expense, and thus rise a wider safety concerns…

HallucinationLanguage ModelingLanguage Modelling

Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities

2024-05-30 · Alexander Nikitin, Jannik Kossen, Yarin Gal, Pekka Marttinen

Uncertainty quantification in Large Language Models (LLMs) is crucial for applications where safety and reliability are important. In particular, uncertainty can be used to improve the trustworthiness of LLMs by detectin…

Text GenerationUncertainty Quantification