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

Jasko Miebs, Falko BaustianarXiv 2026

TL;DR

Large Language Models (LLMs) are notorious for "hallucinating"—generating plausible-sounding nonsense with complete confidence. To catch these errors, researchers measure a model's uncertainty, usually by checking the probability of the single most likely next word. This paper explores whether using entropy—which considers the entire probability distribution—makes for a better hallucination detector, introducing two new entropy-based scores (TESAR and ESAR). The surprising takeaway? Entropy isn't a universal silver bullet; the best way to spot a hallucination depends heavily on the specific task and model.

What Problem Does This Paper Address?

When an LLM generates text, it predicts a probability distribution over its entire vocabulary for each token. Uncertainty Quantification (UQ) uses these distributions to guess when the model is "unsure" and therefore likely to hallucinate.

Most standard UQ methods rely on logprobs (the negative log-probability of the single most likely token). But logprobs have a blind spot: they ignore the rest of the distribution. Imagine two scenarios where the top word has an 80% chance of being right. In one, the remaining 20% is on a single runner-up; in the other, it's smeared evenly across dozens of other words. Logprobs see these as identical, even though the second case is much more uncertain. The authors set out to test if entropy—which accounts for the entire distribution—can fix this blind spot.

Methods

The authors first analyze logprobs and entropy mathematically. Because LLM token distributions are usually sharply peaked (most probability mass sits on just a few tokens), you want a metric that is sensitive to small drops in high probabilities. As shown below, entropy has a much steeper slope than logprobs in the high-probability range, meaning it penalizes slight drops in confidence more drastically.

Figure 2: Comparison of normalized logprobs vs. normalized entropy of a Bernoulli distribution. The x-axis shows the highest probability in the distribu- tion.

To make entropy fast to compute over massive vocabularies, the authors use top-$k$ bucket clipping ($k=1000$): they calculate entropy over the top 1,000 most likely tokens and lump the remaining probabilities into a single "bucket."

Building on the existing Shifting Attention to Relevance (SAR) framework—which weights each token's uncertainty by its semantic importance (so words like "Paris" matter more than "the")—they propose:

  • TESAR (TokenEntropySAR): A single-round score that replaces logprobs in TokenSAR with normalized entropy.
  • SAR* and ESAR (EntropySAR): Multi-round scores that sample 5 generations per prompt and compare them using semantic similarity. The authors first modify the original SAR formula into SAR* by normalizing it to $[0, 1]$ and replacing a sensitive temperature parameter $t$ with a cleaner convex combination parameter $\lambda \in \{0.5, 0.7\}$. ESAR simply swaps TESAR into this new SAR* framework.

Datasets

The authors evaluated their methods across three diverse question-answering datasets (1,000 samples each) using three open-source models (Qwen3.5-4B, Qwen3.5-9B, and Ministral-3-8B):

  • TriviaQA: Short-form general knowledge questions.
  • MedQA: Medical board exam questions, which tend to produce longer answers.
  • SciQ: Science questions spanning multiple disciplines.

Performance was measured using AUROC (with Rouge-L thresholds of 0.3 and 0.5) and Prediction Rejection Ratio (PRR) based on AlignScore.

Key Insights and Ideas

  • More information isn't always better: While entropy captures the full distribution, it also picks up on noise in the distribution's long tail. Logprobs ignore the tail, making them naturally more robust when the model's output distribution is noisy.
  • Short answers blunt fancy weighting: Relevance weighting (the core idea behind SAR, TESAR, and ESAR) didn't consistently beat simple unweighted averages. When answers are short, there aren't many filler words to down-weight.
  • Single-round beat multi-round: TokenSAR and TESAR (single-round) generally outperformed SAR* and ESAR (multi-round). Again, with relatively short generations (capped at 128 tokens), the 5 sampled responses didn't have enough semantic variety for multi-round comparison to shine.

Key Results

The overarching finding is that UQ performance is highly scenario-specific, with no single method dominating everywhere:

  • TriviaQA: Mean entropy consistently performed best across all models and metrics, reaching 0.872 $\text{AUROC}_{0.3}$ and 0.759 PRR on Ministral-3-8B.
Evaluation of uncertainty scores on the TriviaQA dataset
  • MedQA: The original SAR score led on AUROC (e.g., 0.744 $\text{AUROC}_{0.3}$ on Qwen3.5-4B), while Mean logprob and TokenSAR took the lead on PRR.
  • SciQ: Mean logprob and Mean entropy traded the top spots depending on the model and metric (e.g., Mean logprob hit 0.806 $\text{AUROC}_{0.5}$ on Ministral-3-8B).

Limitations and Future Work

  • Short generations: Capping generations at 128 tokens likely limited the effectiveness of both semantic relevance weighting and multi-round variance.
  • The ceiling of output distributions: Because all tested methods performed similarly overall, the authors suggest that relying solely on output probability distributions may have inherent limits. They point to analyzing internal model representations (hidden layers) or computing predictive entropy over entire sequences as promising—though computationally challenging—directions for future work.

Summary updated

BibTeX
@misc{miebs2026esar,
  author = {Jasko Miebs and Falko Baustian},
  title = {{ESAR: How Entropy-Based Methods can improve Hallucination Detection in LLMs}},
  year = {2026},
  eprint = {2612.01308},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.01308},
}
Figure