Decoding Uncertainty: The Impact of Decoding Strategies for Uncertainty Estimation in Large Language Models

Wataru Hashimoto, Hidetaka Kamigaito, Taro Watanabe
9/20/2025
cs.CLcs.LG

No official code found. Best implementation: wataruhashimoto52/decoding_uncertainty (1 star, Apache-2.0, last commit 2025-10-01).

Abstract

Decoding strategies manipulate the probability distribution underlying the output of a language model and can therefore affect both generation quality and its uncertainty. In this study, we investigate the impact of decoding strategies on uncertainty estimation in Large Language Models (LLMs). Our experiments show that Contrastive Search, which mitigates repetition, yields better uncertainty estimates on average across a range of preference-aligned LLMs. In contrast, the benefits of these strategies sometimes diverge when the model is only post-trained with supervised fine-tuning, i.e. without explicit alignment.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Code for "Decoding Uncertainty: The Impact of Decoding Strategies for Uncertainty Estimation in Large Language Models" in EMNLP 2025 Findings.

11Shell, PythonSep 15, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{hashimoto2025decoding,
  title  = {Decoding Uncertainty: The Impact of Decoding Strategies for Uncertainty Estimation in Large Language Models},
  author = {Wataru Hashimoto and Hidetaka Kamigaito and Taro Watanabe},
  year   = {2025},
  eprint = {2509.16696},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.16696v1}
}

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

Discussion