Skip to content

ESAR: How Entropy-Based Methods can improve Hallucination Detection in LLMs

Jasko Miebs, Falko Baustian

cs.AI

Abstract

Despite their strong performance across a wide range of tasks, Large Language Models (LLMs) are prone to hallucinations, i.e., plausible-sounding but incorrect outputs. Uncertainty Quantification aims to detect hallucinations by estimating the model's uncertainty in its generation. There exists a variety of methods in uncertainty quantification for LLMs, ranging from methods that require only a single generation to multi-round scores that examine variety over multiple outputs. Many methods are based on either the log-probabilities or the entropy values of the generated probability distributions for each token position. A mathematical analysis of these quantities shows the advantages of entropy methods. We therefore propose the entropy-based single-round score TESAR and its multi-round extension ESAR. We compare our methods with state-of-the-art uncertainty scores and demonstrate that the performance of the considered methods is highly scenario-specific.

Create a lesson

Metadata

Comments
14 pages, 3 figures (one of them generated in Latex Code)