Entropy Distribution as a Fingerprint for Hallucinations in Generative Models
Mattia Jacopo Villani, Pranav Deshpande, Akshay Seshadri, Romina Yalovetzky, Niraj Kumar
NeurIPS 2026
TL;DR. We find that token-entropy distributions contain useful information beyond the mean for distinguishing hallucinated from faithful generations, and develop a lightweight statistical detector that performs strongly against other query-access baselines.
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 foundations and empirical evidence that key summaries of token-level entropy distribution serve as a fingerprint of hallucination, carrying useful signals beyond conventional measures such as perplexity or length-normalised entropy. We formalize hallucination detection as a statistical hypothesis test and propose the Calibrated Entropy Score (CES), a lightweight algorithm that, after calibration, requires 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 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.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:50 UTC.
- Decision
- Accept (poster)
Read decision
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.
Final justification
Having read the extensive discussion between the reviewers and authors, I believe this paper should be accepted. The most controversial point — data leakage in the experiments — is addressed by the authors in a number of ways.
- One of the main take-aways of the paper is that CES(unsup) and CES(sup) are essentially tied, where CES(unsup) does not require judge-labels. The authors’ claim that the calibration concerns do not apply to CES(unsup) goes a long way to mollifying this concern.
- The provided CES x-ds experiments are compelling and establish that calibration can be attained from unrelated sources.
- Structurally, the calibration estimates a 1-D CDF, using a very small fraction of the data, making overfitting to individual test points unlikely.
- The half-split experiment drops AUROC from 0.653 to 0.632, which superficially is ~0.02, and within the margins enjoyed by CES over single-pass baselines. Nevertheless, this is relatively uninformative as the significance of this drop is unclear without a paired rank analysis. In light of 1-3, I do not view this as a reason enough to reject the paper. I also generally agree with the more positive reviewers that even in the absence of a SOTA claim, the paper provides a solid framework and insights. Overall, I believe that this method is convincing as a practical, cheap, alternative for hallucination-detection that competes with heavier-weight multi-trajectory methods.
Read meta-review
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.
Final justification
Having read the extensive discussion between the reviewers and authors, I believe this paper should be accepted. The most controversial point — data leakage in the experiments — is addressed by the authors in a number of ways.
- One of the main take-aways of the paper is that CES(unsup) and CES(sup) are essentially tied, where CES(unsup) does not require judge-labels. The authors’ claim that the calibration concerns do not apply to CES(unsup) goes a long way to mollifying this concern.
- The provided CES x-ds experiments are compelling and establish that calibration can be attained from unrelated sources.
- Structurally, the calibration estimates a 1-D CDF, using a very small fraction of the data, making overfitting to individual test points unlikely.
- The half-split experiment drops AUROC from 0.653 to 0.632, which superficially is ~0.02, and within the margins enjoyed by CES over single-pass baselines. Nevertheless, this is relatively uninformative as the significance of this drop is unclear without a paired rank analysis. In light of 1-3, I do not view this as a reason enough to reject the paper. I also generally agree with the more positive reviewers that even in the absence of a SOTA claim, the paper provides a solid framework and insights. Overall, I believe that this method is convincing as a practical, cheap, alternative for hallucination-detection that competes with heavier-weight multi-trajectory methods.
2 comments
Thanks
We thank all reviewers collectively for engaging with the paper and providing thoughtful and truly detailed feedback that has no doubt improved the presentation and thoroughness of our exposition; we are grateful for the attention and participation. We look forward to the decision and wish all reviewers a stimulating discussion.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
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
-
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.
-
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 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 in experiments?
- 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
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).
Formatting concerns
No
6 comments
Response to Reviewer's Comments (Part I)
We thank the reviewer for the detailed reading and for thoughtful questions on the construction and implementation of CES. We answer them below.
-
KS-test underperformance. We apologize for not expanding on the KS test and will add details in the appendix (and the main text as space permits). A two-sample KS test is a standard statistical test of whether two samples come from the same distribution, based on the KS statistic (up to normalization), i.e. the largest gap between the two empirical CDFs. We found it underperforms in the short-generation regime: applied to a single answer, a two-sample KS test has only as many samples as there are generated tokens, and many QA answers span just a few to a few dozen tokens, so the per-response empirical CDF is noisy. CES instead uses a reference CDF calibrated from many samples, together with two test-time summaries (the mean and maximum entropy) that are more stable for short generations while still capturing global and tail behavior.
-
Motivation for mean and max. Short test-time generations make the per-response empirical CDF unreliable (Q1), which motivates using stable scalar summaries instead. We use two: the mean entropy, already a strong known signal, and the maximum entropy, which captures localized uncertainty spikes. Both are first mapped through the reference CDF , making them comparable across models and datasets, and then combined via their geometric mean. Thus, although CES is a scalar, it is built from calibrated distributional summaries rather than a raw mean or maximum, which distinguishes it from prior single-scalar detectors. We also searched over many combinations of the main summary statistics and found the 2-way geometric mean outperformed every 3-way combination (Appendix E.7).
-
Unsupervised vs. supervised. The two variants are essentially tied, consistent with our robustness-to-contamination checks, so neither consistently dominates. In a post-hoc split-calibration check on our local subset, held-out supervised CES is and held-out unsupervised CES is , a negligible difference. Where the unsupervised reference is slightly better, a plausible reason is that it draws on a larger calibration pool with better upper-tail coverage; the supervised reference, built only from judged-faithful generations, can be smaller and more concentrated, so its ECDF saturates for high-entropy test generations. This small gain in tail resolution and estimation stability can outweigh the mild contamination from including all generations. The practical takeaway is that the two are essentially tied, and the unsupervised variant attains this without any judge-label cost.
-
Hallucination labels already known. We agree CES (supervised) must be interpreted carefully when the same samples are used for calibration and evaluation, and we will clarify this. Two points mitigate the concern. First, only a very small fraction of samples is needed to calibrate: a random % of the data reaches the same AUROC as using all of it (Table 1 in our response to Q2 of Reviewer 1YLT). Second, the calibration-test split experiment (in our response to Q2(ii) of Reviewer 1YLT) explicitly shows that our method generalizes to unseen data. Importantly, CES (unsupervised), which performs on par with the supervised variant (Q3), uses no judge labels at all, so the concern does not apply to it.
-
Using the judge directly. Using GPT-4.1-nano directly as the test-time detector is a different resource setting, as it requires a judge call for every query and draws on the same source as the evaluation labels. CES is designed precisely to avoid test-time judge calls: the judge is used only to produce evaluation labels and, in CES (supervised), to form an oracle calibration reference; CES (unsupervised) uses no judge labels for calibration. We will clarify this distinction in the revision.
-
Value of . The parameter is a theoretical contamination parameter, not something tuned in experiments. The unsupervised empirical CDF is computed by simply pooling the token entropies of all calibration generations, regardless of correctness labels, and hence, no judge and no tuning are required. CES (unsup) then evaluates this CDF at the mean and maximum entropy of each test generation. In Appendix E.8 we vary contamination synthetically and observe minimal effect on the estimator, consistent with the robustness of the unsupervised variant.
(Responses to the final question is continued in the next comment due to 5000 character limit)
Response to Reviewer's Comments (Part II)
- Threshold selection and table formatting. For AUROC evaluation no threshold is selected, as AUROC measures ranking quality across all thresholds. For a binary decision for deployment, a threshold can be chosen on a held-out validation set, by fixing a desired false-positive rate under the calibration reference, or by maximizing Youden's when labels are available. On the table formatting, we thank the reviewer for catching this and will correct the bold/underline conventions in Table 1 in the revision and apologize for the typos.
Comment to Author Response
Thank the authors for the responses. I have some follow-up questions.
-
Motivation for mean and max. According to the response, it seems mean and max capture different signals, and that's why you want to use them both. I wonder if you have ever tried to use mean only or max only? Additionally, my concern is still there: I wonder why you use this particular form—geometric mean—to combine them, instead of using some other choices such as arithmetic mean? It seems this is not a principled choice; instead, it is an intuitive choice.
-
Unsupervised vs. supervised. The generalization to unseen data addresses this concern. But according to the response, it seems my original understanding is correct?—(1) CES (sup) uses part of the evaluation data as calibration data; (2) the hallucination labels for all samples, derived using GPT-4.1, are already known in CES (sup). I don't think this follows the standard test pipeline, where evaluation data should not be leaked. If (1) and (2) align with the descriptions in the submission, then I think those parts and the corresponding experiments should be revised.
-
Using the judge directly. I am a bit confused about when we can assume access to GPT-4.1-nano and when we cannot. I wonder why we can use GPT-4.1-nano during the process within CES (sup), and why we cannot use it directly to get the hallucination predictions.
-
New question: What is the source of calibration data for CES (unsup)?
-
Threshold selection and table formatting.
"For a binary decision for deployment, a threshold can be chosen on a held-out validation set, by fixing a desired false-positive rate under the calibration reference, or by maximizing Youden's when labels are available."I wonder which desired false-positive rate you set in the experiments.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 4/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
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 , with the bound governed by the number of sequences . 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
-
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.
-
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.
-
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.
-
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.
-
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.
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.
Formatting concerns
- the tables and figures are way too small
4 comments
Response to Reviewer's Comments (Part I)
We thank the reviewer for the careful, constructive reading. Length-sensitivity and distributional robustness are integral to CES and we have stress-tested both below; we especially thank the reviewer for prompting a closer look at the max–length relationship. One framing point up front: both length-normalized (LN) predictive entropy and length-only (Ref.[16] in paper) are already baselines in our comparisons (called "LN Entropy" and "Gen. Length"), so CES is evaluated on equal footing and any pure length signal is available to the baselines too. All experiments below will be added, with explanations, to the revision.
Responses to limitations.
-
Sensitivity to generation length. We agree an unnormalized maximum grows with length and that Eq. (4) constrains individual tokens, not the maximum. But this happens for both faithful and hallucinated samples, and CES retains discriminatory power even asymptotically as long as the faithful and hallucinated means differ. This is because normalization occurs implicitly by passing through , as the reviewer hinted. Concretely, if the faithful max-entropy support is below the hallucinated (supported by Fig. 2a), then for short generations is expected to be smaller for faithful than for hallucinated ( being monotone). Asymptotically for both (since ), so CES reduces to ; but since (faithful) and (hallucinated) exponentially fast (Hoeffding), CES still separates the two. Thus CES judiciously combines the max (useful for short generations, where the mean is unreliable) with the mean (useful for long generations, where the mean converges). This is formalized in Theorem 2, where the TPR and FPR converge exponentially fast in generation length to and respectively, for appropriate parameters. A natural future extension for long generations is to use quantiles instead of the maximum (the max is just the -quantile) while retaining the max for short ones.
-
Scope of the central theorem. Yes, Theorem 1 concerns consistent estimation of the reference (and Eq. (4) is used in this regard), not the per-generation decision. The per-generation guarantees (TPR/FPR) are given by Theorem 2.
-
Length-stratified check. In addition to Fig. 8 in the paper, we computed length-stratified AUROC, splitting samples into within-run generation-length quartiles (mean std across the 48 open-weight model–dataset runs; "Hall. frac." is the hallucinated fraction per bin):
Table 2:
Length bin CES AUROC Gen. length AUROC Hall. frac. Q1 (3–13 tokens) Q2 (13–18 tokens) Q3 (18–27 tokens) Q4 (27–119 tokens) CES performance is stable across strata and exceeds, in average, Gen. length (length-only) AUROC (near chance) in every bin, so CES carries signal beyond length.
The lengths are stratified according to the quantiles. For the revised manuscript, we will ensure that the classes are length-balanced in the bins we used.
-
Serial-dependence and the detector. Section 4.1 and Appendix E.4 test our key assumption—that the faithful and hallucinated entropy distributions differ. The KS test was our original candidate, but it needed relatively long generations and introduced numerical/algorithmic challenges, which motivated the CES-based test (also refer to our answer to question 1 of Reviewer fJ1W). We still report KS results for the interested reader.
-
Non-stationarity along a generation. We checked stationarity with the Augmented Dickey–Fuller test (null non-stationarity/unit root for AR process). Averaged across 10 models, of series are stationary (faithful , hallucinated on average). We do see the early-token effects the reviewer notes but no other clear pattern: the Spearman correlation between relative position and entropy is significant on (model, dataset) pairs, with median (mean ), and mean entropy falls from in the first quintile to in the last. We suspect the model formulates a more "creative" opening statement (higher entropy) before lower-entropy factual content follows. Additional details and disaggregated values will be included in the revision.
(Responses to limitation 6 and questions 1-5 are continued in the next comment due to 5000 character limit)
Response to Reviewer's Comments (Part II)
-
Correlation of length with signal. We compute the Spearman correlations (mean std and pooled across (model, dataset) pairs) between length, CES and max components, and also LNE.
Table 3:
Relationship Spearman (mean std) Pooled Length vs CES Length vs vs LNE Length is reasonably correlated with CES, driven by the max term (expected, since rises with length). While such a correlation exists, our answers to the following questions should clarify that CES (and the max term) provides more signal over just length alone. Interestingly, the calibrated max term is also strongly correlated with LNE, which we will investigate further. We will also follow reviewer's suggestion to soften the ``distributional framing".
Responses to questions.
-
Per-term ablation. For the average term , the max term , the combined , and generation length, we report AUROC, Spearman correlation with the hallucination label, that correlation after partialling out length (), and coupling to length (mean std across paper's 48 open-weight model-dataset runs):
Table 4:
Score component AUROC Average term Maximum term Combined CES Generation length — The combined score beats either component alone, and both beat generation length by a wide margin. Crucially, the association with hallucination is essentially unchanged after partialling out length (): the max term is length-coupled but is still a much better hallucination detector than length. The length alone does not explain CES.
-
Length-only baseline. Generation length is already a baseline ("Gen. Length"); we apologize if this was unclear. The correlations above show the max–length coupling is only partly retained in CES. We have also checked the relationship between CES's average-entropy term and length-normalized predictive entropy, and as expected the Spearman correlation is exactly 1. This is because is monotone and hence, is rank preserving recalibration of the mean token entropy, yielding identical AUROC.
-
Behaviour of the max term with length. On faithful data, the max term rises with length. Over faithful generations, Spearman is for length vs. raw max entropy and for length vs. calibrated max. Across length quartiles (lengths –, –, –, –) the mean raw max goes and the calibrated max rises more clearly, from to . The reference CDF is computed from samples pooled over all lengths, the case Theorem 1 covers directly.
-
Length-decorrelated evaluation. As per reviewer's suggestion, we implemented matched-length subsampling, by matching hallucinated and faithful generations within a 2-token caliper (avg. matched pairs per run across the 48 runs). This gives CES AUROC vs. length-only AUROC , with a mean hallucinated-minus-faithful length gap of only tokens. This is the cleanest evidence that the signal is not merely length.
-
Relationship to length-aware baselines. As shown in Q2, the average term and LN predictive entropy have Spearman correlation exactly . The paper already includes comprehensive comparisons with LNE, Semantic Entropy (SE), and Discrete SE. We apologize if this was unclear in the paper and we will highlight these more clearly.
Thank you for the thorough response. The matched-length subsampling, per-term ablation, and stratified results are exactly the analyses I was hoping to see.
On the length confound: I consider this convincingly addressed. The matched-pair result (CES 0.639 vs. length-only 0.502, with a mean length gap of only 0.02 tokens) together with the essentially unchanged partial correlations is clean evidence that the signal is not merely length. I'd encourage including these tables in the revision; the matched-pair analysis in particular is the persuasive one, since within length-quartiles the length-only baseline is near chance partly by construction.
On the framing: I appreciate the honesty of two findings in your response: that F₀(h̄) is rank-equivalent to LN entropy, and that the KS test was tried and set aside. Together these suggest the contribution is most accurately described as a calibrated tail (max) statistic added to LNE, rather than as using the full shape of the entropy distribution. I'm glad you plan to soften this. One question out of curiosity rather than as a request: since combined CES (0.636 ± 0.074) sits within a standard deviation of the max term alone (0.634 ± 0.070), do paired per-run comparisons show the combination helping consistently, or does the calibrated max carry most of the gain over LNE?
On stationarity: the ADF results and the positional entropy decline (0.93 -> 0.57 across quintiles) suggest the marginals aren't identical along a generation, so I read Assumption 1 as an idealization, which your response acknowledges. A sentence in the revision noting this measured trend alongside the assumption would pre-empt the same question from future readers.
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.
Response to follow-up questions
We thank the reviewer for going through our responses in detail, and we are happy that the reviewer finds our additional results convincing. We will include all these additional results in the revised manuscript, as we believe they will significantly strengthen our study.
Regarding the question on paired per-run comparisons that the reviewer inquired about, we would like to point the reviewer to Fig. 9 of our Appendix E.7, where we perform a detailed ablation study which shows that combined CES consistently outranks the max term alone (note that the max term does not appear in the figure because it does not rank in the top 10).
Yes, as per the reviewer's suggestion, we will include the stationarity results, comment on the entropy drop across the initial tokens, and explain how it relates to our independence assumption.
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 2/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
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
- Paper is well-motivated, the hypothesis testing formulation is clear. Good theoretical results.
Weaknesses.
-
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.
-
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.
-
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.
-
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.
-
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
Final justification
Most of my concerns have been addressed in the rebuttal.
Formatting concerns
None
5 comments
Response To Reviewer's Comments (Part I)
We thank the reviewer for going through our paper in detail and for recommending clarifications that will convey our results better. Due to space constraints, many experimental details were moved to the appendices; important ones will be moved back and the presentation and discussion improved in the revision. We address each point below.
-
Methodology and parameter choice. We apologize that the reviewer found the methodology and the experiments in the paper unclear. We will clarify the choice of parameters and provide a more detailed discussion and explanation of the experiments. A hypothesis test for the null can report a -value (e.g., the KS test, which can be turned into a binary decision) or reject the null directly. We take the second approach: CES is a test statistic that rejects the null based on two tunable parameters. We agree that choosing a good threshold is a challenge for all methods, which is exactly what motivates comparing methods via AUROC. To alleviate this, Theorem 2 provides guarantees on the true and false positive rates (TPR, FPR) directly in terms of the tunable parameters, showing the FPR falls exponentially with generation length, while the TPR approaches exponentially fast, over a range of parameter choices. This lends credence to reporting AUROC, since it shows the two parameters can be tuned (e.g., on a validation set) to achieve good rejection. It also directly addresses the reviewer's comment to detect hallucinations with a stated confidence: rather than a -value, one can choose the parameters to control a target FPR (equivalently, a significance level) under the calibration reference, with the guarantee that the TPR then still approaches with generation length. We will clarify parameter selection in the revised manuscript.
-
Same data for calibration and evaluation. We acknowledge that the scenarios faced by LLMs are of unprecedented complexity and expect performance to vary across them; what we assess is a general comparison against popular hallucination detectors, showing better predictive power than most comparable methods. We have not seen hallucination assessed in the specific scenarios raised, and would welcome suggestions for further testing, but relative to recent literature we provide exhaustive evidence across a large variety of scenarios and models, following the setup of Nikitin et al. (Ref. [31] in paper). To address the amount of calibration data and generalizability directly, we add two experiments.
(i) Calibration size (Table 1). For each (model, dataset) pair, the reference is rebuilt from a random fraction of the calibration pool (faithful-only for supervised, all generations for unsupervised), CES is recomputed and AUROC measured, averaged over 8 random draws. Let be the smallest fraction whose AUROC reaches within of the full-data value (smaller = converges with less data); is the number of faithful calibration samples. Entries are mean std across models; we have faithful samples in total and will report disaggregated values in the revision. The median convergence fraction is % for both the supervised setting (median full AUROC ) and the unsupervised setting (median full AUROC ). Thus a very small fraction of calibration data suffices in practice—as expected from Theorem 1, where the reference-CDF estimation error decays exponentially in the number of samples.
Table 1:
Dataset (%) (%) All 26891 (ii) Calibration-test split. We also perform a separate experiment where calibration and evaluation samples are separated by random half-splits over 8 draws per run on paper's open-weight model-dataset pairs. We find that the supervised CES remains and unsupervised CES remains compared to using full data. This directly shows that our method generalizes to unseen data.
(Answers to Q3-Q5 continued in the next comment due to 5000 character limit)
Response To Reviewer's Comments (Part II)
-
Calibration and computation cost. A calibration phase is intrinsic to CES, but we note that any method that does not pre-specify a threshold needs calibration when applied to new models. The key point is that CES requires one fixed calibration stage, after which each new query costs exactly one model generation—no additional samples, judge calls, NLI models, or trajectory comparisons. As Table 1 shows, only % of samples are needed to calibrate. Entropies are computed together with the answer and are cheap (a few milliseconds even for probability vectors of size ), and building the reference CDF is fast since entropies are just real numbers. The supervised variant adds a one-time judging cost on calibration data (unlike, e.g., KLE, which continuously calls LLMs), while the unsupervised variant, which performs consistently well, needs no labels at all. At test time we use only the mean and maximum token entropy, both cheap to compute. CES is thus very practical: as fast as any single-trajectory method, yet comparable to or sometimes better than multi-trajectory methods and ones using model internals. We will describe these costs in more detail in the revision.
-
Conditional independence. We agree the entropies are not strictly independent in the experiments, and we do not claim this (see the paragraph below Assumption 1 in the paper). Independence is a simplifying assumption for deriving clean theory, while empirically the method only needs stable separation between calibrated faithful summaries and test summaries. We nonetheless expect the entropies to be only weakly dependent, for the following reason: although tokens are highly correlated (the next token depends on prior context), the token entropy conveys much coarser information—how certain the model is about the next token. Since information about "which token" will appear is irrecoverably lost once entropy is computed, dependence on context (and the past) is correspondingly weakened, so the token entropies (unlike the tokens themselves) are expected to be weakly dependent in practice. As an illustrative toy example, if share a common latent factor via with , then the transformation cancels the shared exactly, leaving only idiosyncratic terms. We support this intuition in Appendix E.3: those experiments are intended to measure the extent of dependence rather than rule it out, and, being based on autocorrelation, they show the token entropies have low linear dependence. General nonlinear dependence is harder to rule out, as the reviewer correctly notes (e.g., with uncorrelated but dependent variables); we are happy to test specific forms of dependence on our data if the reviewer has suggestions, and leave a detailed treatment and its consequences for detector design to future work, which we will outline in the revision.
-
Experimental presentation. We apologize for the limited discussion in the experiments section and will expand the implications and clarify details in the main text as space permits (the appendix also answers many follow-up questions a reader would have, which we can expand on). The Friedman/Nemenyi analysis is a standard method for establishing the significance of method ranks, where cross-dataset accuracy comparisons may not be immediate; we will add details in the appendix, refer to [1] and example uses [2,3,4], and specify that the pairwise comparisons are on accuracy. We will also add a description of the KS test: a two-sample KS test checks whether samples from two sources come from the same underlying distribution, and Fig. 2b reports the KS statistic between the hallucinated and faithful distributions, showing they differ. More broadly, we agree that describing what each reported metric conveys aids readers, and will add this. We thank the reviewer for helping us improve our exposition.
[1] Demšar, Janez. "Statistical comparisons of classifiers over multiple data sets." Journal of Machine learning research 7.Jan (2006): 1-30.
[2] Han, Songqiao, et al. "Adbench: Anomaly detection benchmark." Advances in neural information processing systems 35 (2022): 32142-32159.
[3] Ma, Jiabo, et al. "A generalizable pathology foundation model using a unified knowledge distillation pretraining framework." Nature Biomedical Engineering 10.3 (2026): 545-564.
[4] Ye, Han-Jia, Si-Yang Liu, and Wei-Lun Harry Chao. "A closer look at TabPFN v2: Understanding its strengths and extending its capabilities." Advances in Neural Information Processing Systems 38 (2026): 135605-135637.
Additional Results
Calibration Size. We present additional evidence below, supporting our answer to Q2(i), showing that the % calibration data result holds individually for the datasets we tested.
In this experiment, for each (model, dataset) pair, the CES reference distribution is rebuilt from a random fraction of the calibration pool (faithful-only for the supervised setting, all generations for the unsupervised setting), the CES is recomputed and AUROC measured, and averaged over random draws. We denote to be the smallest fraction whose AUROC reaches within 0.01 of the full-data (100%) AUROC (smaller = converges with less calibration data). is the total number of non-hallucinated (faithful) samples available for calibration in each dataset. All entries are mean std across models.
| Dataset | (%) | (%) | |||
|---|---|---|---|---|---|
| bioasq | 3524 | ||||
| coqa | 4436 | ||||
| drop | 2772 | ||||
| gsm8k | 4078 | ||||
| nq_open | 2248 | ||||
| squad | 3459 | ||||
| svamp | 1907 | ||||
| triviaqa | 4467 | ||||
| All | 26891 |
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Meta Review
We thank the AC and reviewers for their comments, and address the AC's highlighted concerns below, summarizing our replies to the reviewers.
Single-pass, high-performing method. While calibration is needed, it is a one-time cost; afterwards each query needs exactly one generation—no extra samples, judge calls, NLI models, or trajectory comparisons. It is also cheap: (i) entropies cost a few milliseconds (even for size-106 vectors) and are computed during generation; (ii) building the reference CDF is easy since entropies are just real numbers; and (iii) only ∼2% of calibration data matches full-data AUROC within 0.01 (Q2, Reviewer 1YLT), so judge labels are needed on few samples once for CES (supervised), while CES (unsupervised) needs none. By contrast, KLE and other multi-sample methods pay their cost per query (K≥5 passes plus NLI calls). CES thus attains single-trajectory speed while sometimes outperforming multi-trajectory methods; cost experiments will be included.
Methodology and experiments. We apologize for the unclear presentation and will expand explanations; the appendix answers many follow-up questions.
Conditional independence. We do not claim strict independence (see below Assumption 1); it is a simplifying assumption for clean theory, while empirically the method only needs stable separation between calibrated faithful and test summaries. We do expect only weak dependence: since information on "which token" appears next is lost once entropy is computed, dependence on context is correspondingly weakened. Appendix E.3 measures (rather than rules out) dependence, showing low linear dependence via autocorrelation; nonlinear dependence is harder to exclude, so we are happy to test specific forms and leave a fuller treatment to future work.
Max vs. length. Following Reviewer rbqD, we isolated the max–length relation. The max term (and hence CES) is length-correlated, but the signal is not merely length: matched-length subsampling (hallucinated & faithful within a 2-token caliper, avg. 132.6 pairs/run over 48 runs) gives CES AUROC 0.639±0.078 vs. length-only 0.502±0.006. Per-term ablation and length-stratified AUROC (in our reply to rbqD) likewise show the max term and CES clearly beat length-only. Generation length was already a baseline (Ref. [16]). We thank the reviewer for these suggestions.
KS test and scalar summary. A two-sample KS test compares ECDFs of the faithful (calibration) and test (generation) distributions; since answers span only a few to a few dozen tokens, the generation ECDF is noisy and the test underperforms. CES mitigates this by keeping the calibrated reference distribution but summarizing the test data by two stable, cheap statistics: the mean entropy (a strong signal) and the max entropy (tail behavior). So CES is a scalar built from calibrated distributional summaries rather than a raw mean or max, unlike prior single-scalar detectors.
CES (sup) vs. (unsup). The two are essentially tied: on a held-out split, CES (sup) AUROC is 0.632±0.082 and CES (unsup) AUROC 0.633±0.082. Where unsupervised is marginally better, this likely reflects its larger calibration pool and better upper-tail coverage, whereas the supervised reference (judged-faithful only) is smaller and can saturate for high-entropy generations. The point is not that supervision fails but that unsupervised calibration matches it at no judge-label cost.
We again thank the AC and reviewers, and we welcome any further questions during the discussion period.