Estimating Semantic Alphabet Size for LLM Uncertainty Quantification

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: McCabe, Lucas H., Melamed, Rimon, Hartvigsen, Thomas, Huang, H. Howie
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915779443687424
author McCabe, Lucas H.
Melamed, Rimon
Hartvigsen, Thomas
Huang, H. Howie
author_facet McCabe, Lucas H.
Melamed, Rimon
Hartvigsen, Thomas
Huang, H. Howie
contents 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 SE 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 (DSE) 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 DSE for sample coverage results in more accurate SE estimation in our setting of interest. Furthermore, we find that two semantic alphabet size estimators, including our proposed, flag incorrect LLM responses as well or better than many top-performing alternatives, with the added benefit of remaining highly interpretable.
format Preprint
id arxiv_https___arxiv_org_abs_2509_14478
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Estimating Semantic Alphabet Size for LLM Uncertainty Quantification
McCabe, Lucas H.
Melamed, Rimon
Hartvigsen, Thomas
Huang, H. Howie
Computation and Language
Machine Learning
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 SE 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 (DSE) 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 DSE for sample coverage results in more accurate SE estimation in our setting of interest. Furthermore, we find that two semantic alphabet size estimators, including our proposed, flag incorrect LLM responses as well or better than many top-performing alternatives, with the added benefit of remaining highly interpretable.
title Estimating Semantic Alphabet Size for LLM Uncertainty Quantification
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2509.14478