A statistically consistent measure of semantic uncertainty using Language Models

Yi Liu
2/1/2025
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

To address the challenge of quantifying uncertainty in the outputs generated by language models, we propose a novel measure of semantic uncertainty, semantic spectral entropy, that is statistically consistent under mild assumptions. This measure is implemented through a straightforward algorithm that relies solely on standard, pretrained language models, without requiring access to the internal generation process. Our approach imposes minimal constraints on the choice of language models, making it broadly applicable across different architectures and settings. Through comprehensive simulation studies, we demonstrate that the proposed method yields an accurate and robust estimate of semantic uncertainty, even in the presence of the inherent randomness characteristic of generative language model outputs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2025statistically,
  title  = {A statistically consistent measure of semantic uncertainty using Language Models},
  author = {Yi Liu},
  year   = {2025},
  eprint = {2502.00507},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.00507v3}
}

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/2502.00507.svg)](https://codeofpaper.com/paper/2502.00507)

Discussion