Estimating Semantic Alphabet Size for LLM Uncertainty Quantification

Lucas H. McCabe, Rimon Melamed, Thomas Hartvigsen, H. Howie Huang
9/17/2025
cs.CLcs.LG

No official code found. Best implementation: lucasmccabe/esa (2 stars, GPL-3.0, last commit 2026-02-16).

Abstract

Many black-box techniques for quantifying the uncertainty of large language models (LLMs) rely on repeated LLM sampling, which can be computationally expensive. Therefore, practical applicability demands reliable estimation from few samples. Semantic entropy (SE) is a popular sample-based uncertainty estimator with a discrete formulation attractive for the black-box setting. Recent extensions of semantic entropy exhibit improved LLM hallucination detection, but do so with less interpretable methods that admit additional hyperparameters. For this reason, we revisit the canonical discrete semantic entropy estimator, finding that it underestimates the "true" semantic entropy, as expected from theory. We propose a modified semantic alphabet size estimator, and illustrate that using it to adjust discrete semantic entropy for sample coverage results in more accurate semantic entropy estimation in our setting of interest. Furthermore, our proposed alphabet size estimator flags incorrect LLM responses as well or better than recent top-performing approaches, with the added benefit of remaining highly interpretable.

View on arXivView PDF

Code Implementations(1)

lucasmccabe/esaCommunity68%
GPL-3.0

Code for paper: Estimating Semantic Alphabet Size for LLM Uncertainty Quantification (ICLR '26)

20Shell, PythonDec 3, 20258 months agoGPL-3.0

Similar Papers

Cite this paper

@article{mccabe2025estimating,
  title  = {Estimating Semantic Alphabet Size for LLM Uncertainty Quantification},
  author = {Lucas H. McCabe and Rimon Melamed and Thomas Hartvigsen and H. Howie Huang},
  year   = {2025},
  eprint = {2509.14478},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.14478v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.14478.svg)](https://codeofpaper.com/paper/2509.14478)

Discussion