Entropy Distribution as a Fingerprint for Hallucinations in Generative Models
Mattia Jacopo Villani, Pranav Deshpande, Akshay Seshadri, Romina Yalovetzky, Niraj Kumar
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › Hallucination Detection Methods · Type: new method · Keywords: hallucination detection, entropy distribution, statistical hypothesis testing, black-box detection, large language models
Areas: Evaluation & Benchmarks › Language Model and Agent Safety › Hallucination and Text Detection
Summary
CES uses the distribution of token-level entropies as a fingerprint for hallucinations, providing a single-pass, black-box detection method with theoretical guarantees.
Explained to a 5-year-old
Big computer programs called language models sometimes say things that aren't true. To check if they're lying, we look at how surprised they are about each word they write. When they make up facts, the surprise numbers look different from when they tell the truth. Scientists made a simple test that looks at these surprise numbers and says if the answer might be made up. This test works quickly, so it can help keep the computer programs honest in important situations.
Explained to a 5-year-old, longer
Big computer programs called language models are designed to write sentences like a person would. Sometimes they write things that aren't true, which we call "hallucinations." To know if a sentence is made up, we can look at how uncertain the program is about each word. This uncertainty is measured by something called entropy, which tells us how surprised the program is. When the program is telling the truth, the pattern of surprise numbers usually looks smooth. When it makes up facts, the surprise numbers often have a different shape, like a weird tail. Researchers discovered that this whole pattern, not just the average, can be used as a fingerprint for lies. They created a simple test that takes the surprise numbers and compares them to a reference pattern. The test looks at both the average surprise and the biggest surprise to decide if something might be false. This test only needs to run once while the program writes, so it's fast and cheap. It works without needing to see inside the program's secret calculations, just the numbers it shows. Because it's quick and easy, the test can be used in many places where we need trustworthy answers, like doctors or lawyers.
For a technical reader
The paper tackles hallucination detection in large language models by exploiting the full distribution of token-level entropies rather than just their mean. It formulates detection as a statistical hypothesis test and combines mean and maximum entropy signals via a calibrated reference CDF, requiring only a single forward pass and black-box access. Theoretical analysis provides finite-sample calibration guarantees and exponential-rate detection convergence. Empirical evaluation on eight QA benchmarks and ten models shows the method matches or exceeds existing single-pass detectors while being comparable to more costly multi-sample approaches.
Problem
Detecting hallucinations in generative models is challenging because existing methods often need multiple forward passes or access to model internals, making them computationally expensive or impractical for real-time deployment.
Method
The approach leverages the full distribution of token-level entropies, not just the mean, and formulates detection as a statistical hypothesis test. It combines the mean entropy signal with the maximum entropy signal using a calibrated reference CDF, requiring only a single forward pass and black-box access to logits.
Results
CES achieves the highest detection performance among single-pass black-box methods across the eight QA benchmarks and ten models, and its performance is statistically indistinguishable from more expensive multi-sample methods.
Contributions
The paper shows that the distribution of token-level entropies carries independent signal for hallucinations and proposes a calibrated entropy score that provides formal error guarantees. It also proves finite-sample calibration and exponential-rate detection guarantees.
Practical relevance
The lightweight, single-pass nature of the approach enables real-time, large-scale hallucination detection, facilitating safer deployment of generative models in high-stakes settings.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction