acceptodds
Published as a conference paper at NeurIPS 2026

Entropy Distribution as a Fingerprint for Hallucinations in Generative Models

Mattia Jacopo Villani, Pranav Deshpande, Akshay Seshadri, Romina Yalovetzky, Niraj Kumar

Abstract

Large Language Models (LLMs) often generate factually incorrect outputs, commonly termed hallucinations, that undermine trust and limit deployment in high-stakes settings. Existing hallucination detection methods typically require multiple forward passes, or access to model internals. In this work, we provide theoretical background and empirical evidence that the distribution of token-level entropies, beyond the mean captured by perplexity or length-normalised entropy, serves as a fingerprint of hallucination, with distributional shape and tail behaviour carrying independent signal. We formalize hallucination detection as a statistical hypothesis test and propose the Calibrated Entropy Score (CES), a lightweight algorithm requiring only a single forward pass and black-box access to token logits. CES combines the mean signal with the maximum signal of the generated entropy through a calibrated reference CDF, producing scores that are directly comparable across models and tasks. We establish finite-sample calibration guarantees via a novel random-length Dvoretzky–Kiefer–Wolfowitz inequality, and also prove that CES detects hallucinations with probability converging to one exponentially fast in the generation length. Across eight QA benchmarks and ten generator models spanning open-source and API access models, CES achieves the highest detection performance among all single-pass black-box methods while providing formal error guarantees that existing heuristics lack. Remarkably, CES is statistically indistinguishable from multi-sample methods that require far greater computational cost, closing the gap between lightweight and expensive detection and making it suitable for real-time, large-scale deployment.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 49%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.33 over 3 reviews, above 49% of the others.
Reviewer_fJ1WOpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper proposes a metric to detect whether a generated sentence is hallucinated, given a context. The proposed metric is established based on the entropy distribution of each token in the generated sentence. This is different from previous metrics, which use a single scalar summary. Specifically, they formalize the metric-establishing process as a statistical hypothesis test. Experiments across eight QA benchmarks and ten LLMs show that the proposed method achieves the best performance among all single-pass black-box methods.

Strengths and weaknesses

Clarity: The writing of the paper is overall clear, e.g., stating the necessary assumptions and cases where the assumptions do not hold. Only some parts need additional clarification (see the questions).

Significance: The studied problem is of high value, as hallucination has hindered the trust in using an LLM.

Originality: Using token entropy to detect hallucination is not novel, while using the token entropy distribution seems to be a new idea.

Questions
  1. Lines 182-187 write “The KS test can underperform because of insufficiently many samples available when the generation length is small.” First, it would be appreciated if the authors could add preliminaries on what a KS test is, making it easier for readers to follow this part. Second, I think the authors should give more detailed explanations on how the KS test underperforms and why this happens. This would give readers a clear picture of why the naive KS test does not work, necessitating the proposed measure.

  2. I wonder how the formulation of CES comes, i.e., why picking the CDF valued at the mean entropy and the CDF valued at the max entropy and then merging them.

A follow-up question is: Still, the proposed measure is a single scalar summary of the full entropy signal. How does it differ from the existing hallucination detection methods that propose a single scalar summary?

3 (1) As shown in Table 1, CES (sup) performs better than CES (unsup) in all settings. I wonder why this happens, as CES (sup) gains supervision from a GPT-4.1-nano judge, which is supposed to achieve better detection performance.

(2) I don’t think CES (sup) serves as a fair comparison with other methods because it uses GPT-4.1-nano judge. Specifically, the authors used all N=500N=500 samples to construct the reference ECDF (see Lines 227-230), and the process of constructing the reference ECDF requires querying an oracle, i.e., GPT-4.1-nano judge, to gain hallucination labels (see Algorithm 1). That is to say, the hallucination labels for all samples are already known in CES (sup), which is unfair for other methods.

(3) Following the above question, I wonder about the performance comparison between CES (sup) and directly using the hallucination labels gained through GPT-4.1-nano judge.

(4) Table 1 shows that CES (unsup) leads in detection performance; however, it seems the descriptions on this unsupervised version are insufficient. Specifically, Lines 166-169 write “We compute the empirical CDF of token entropy directly from all the calibration samples”; however, it is unknown how this is directly computed. Besides, how do you determine the value of γ\gamma in experiments?

  1. Other questions: (1) How do you set the value of the threshold mentioned in Line 193? (2) I think the bold/underline is used incorrectly in many numbers in Table 1. For example, the number in Meta-CES(unsup)-gsm8k should only be underlined and should not be in bold type. Same for the number in Meta-LN-nq_open. The number in gpt-CES(unsup)-bioasq should only be in bold type and should not be underlined. Same for the number in gpt-LN-squad.
Limitations

yes

Paper formatting concerns

No

Final justification

I reduced my rating to 3. The reasons are: The experimental settings do not follow the standard train-test pipeline, where the test data should not be leaked to the proposed method. According to the authors’ response, they use the test data as the calibration data; moreover, they use the ground-truth hallucination labels (given by GPT) in their proposed method—CES(sup).

Reviewer_rbqDOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
4
Quality
4
Significance
4
Read review
Summary

Bigger Picture

Detecting LLM hallucinations cheaply, without labels or resampling, is a key bottleneck for safe deployment.

Opportunity

A single-pass, logit-only signal that uses the whole token-entropy distribution, rather than resampling or a length-biased scalar.

What

A Calibrated Entropy Score of average and maximum token entropy against a reference CDF, with a random-length DKW guarantee, tested on 10 models × 8 datasets.

So What

A cheap, label-free detector with theory

Strengths and weaknesses

Strengths

  • Practically attractive operating point. The method derives its signal from next-token logits in a single forward pass, requiring neither multiple sampled generations (unlike semantic entropy, Farquhar et al. 2024) nor labelled supervision in its unsupervised variant. For a white-box detector this is a genuinely low-cost, broadly deployable design.

  • A real theoretical contribution. The random-length DKW inequality (Theorem 1) is a non-trivial extension of the classical DKW bound to pooled, variable-length data, and it gives a clean finite-sample guarantee for estimating the reference entropy CDF F0F_0, with the bound governed by the number of sequences LL. Providing a concentration result rather than relying on asymptotics is a strength relative to much of the UQ literature.

  • Simple, closed-form, interpretable score. The CES reduces each generation to two readily understood quantities, its average token entropy and its largest token entropy, scored against a reference and combined. This is cheaper and more transparent than methods that require multiple sampled generations, and the random-length result (Theorem 1) directly supports the accuracy of the reference it relies on.

  • Label-free reference estimation. Estimating the reference distribution unsupervised under a rare-hallucination assumption is practically valuable and broadens applicability to settings without oracle labels.

  • Empirical breadth. 10 models × 8 datasets × ~500 samples is strong coverage and lends credibility to the headline detection results.

  • Due diligence. The authors proactively probe two failure modes a reviewer would raise, i.e. serial dependence and length sensitivity, and report length-stratified performance plus construct-validity correlations. The length-stratification in particular is the correct instrument and shows within-stratum AUROC > 0.5, which is real evidence the signal is not /purely/ length.

** Limitations

/I commend the due diligence above. Yet, to be watertight I focused my reading primarily on the length-sensitivity and distributional-robustness aspects of the method (as much as I was able to), and did not verify every derivation in detail. Some of the points below may therefore reflect a misunderstanding on my part, and I would welcome the authors' clarification./

  • Possible sensitivity of the score to generation length. The CES partly uses each generation's largest token entropy, and a maximum tends to grow with the number of tokens it is taken over. As I read Equation (4), that assumption constrains individual tokens but not the maximum, so the maximum-entropy term could drift with length on non-hallucinated text. I could not rule out that some detection signal reflects length rather than hallucination, though I may be overlooking a normalization that prevents this.

  • Scope of the central theorem. Theorem 1 appears to rest on Equation (4), which treats per-token entropies as length-independent draws, close to the property in question. The guarantee may therefore describe good behaviour where length is already not a factor, and it seems to concern estimating the reference rather than the per-generation decision. I would welcome correction if Equation (4) is meant more weakly.

  • The length-stratified check would be more conclusive with a few more numbers. Staying above chance in every bin is reassuring, but I would find it more decisive with the performance lost when length is held fixed, a length-only predictor for comparison, and confirmation that the classes are length-balanced within bins.

  • Connection between the serial-dependence discussion and the detector. The detector seems to be the two-part score rather than a KS test, so I was unsure how the KS-focused appendix applies to it. I also understood positive token-to-token correlation to make a KS-type test flag differences slightly more often, not less and the effective-sample-size correction seems better suited to the average term than the maximum.

  • Possible non-stationarity along a generation. Token entropy tends to vary systematically with position rather than resembling independent draws, via early-token effects, sentence and clause boundaries, and subword continuations, and in long generations the predictive entropy can even drift upward (the entropy-calibration and asymptotic-entropy literature). The direction is model- and content-dependent, but any such structure would make the average-entropy term depend on length in a way a single lag-1 correlation would not reveal. A position-resolved view (mean entropy by position) would clarify this.

  • How much the supporting correlations separate signal from length. The reported correlations confirm the method works through its distributional shift, but a length-driven shift could produce the same pattern, so I was not sure they rule length out.

  • Smaller points. Token counts depend on the tokenizer (entangling "length" and "content"), and a pooled reference may transfer imperfectly across lengths or domains, both most relevant to the maximum-entropy term. The average-entropy term also looks close to length-normalized predictive entropy (Malinin & Gales 2021; the "naive entropy" in Farquhar et al. 2024) up to calibration, so making that relationship and comparison explicit and possibly softening the "distributional" framing, since only two summaries are used would help.

Questions
  1. Per-term ablation. Would it be possible to report detection performance for each part of the score on its own, the average-entropy term and the maximum-entropy term, alongside the combined score? This single table would show how much each contributes and, in particular, whether the maximum-entropy term reflects hallucination or partly tracks length.

  2. A length-only baseline, and the within-bin gap. As a simple control, would you consider adding a baseline that uses generation length alone and reporting how much the score improves on it, together with the gap between pooled and average within-bin performance? Together these would make explicit how much of the signal survives once length is held fixed.

  3. Behaviour of the maximum term with length. Since a maximum tends to grow with the number of tokens, it would help to show, on non-hallucinated data, how the maximum-entropy term varies with generation length, and to clarify whether its reference is estimated across all lengths together or separately by length. If the term rises with length, a length-matched reference would address much of the concern.

  4. A length-decorrelated evaluation. A particularly compelling demonstration would be an evaluation slice in which length and the hallucination label are deliberately decorrelated, for instance by controlling generation length or by matched subsampling. Strong performance there would be hard to attribute to length.

  5. Relationship to length-aware baselines. It would help readers to make the relationship between the average-entropy term and length-normalized predictive entropy explicit, and to compare against that baseline and semantic entropy directly. This would sharpen what the calibration step and the maximum-entropy term add over prior work.

Limitations

Since my questions were primarily about length confounding, I may express more my limitations than the authors'. But clarifying on my questions may highlight some limitations that may or may not be addressed in this or future work.

Paper formatting concerns
  • the tables and figures are way too small
Final justification

These responses resolve my main methodological concern about the length confound, and I thank the authors for the effort invested in the new analyses. I am maintaining my score: the empirical case is now more solid, but the clarified relationship to LN entropy also narrows the framing of the contribution. I remain positive about the paper in its honestly reframed form.

Reviewer_1YLTOpenReview ↗
Rating
5
Clarity
2
Confidence
2
Originality
3
Quality
2
Significance
3
Read review
Summary

The paper develops a hypothesis testing based framework for hallucination detection which does not require multiple forward passes to form uncertainty estimates. The authors provide statistical guarantees of their framework along with empirical results showing the efficacy of the proposed method.

Strengths and weaknesses

Strengths

  1. Paper is well-motivated, the hypothesis testing formulation is clear. Good theoretical results.

Weaknesses.

  1. The methodology of the paper and experiments are difficult to follow. The paper does not make it clear how to choose the parameters, in wild we want to detect hallucinations with some confidence (p-value say), just reporting AUROC is not sufficient since in reality choosing a good parameter might be difficult.

  2. The paper uses the same data for calibration as evaluation. These days LLMs are employed in increasing complex scenarios (agentic coding workloads, autonomous agents sanitizing data, curating it, training models in a self-improving loop etc.). In such scenarios getting a good calibrated data is not straightforward. The paper does not explore any of these questions, even simpler in its simple setting of QA tasks I think a controlled study on performance of the methods as a function of amount of calibrated data will be very useful. Also, situations where the calibrated data and the actual data are different will help in testing generalization of the method.

  3. Building on the previous point, the method requires a single pass, only after the calibration is done to compute the empirical CDF, all the theoretical results are consistentwhen number of samples -> infinity. In practice, if one considers the cost of computing the CDF + test-time hallucination detection. It is greater than simpler methods like perplexity and lenght-normalized entropy making the method closer to KLE methods (which in some cases outperforms this method). Understanding this trade-off is important to appreciate the gains of this method which requires a controlled study into how much calibration data is required and scneraios where they do not overlap with the test data.

  4. The assumption of conditional independent of tokens is questionable. Why does conditioning on length of tokens dictate independence? I dont see why if I know how many tokens I have in context, every token's entorpy is i.i.d. Giving some motivation for this will help beyond a tool for helping with the maths. It is well-known that linear correlation misses non-linear relations e.g. X = Y^2, when X is uniform random variable between (-1,1) has 0 linear correlation but are clearly dependent. For example, there are adaptive RAG approaches that decide whether external lookup (in vector DB) is neede based on current token entropies which is used as a proxy of model uncertainty in answering the given query. If token entropies were i.i.d, these methods would be meaningless.

  5. The experiment section is not well-written. It is a list of results with no intrution or discussion as to why something is expected? what are the insights? A better presentation would greatly improve the writing of the paper. For example, L267-273, what is Friedman/Nemenyi analysis? The prose just lists results and says "we are better here, worse there". If a reader does not know this analysis the message is lost. Similalry, the win-rate discussion (lines 261-266) is similarly opaque - "CES wins 854/1279 pairwise comparisons (66.8%)" without explaining what a "pairwise comparison" means here or why 66.8% is impressive vs. expected by chance. Fig 2b, how is it calculated?

Questions

See weaknesses

Limitations

Yes

Paper formatting concerns

None

Final justification

Most of my concerns have been addressed in the rebuttal.

Comments on the paper

1 comment
Meta-review

This authors present a new method for detecting hallucination in language models. Their method computes entropy for each token distribution produced by the model. It then uses the distribution of entropies to discriminate between hallucinated and non-hallucinated responses. They argue that the shape of the distribution is critical to achieve this separation and that using a simple statistic, such as the mean of these entropies, is insufficient. They distinguish their work from previous attempts at hallucination detection by emphasizing its practicality: requiring a single inference step and access to model logits (but not internals). They provide theoretical results and empirical results on ten instruction-tuned models and eight QA benchmarks.

Reviewers agree that this paper is well-motivated and sets out to solve an important problem with a new idea. The experiments appear to be quite expansive.

However, reviewers also point out several weaknesses and limitations that may result in this paper being rejected. The authors should focus on addressing all of the reviewers’ comments. If prioritization is needed, I would recommend the following order:

Most Serious: Reviewer 1YLT (Weakness 3) points out that the single-pass nature of the method may be over-stated, as it leaves out the calibration required for this method. I would be interested to hear the authors’ response to this comment. In particular, the empirical results demonstrate that the CES is quite good only among single-pass methods. If CES is indeed more comparable to KLE in its ease-of-deployment, then this substantially alters how we should interpret the empirical results.

Reviewers identify several specific methodological and presentational issues with the experiments. I would be interested in the authors’ rebuttal to all of these, but specifically: Question 3, subparts (2)-(4) and Question 4. Similarly, Reviewer 1YLT raises presentational issues in Weaknesses 1 and 5.

Important: Multiple reviewers are skeptical of Theorem 1’s assumption that token entropies are iid conditioned on length. I would be interested in hearing how the authors reason about this assumption.

Reviewer rbqD points out that maximum entropy may be serving as a proxy for length, and suggests some very good suggestions for isolating this effect. Authors need not implement all suggestions, but some signal around this question would be helpful.

Reviewer rbqD and fJ1W point out that ultimately as KS-style test is not used, and the method ultimately collapses the information in the token distributions to a single scalar. Does this alter the paper’s framing that this method is effective because it considers the entire shape of the entropy distribution?

I think Reviewer fj1W means to say “CES (unsup) performs better than CES (sup) in all settings” in Question 3, subpart (1). This is indeed unexpected, and deserves explanation.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.