TokUR: Token-Level Uncertainty Estimation for Large Language Model Reasoning
Tunyu Zhang, Haizhou Shi, Yibin Wang, Hengyi Wang, Xiaoxiao He, Zhuowei Li, Haoxian Chen, Ligong Han, Kai Xu, Huan Zhang, Dimitris Metaxas, Hao Wang
TL;DR
TokUR introduces token-level uncertainty estimation for LLM reasoning by perturbing attention-layer weights with a low-rank noise to create an approximate posterior. Token-level uncertainties (TU, AU, EU) are computed per token and aggregated to provide a response-level confidence, with theoretical guarantees that the estimator is unbiased. Empirically, TokUR signals correlate with answer correctness across GSM8K, MATH500, and DeepScaleR and improve test-time reasoning when used for candidate selection or as an implicit reward. The work extends Bayesian uncertainty estimation to long-form generation and demonstrates scalable, training-free uncertainty estimation for robust reasoning.
Abstract
While Large Language Models (LLMs) have demonstrated impressive capabilities, their output quality remains inconsistent across various application scenarios, making it difficult to identify trustworthy responses, especially in complex tasks requiring multi-step reasoning. In this paper, we propose a Token-level Uncertainty estimation framework for Reasoning (TokUR) that enables LLMs to self-assess and self-improve their responses in mathematical reasoning. Specifically, we introduce low-rank random weight perturbation during LLM decoding to generate predictive distributions for token-level uncertainty estimation, and we aggregate these uncertainty quantities to capture the semantic uncertainty of generated responses. Experiments on mathematical reasoning datasets of varying difficulty demonstrate that TokUR exhibits a strong correlation with answer correctness and model robustness, and the uncertainty signals produced by TokUR can be leveraged to enhance the model's reasoning performance at test time. These results highlight the effectiveness of TokUR as a principled and scalable approach for improving the reliability and interpretability of LLMs in challenging reasoning tasks.
