Manuscript Offprint

arXiv:2609.35387

TRACE: Single-Pass Decoding-Trace Risk Localization for Generation Calibration

Yuebin Xu, Xuemei Peng, Junlan Chen, Zhiyi Chen, Zeyi Wen

Abstract

Reliable confidence estimation is essential for large language model deployment. However, answer-level calibration remains challenging because generation errors are often localized: a response may be fluent and high-probability overall while still failing at a critical number, entity, or factual claim. Existing estimators compress token probabilities, sequence likelihoods, entropy, or beam statistics into a global score, which can dilute such local risk signals. We propose TRACE, a single-pass, decoded-answer-preserving confidence estimator that treats decoding-time uncertainty as a trajectory through three steps: (i) recording token-level surprisal and predictive entropy during decoding, (ii) applying local risk operators to preserve uncertainty spikes, and (iii) converting localized trace risk into answer-level confidence. TRACE produces a label-free risk score, while TRACE+ calibrates trace-only features into probabilities using a held-out split, without extra generations or external verifiers. We evaluate four tasks against 19 calibration baselines, and TRACE+ reduces Brier from 0.149 to 0.137 and improves AUROC from 0.758 to 0.792 over the strongest likelihood baseline. Across seven LLMs, TRACE+ improves over the best non-TRACE baseline pool from 0.136 to 0.120 Brier and from 0.764 to 0.817 AUROC. Results show localizing decoding-time risk provides a general approach to calibration.

1 Introduction

Large language models (LLMs) are increasingly deployed in generation settings where users need not only an answer, but also a reliable estimate of whether that answer is correct (Guo et al., 2017; Desai and Durrett, 2020; Jiang et al., 2021). This problem is more challenging than standard classification calibration: a generated answer is a sequence of tokens, correctness may depend on a single number, entity, or factual claim, and a fluent response can still be wrong (Kadavath et al., 2022; Manakul et al., 2023; Kuhn et al., 2023). We study general generation calibration: estimating the answer-level correctness probability of a decoded response across diverse generation tasks.

A common approach is to compress the decoded answer into a single global confidence score, such as maximum token probability, mean token probability, length-normalized log-probability, total sequence likelihood, or average token entropy (Guo et al., 2017; Yona et al., 2022; Aichberger et al., 2026). Recent single-pass and near-single-pass methods further exploit beam-distribution statistics (Flores et al., 2025) or semantic reweighting (Duan et al., 2024; Bakman et al., 2024). While effective in many cases, these methods largely summarize a generation as a sequence-level statistic. This can erase an important part of the decoding process: where uncertainty occurs. A response may appear confident on average while becoming locally unstable at the critical step where a wrong digit, entity, or factual attribution is produced.

Multi-sample uncertainty estimators address generation uncertainty from another direction by comparing multiple sampled outputs or semantic equivalence classes (Manakul et al., 2023; Kuhn et al., 2023). However, these methods require additional generations and may change the inference workflow, which can be costly when confidence estimates are needed for every answer. We therefore focus on a stricter and more deployment-oriented setting: single-pass, decoded-answer-preserving confidence estimation. In this setting, all methods score the same decoded answer and do not use extra samples, retrieval, external verifiers, or LLM-as-a-judge labels at actual inference time.

Our key observation is that decoding-time uncertainty should be treated as a token-level trajectory rather than immediately collapsed into a global

∗^{*}Corresponding author

Accepted to Findings of the Association for Computational Linguistics: EMNLP 2026.

Figure

(a) Average calibration error

(b) Average ranking quality

Figure

(c) AUROC across models

Figure 1: Main experimental results. (a) Average Brier score across MLQA, SVAMP, TriviaQA, and TruthfulQA, where lower is better. (b) Average AUROC across the same tasks, where higher is better. (c) Cross-model AUROC in the main experiments. Gray, orange, and red bars denote representative non-TRACE baselines, TRACE, and TRACE+, respectively. TRACE improves over standard sequence-level baselines, and TRACE+ achieves the strongest overall performance across both tasks and model families.

score. Local entropy, surprisal, and risk peaks can appear near the critical answer span in real errors, such as a wrong number in arithmetic reasoning, a wrong entity in open-domain QA, or an unsupported factual claim in truthfulness-sensitive generation. These local peaks are not direct labels of token-level error, but they are informative indicators of answer-level risk. Figure 1 provides an overview of the empirical gains from this trace-based design across tasks and model families.

Based on this observation, we propose TRACE, a single-pass confidence estimator based on decoding-trace risk localization. Given a fixed decoded answer, TRACE records token-level surprisal and predictive entropy during the original generation pass, but instead of immediately averaging them, it applies local risk operators that preserve position-sensitive uncertainty spikes. We further introduce TRACE+, which maps trace-only features to calibrated probabilities using a lightweight calibrator trained on a held-out calibration split. Thus, TRACE is label-free, while TRACE+ uses supervised post-hoc calibration requiring only decoding-trace features at inference.

We evaluate TRACE and TRACE+ on multilingual QA, arithmetic reasoning, open-domain QA, and truthfulness-sensitive generation. Across four tasks, 19 confidence estimators, and seven LLMs, TRACE+ achieves the best average Brier score and AUROC, transfers across model families and scales, and remains strong without conventional selected-token likelihood summaries. Our contributions are:

• We formalize and evaluate generation calibration under a single-pass protocol, where all methods score the same generated answer without extra samples, retrieval, or external verifiers.

• We propose TRACE and TRACE+, which estimate answer-level confidence from localized surprisal and entropy patterns in the decoding trace, rather than relying on global sequential summaries that dilute critical uncertainty spikes.

• We evaluate across four tasks, 19 confidence-estimating baselines, and seven LLMs, showing that TRACE+ achieves the best average Brier score and AUROC across diverse models.