Saved in:
Bibliographic Details
Main Authors: Li, Yinghao, Qiang, Rushi, Moukheiber, Lama, Zhang, Chao
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.19168
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915433672605696
author Li, Yinghao
Qiang, Rushi
Moukheiber, Lama
Zhang, Chao
author_facet Li, Yinghao
Qiang, Rushi
Moukheiber, Lama
Zhang, Chao
contents Accurately quantifying a large language model's (LLM) predictive uncertainty is crucial for judging the reliability of its answers. While most existing research focuses on short, directly answerable questions with closed-form outputs (e.g., multiple-choice), involving intermediate reasoning steps in LLM responses is increasingly important. This added complexity complicates uncertainty quantification (UQ) because the probabilities assigned to answer tokens are conditioned on a vast space of preceding reasoning tokens. Direct marginalization is infeasible, and the dependency inflates probability estimates, causing overconfidence in UQ. To address this, we propose UQAC, an efficient method that narrows the reasoning space to a tractable size for marginalization. UQAC iteratively constructs an "attention chain" of tokens deemed "semantically crucial" to the final answer via a backtracking procedure. Starting from the answer tokens, it uses attention weights to identify the most influential predecessors, then iterates this process until reaching the input tokens. The resulting chain is further refined with similarity filtering and probability thresholding, which reduce the reasoning space, facilitating the approximation of the marginal answer token probabilities. We validate UQAC on multiple reasoning benchmarks with advanced open-source LLMs, demonstrating that it consistently delivers reliable UQ estimates with high computational efficiency.
format Preprint
id arxiv_https___arxiv_org_abs_2503_19168
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Language Model Uncertainty Quantification with Attention Chain
Li, Yinghao
Qiang, Rushi
Moukheiber, Lama
Zhang, Chao
Computation and Language
Accurately quantifying a large language model's (LLM) predictive uncertainty is crucial for judging the reliability of its answers. While most existing research focuses on short, directly answerable questions with closed-form outputs (e.g., multiple-choice), involving intermediate reasoning steps in LLM responses is increasingly important. This added complexity complicates uncertainty quantification (UQ) because the probabilities assigned to answer tokens are conditioned on a vast space of preceding reasoning tokens. Direct marginalization is infeasible, and the dependency inflates probability estimates, causing overconfidence in UQ. To address this, we propose UQAC, an efficient method that narrows the reasoning space to a tractable size for marginalization. UQAC iteratively constructs an "attention chain" of tokens deemed "semantically crucial" to the final answer via a backtracking procedure. Starting from the answer tokens, it uses attention weights to identify the most influential predecessors, then iterates this process until reaching the input tokens. The resulting chain is further refined with similarity filtering and probability thresholding, which reduce the reasoning space, facilitating the approximation of the marginal answer token probabilities. We validate UQAC on multiple reasoning benchmarks with advanced open-source LLMs, demonstrating that it consistently delivers reliable UQ estimates with high computational efficiency.
title Language Model Uncertainty Quantification with Attention Chain
topic Computation and Language
url https://arxiv.org/abs/2503.19168