Skip to content
ImagineWorld

Agentic Confidence Calibration

node_idnode-paper_arxiv-2601.15778_agentic-confidence-calibration
node_typenode-paper
schema_profileworld.node_paper.v1
alternate_namesarxiv-2601.15778
statusactive
orthogonal_scopemanifold, entropy, authority, state
manifoldworld
entropymedium
authorityguides
stateexternal
domainimagineworld.net
node_interiorrosetta_contract
unisonone evidence claim read five ways: seated in the machine-introspection field, the work calibrates agentic confidence — self-knowledge for agents that act across steps — its framework, regime, and stance agreeing on what it is
governed_byWORLD-MANIFOLD, CORPUS
constitutional_citationCONSTITUTION
evidence_bundleworld-bundle-paper
publication_classarxiv_preprint
paper_titleAgentic Confidence Calibration
paper_authorsJiaxin Zhang, Caiming Xiong, Chien-Sheng Wu
arxiv_id2601.15778
arxiv_urlhttps://arxiv.org/abs/2601.15778
arxiv_categories{"primary":"cs.AI","secondary":["cs.CL"]}
arxiv_v1
arxiv_submitted_at2026-01-22
arxiv_updated_at2026-01-22
ocr_sourcearxiv_html
ocr_quality_classverbatim_latexml_html
extraction_toolarxiv-nodepaper-transpose
extraction_pipeline_versionworld-ingest-arxiv-html-v1.0
extracted_at2026-10-13T06:51:09Z
math_preserved_as_latextrue
figures_extractedtrue
references_structurally_parsedfalse
created_at2026-10-13T06:51:09Z
updated_at2026-10-14T05:53:23Z
local graph

Authors: Jiaxin Zhang, Caiming Xiong, Chien-Sheng Wu

arxiv: 2601.15778

Converted to markdown on 2026-10-13 from the arXiv HTML (LaTeXML) rendering; figures embedded from the same source.


AI agents are rapidly advancing from passive language models to autonomous systems executing complex, multi-step tasks. Yet their overconfidence in failure remains a fundamental barrier to deployment in high-stakes settings. Existing calibration methods, built for static single-turn outputs, cannot address the unique challenges of agentic systems, such as compounding errors along trajectories, uncertainty from external tools, and opaque failure modes. To address these challenges, we introduce, for the first time, the problem of Agentic Confidence Calibration and propose Holistic Trajectory Calibration (HTC), a novel diagnostic framework that extracts rich process-level features ranging from macro dynamics to micro stability across an agent’s entire trajectory. Powered by a simple, interpretable model, HTC consistently surpasses strong baselines in both calibration and discrimination, across eight benchmarks, multiple LLMs, and diverse agent frameworks. Beyond performance, HTC delivers three essential advances: it provides interpretability by revealing the signals behind failure, enables transferability by applying across domains without retraining, and achieves generalization through a General Agent Calibrator (GAC) that achieves the best calibration (lowest ECE) on the out-of-domain GAIA benchmark. Together, these contributions establish a new process-centric paradigm for confidence calibration, providing a framework for diagnosing and enhancing the reliability of AI agents.

Figure 1: Overview of Holistic Trajectory Calibration ( HTC ). The framework first collects confidence signals along the

Figure 1: Overview of Holistic Trajectory Calibration ( HTC ). The framework first collects confidence signals along the agent’s trajectory, then derives rich process-level diagnostic features, which are used to train a simple yet interpretable calibrator. This process not only improves calibration accuracy but also yields the three pillars of reliable agentic AI: interpretability , transferability , and generalization .

Large Language Models (LLMs) are rapidly evolving from static or retrieval-augmented text-generation tools into the core reasoning engines of complex, multi-step agentic systems (Xi et al., 2025; Wang et al., 2024a). These agents, which integrate sophisticated capabilities such as planning, using tools, and handling memory (Xi et al., 2025; Schick et al., 2023), can autonomously interact with dynamic environments to solve complex problems. As these systems are increasingly deployed in high-stakes, safety-critical domains, their reliability has emerged as the most critical and yet unresolved challenge (Wang et al., 2024a; Liu et al., 2024b). Ensuring that we can trust the outputs of these powerful but opaque systems is critical for their responsible adoption.

This shift from a static generator to a dynamic actor fundamentally alters the nature of the reliability challenge. First, uncertainty is no longer an isolated property of a single output, but a compounding factor that accumulates and propagates throughout a sequential trajectory (Duan et al., 2025; Zhao et al., 2025). An early, low-confidence decision-such as erroneously selecting a tool, can “poison” the entire subsequent execution path, leading to an agent holding high confidence in a completely incorrect result. Second, agents introduce new, external sources of uncertainty through their interaction with tools and environments (Liu et al., 2024a). API failures, noisy data returned by tools, or the misuse of a tool’s functionality create new reliability bottlenecks independent of the model’s internal knowledge. Finally, the multi-step nature of agentic processes makes failure modes more opaque. A final incorrect answer may not stem from the last reasoning step, but from a critical, masked breakdown that occurs at a specific intermediate step earlier in the trajectory (Fu et al., 2025). Agent calibration also faces a fundamental data scarcity challenge that means each agent trajectory represents an expensive execution involving LLM inference, tool interactions, and human evaluation for ground truth labels. This constraint shapes us toward sample-efficient and interpretable methods.

In light of these unique challenges, existing approaches to confidence estimation are insufficient. On one hand, traditional calibration techniques like Temperature Scaling (Guo et al., 2017) were designed for post-hoc correction of static, single-point classification predictions. Methodologically, they are incapable of processing sequential trajectory data and thus completely ignore the process-level information that could reveal the root cause of an agent’s failure. On the other hand, while recent work has begun to explore more fine-grained confidence signals (Geng et al., 2024), these efforts often rely on coarse aggregation methods like global averaging, which can mask local yet critical reasoning failures (Fu et al., 2025), or are limited to evaluating pure reasoning chains without external tool interaction (Wei et al., 2022), see more related work in Appendix A.1. Consequently, a significant gap exists in the current studies: there is a lack of a systematic framework for effectively calibrating the confidence of an agent’s final output by diagnosing its entire execution trajectory.

In this work, we introduce the new problem of Agentic Confidence Calibration (ACC): estimating the likelihood that an agent’s trajectory will succeed by diagnosing its entire execution process rather than only its final output. As illustrated in Figure 1, this process-centric perspective raises three key challenges: uncertainty signals dispersed across multiple temporal scales, compounding noise from both model and environment, and limited availability of labeled data. To address these challenges, we propose Holistic Trajectory Calibration (HTC), a novel framework that transforms raw confidence traces into a rich set of process-diagnostic features, encompassing cross-step dynamics, intra-step stability, positional indicators, and structural attributes. These features are then mapped through a simple, interpretable model to produce calibrated confidence estimates. Importantly, HTC is decoupled from any specific agent architecture, making it lightweight, transparent, and broadly applicable across diverse tasks and frameworks.

Our study demonstrates that HTC brings three key benefits:

  • •

    Interpretability: By grounding calibration in trajectory-level features such as early-step entropy, confidence gradients, and stability dynamics, HTC exposes the signals behind model confidence, enabling transparent diagnosis of failure modes and guiding principled agent design.

  • •

    Transferability: Once trained, an HTC calibrator can be seamlessly applied across tasks and domains without retraining, delivering consistent gains in both calibration and discrimination and reducing dependence on costly, task-specific tuning.

  • •

    Generalization: Pre-training a General Agent Calibrator (GAC) on diverse datasets yields a universal reliability layer that achieves the best calibration (lowest ECE) on out-of-domain challenges such as GAIA, pointing toward a scalable foundation for trustworthy agentic AI.

Across eight benchmarks, multiple agent frameworks, and both closed- and open-source LLMs, we show that HTC reliably outperforms strong baselines. Beyond empirical gains, HTC establishes a process-centric paradigm for agentic confidence calibration, uniting interpretability, transferability, and generalization, three essential components for building reliable and trustworthy AI agents.

2.1 Holistic Trajectory Calibration: A New Formulation

Section titled “2.1 Holistic Trajectory Calibration: A New Formulation”

An agent system is defined as a policy π\pi that, at step tt, maps the interaction history h_th\_{t} to an action a_t∈A:a_t=π(h_t),h_t=(s_0,a_1,o_1,…,s_t)a\_{t}\in\mathcal{A}:a\_{t}=\pi(h\_{t}),h\_{t}=(s\_{0},a\_{1},o\_{1},\ldots,s\_{t}). The environment Ω\Omega executes a_ta\_{t} from state s_ts\_{t} and returns an observation o_t∈Oo\_{t}\in\mathcal{O} together with the next state via a (possibly stochastic) transition kernel (o_t, s_t+1)∼δ( ⋅∣s_t,a_t )(o\_{t},\,s\_{t+1})\sim\delta(\,\cdot\mid s\_{t},a\_{t}\,). This interaction produces an execution trajectory,

T=(s_0, a_1,o_1,L_1, s_1, a_2,o_2,L_2, …, a_N,o_N,L_N, s_N),\mathcal{T}=\big(s\_{0},\,a\_{1},o\_{1},\mathcal{L}\_{1},\,s\_{1},\,a\_{2},o\_{2},\mathcal{L}\_{2},\,\ldots,\,a\_{N},o\_{N},\mathcal{L}\_{N},\,s\_{N}\big),(1)

which records the complete problem-solving process up to termination at step NN. For LLM-based agents, each action a_ta\_{t} (e.g., thinking, planning pr or tool call) is generated by an LLM M\mathcal{M}. We denote by L_t=(ℓ_t,1,…,ℓ_t,m_t)\mathcal{L}\_{t}=(\ell\_{t,1},\ldots,\ell\_{t,m\_{t}}) the sequence of token-level log-probabilities produced when generating a_ta\_{t}, where m_tm\_{t} is the number of tokens in action a_ta\_{t}. By concatenating these sequences across all NN steps, we obtain the log-probability trajectory after LLM execution:

L_T=((ℓ_1,1,…,ℓ_1,m_1),  (ℓ_2,1,…,ℓ_2,m_2),  …,  (ℓ_N,1,…,ℓ_N,m_N)).\mathcal{L}\_{\mathcal{T}}=\Big((\ell\_{1,1},\ldots,\ell\_{1,m\_{1}}),\;(\ell\_{2,1},\ldots,\ell\_{2,m\_{2}}),\;\ldots,\;(\ell\_{N,1},\ldots,\ell\_{N,m\_{N}})\Big).(2)

This trajectory captures the agent’s complete reasoning process, yet existing approaches typically assess confidence only from the final action: C_trad=H(s_N,a_N)\mathcal{C}\_{\text{trad}}=\mathcal{H}(s\_{N},a\_{N}). Agentic confidence calibration introduces three fundamental challenges that make it substantially harder than static calibration.

Challenge 1: Compounding Uncertainty. Agentic trajectories accumulate and propagate uncertainty across multiple steps: early misjudgments may amplify downstream errors, while interactions with external tools introduce additional stochasticity, resulting in confidently incorrect final outputs.

Challenge 2: Multi-Source Uncertainty. Uncertainty in agentic reasoning is heterogeneous: it arises from token-level fluctuations within a step, from cross-step dynamics describing how confidence evolves. Signals are dispersed across multiple scales and cannot be reduced to a single summary.

Challenge 3: Data Scarcity and Uncertainty. Collecting agent trajectories is time-consuming and costly, which limits available datasets to relatively small scales. Moreover, the length of trajectories varies substantially with task complexity, introducing additional sources of data uncertainty.

To address the above challenges, we introduce a new paradigm Holistic Trajectory Calibration (HTC), and formulate HTC as a supervised learning problem. Given a dataset of trajectories {T_i(L_T_i)}_i=1N\{\mathcal{T}\_{i}(\mathcal{L}\_{\mathcal{T}\_{i}})\}\_{i=1}^{N} with binary success labels {y_i}_i=1N\{y\_{i}\}\_{i=1}^{N}, we learn a calibration function F_HTC\mathcal{F}\_{\textbf{{HTC}}} by minimizing a proper scoring loss:

F_HTC\*=arg min⁡_F1N∑_i=1Nℓ(y_i,F(T_i(L_T_i)))+λR(F),\mathcal{F}\_{\textbf{{HTC}}}^{\*}=\argmin\_{\mathcal{F}}\frac{1}{N}\sum\_{i=1}^{N}\ell\big(y\_{i},\mathcal{F}(\mathcal{T}\_{i}(\mathcal{L}\_{\mathcal{T}\_{i}}))\big)+\lambda R(\mathcal{F}),(4)

where ℓ(⋅,⋅)\ell(\cdot,\cdot) is a calibration-sensitive loss and R(F)R(\mathcal{F}) is a regularization term. The core question is how to design an effective representation ϕ(T(L_T))\phi(\mathcal{T}(\mathcal{L}\_{\mathcal{T}})) that captures dispersed uncertainty signals, while supporting learning that is sample-efficient, interpretable, and generalizable across tasks.

2.2 The Imperative for Trajectory-Level Features

Section titled “2.2 The Imperative for Trajectory-Level Features”

Given the challenges identified above, we argue that trajectory-level features are indispensable for effective HTC framework. Naïve alternatives such as relying only on final-step log-probabilities or averaging token confidences fail to capture the dispersed, multi-scale, and noise-sensitive nature of agentic uncertainty. In contrast, holistic trajectory-level features balance expressivity and practicality: they capture diverse uncertainty signals while remaining tractable in small-data regimes. Unlike end-to-end neural encoders (e.g., RNN, LSTM, Transformer) which require large datasets and yield opaque representations ill-suited for calibration, feature-based representations enable sample-efficient learning and provide direct diagnostic insights.

Design principles. Our trajectory-level representation x=ϕ(T)\mathbf{x}=\phi(\mathcal{T}) is guided by four principles: (i) Universality: features should be agnostic to task, model, and agent framework; (ii) Informativeness: features must encode signals causally linked to success and failure; (iii) Parsimony: the set should remain compact for small-sample calibration; and (iv) Interpretability: each feature should provide diagnostic value for analyzing uncertainty. Based on these principles, we organize trajectory-level features into four complementary families:

  • •

    Cross-Step Dynamics: capture how confidence evolves across steps, detecting accumulation, reversals, or abrupt shifts that reflect compounding uncertainty.

  • •

    Intra-Step Stability: measure within-step volatility and distributional shape of token-level log-probabilities, indicating unstable or collapsed behaviors.

  • •

    Positional Indicator: critical early and late time-points where initialization quality and terminal consolidation often determine success and dominate outcomes.

  • •

    Structure Attribute: summarize macroscopic trajectory attributes (e.g., step count, token-length patterns) that proxy for task complexity and agent efficiency.

From trajectory to features. Concretely, we apply a small set of statistical operators (mean/variance, min/max, entropy, skewness, finite differences) along two axes, within a step and across steps, to the log-probability trajectory. This yields a compact vector x∈R48\mathbf{x}\in\mathbb{R}^{48} that preserves essential uncertainty signals while supporting efficient and interpretable calibration. We constructed a systematic Taxonomy of Uncertainty covering four critical axes. This resulting 48-dimensional space balances comprehensiveness with the need to prevent overfitting in small-sample regimes (see ablation in Appendix A.4). A full taxonomy with formal definitions is provided in Appendix A.5.1.

Given the designed feature x=ϕ(T)∈R48\mathbf{x}=\phi(\mathcal{T})\in\mathbb{R}^{48}, we adopt a simple yet interpretable light calibration model. This choice is motivated by three considerations specific to agentic confidence calibration: (i) small-sample robustness: agent trajectory datasets are inherently small so linear models are less prone to overfitting than neural alternatives with thousands of parameters; (ii) interpretable diagnostics: linear weights provide direct insights into which uncertainty signals matter for different tasks, which is crucial for understanding agent failure modes; and (iii) transferability and generalization as low-capacity models generalize more reliably across domains with heterogeneous trajectory distributions. Formally, the calibration function maps features to a calibrated confidence score:

C_T  =  F_HTC(x)  =  σ ⁣(w⊤x+b),w∈R48,b∈R\mathcal{C}\_{\mathcal{T}}\;=\;\mathcal{F}\_{\text{{{HTC}}}}(\mathbf{x})\;=\;\sigma\!\big(\mathbf{w}^{\top}\mathbf{x}+b\big),\quad\mathbf{w}\in\mathbb{R}^{48},\quad b\in\mathbb{R}(5)

where w\mathbf{w} and bb are learned parameters. We instantiate the model under two complementary regularization regimes:

  • •

    HTC-Full: Retains all features while stabilizing estimates under collinearity through ridge regularization, R_L2(w)=λ∥w∥_22\mathcal{R}\_{\mathrm{L2}}(\mathbf{w})=\lambda\|\mathbf{w}\|\_{2}^{2}. This preserves the full diagnostic surface across all features.

  • •

    HTC-Reduced: Encourages sparsity via lasso regularization, R_L1(w)=λ∥w∥_1\mathcal{R}\_{\mathrm{L1}}(\mathbf{w})=\lambda\|\mathbf{w}\|\_{1}, automatically selecting a compact subset S={j:w_j≠0}\mathcal{S}=\{j:w\_{j}\neq 0\}. This denoises spurious features and often improves calibration in small-data regimes.

Theoretical Motivation. From a theoretical standpoint, trajectory-level calibration is strictly more informative than last-step confidence: conditioning on richer trajectory features can only reduce Bayes risk under proper scoring rules. In addition, a sparse ℓ_1\ell\_{1}-regularized logistic calibrator admits favorable small-sample generalization bounds, explaining its stability in data-scarce regimes. A simple chain-of-subgoals model further clarifies why last-step confidence can be systematically optimistic, and the same diagnostics applied to prefixes establish a principled path toward online reliability. Formal statements and complete proofs are provided in Appendix A.6.

Efficiency and Deployment. The linear calibrator is computationally lightweight. Feature extraction scales linearly with trajectory length and requires only simple aggregation operators, while model training and inference are near-instantaneous. This efficiency makes HTC practical for real-time deployment and rapid adaptation to new domains, see more discussion in Appendix A.7 and A.8.

Datasets and Benchmarks. To comprehensively evaluate the effectiveness and generality of our HTC framework, we select 8 representative public benchmarks. These datasets are categorized into three groups to test distinct agent capabilities: (1) Knowledge-intensive QA (SimpleQA (Bordes et al., 2015), HotpotQA (Yang et al., 2018), StrategyQA (Geva et al., 2021)) for factual retrieval and multi-hop reasoning; (2) Complex Reasoning (MATH500 (Hendrycks et al., ), GPQA (Rein et al., 2024), MMLU-Pro (Wang et al., 2024b), HLE (Phan et al., 2025)) for formal logic and deep domain knowledge; and (3) Frontier Agentic Tasks (GAIA (Mialon et al., 2023)) for planning and tool-use in difficult, open-ended scenarios. Detailed descriptions and references for all datasets are provided in Appendix A.2.1.

Models & Agent Frameworks. Our experiments are conducted using smolagents (Roucher et al., 2025), a lightweight and research-friendly framework, leveraging its CodeAct paradigm where the agent generates executable Python code for tool use. We evaluate on a diverse set of models that provide logprobs access. Our closed-source models are GPT-4.1 and GPT-4o (Achiam et al., 2023). Our open-source suite includes GPT-OSS-120B & 20B (Agarwal et al., 2025), Deepseek-v3.1 (Bi et al., 2024), and Qwen3-235B (Yang et al., 2025). To ensure our findings are not specific to a single framework, we conduct a generalization study using the state-of-the-art OAgents framework (Zhu et al., 2025) in our ablation analysis. Further details on all frameworks and models are available in Appendix A.2.3.

Baselines. We compare HTC against two categories of baselines to address different evaluation dimensions: Inference-based Baselines: (1) Verbalized Confidence (Tian et al., 2023): agents directly output confidence scores; (2) Last-Step Token Confidence (LastStep-TP): average log-probabilities from final generation step; (3) Global-Trace Token Confidence (GlobalTrace-TP): average log-probabilities across all steps; (4) Temperature Scaling (Guo et al., 2017) applied to above methods (see details in Appendix A.2.4). Learning-based Baselines: (1) LSTM Encoder: processes raw log-probability sequences with final hidden state classification; (2) Transformer: attention-based sequence encoder. There are another three nonlinear methods based on our extracted features: (3) Neural Network, (4) XGBoost and (5) Gaussian Process (Rasmussen and Williams, 2005). Detailed definitions and implementation specifics are provided in Appendix A.2.5.

Evaluation Metrics and Implementation. We evaluate calibration performance using three standard metrics: Expected Calibration Error (ECE) (Guo et al., 2017), which measures the accuracy of confidence scores; the Brier Score (BS) (Glenn and others, 1950), a proper scoring rule assessing both calibration and discrimination; and AUROC, which measures the model’s ability to distinguish between successful and failed trajectories. It is important to distinguish the calibration method from the evaluation metric. HTC is the proposed method (predictor) that outputs confidence scores, while metrics like ECE and Brier Score serve as the ground-truth standards for assessing the quality of those scores. Therefore, a method achieving consistently lower ECE and BS is objectively better aligned with the true empirical accuracy. To ensure the validity of our ground truth labels, we employed a Gemini-2.5-Pro based judge, which we verified on a stratified subset to achieve a 90-95% agreement rate with human experts. All experiments are conducted using a cross-validation scheme to ensure robust results. A detailed description is provided in Appendix A.2.2. The implementation details and hyperparameter setting are provided in Appendix A.2.6.

Table 1: Main results comparing HTC against baselines on representative datasets. Top 2 results in ECE, BS and AUROC are marked as bold and see full results in Table 4 and 5 in Appendix A.3.1.

MethodSimpleQAGPQAHLE
ECE ↓\downarrowBS ↓\downarrowAUROC ↑\uparrowECE ↓\downarrowBS ↓\downarrowAUROC ↑\uparrowECE ↓\downarrowBS ↓\downarrowAUROC ↑\uparrow
Verbalized Conf0.1210.1960.6550.4540.5230.5930.6560.5310.614
LastStep-TP0.1010.1860.6990.4240.4130.6140.6860.5610.604
LastStep-TP + Temp0.0710.1780.6980.1390.2580.6100.4360.2780.628
GlobalTrace-TP0.1100.1930.6920.4140.4020.6490.6850.5600.551
GlobalTrace-TP + Temp0.0770.1810.6910.1360.2570.6430.4330.2770.570
HTC-Full0.0750.1500.7270.1240.2190.7040.0720.0980.617
HTC-Reduced0.0680.1400.7520.1020.2130.7060.0310.0900.644

3.2 Main Results: Calibration Performance of HTC

Section titled “3.2 Main Results: Calibration Performance of HTC”

Table 1 summarizes results on three representative datasets. Note that we evaluate the quality of our calibration method (HTC) using standard metrics (ECE, Brier Score); thus, lower values on these metrics directly indicate superior alignment between predicted confidence and actual performance. Across all metrics, both HTC variants substantially outperform inference-based baselines, with especially large gains in Brier Score and AUROC. On the most challenging tasks, HTC-Reduced achieves the strongest calibration, e.g., ECE of 0.031 and Brier Score of 0.09 on HLE, highlighting the benefit of sparsity in isolating universal uncertainty signals. We present a series of radar charts in Figure 1 to provide a comprehensive overview of our framework’s performance across all eight diverse datasets. We also compared against five learning-based baselines, including LSTM, Transformer, Neural Networks (NN), Gaussian Process (GP) and XGboost methods on SimpleQA with detailed learning curves shown in Figure 2. HTC consistently attains lower mean error and dramatically smaller variance across dataset sizes (100–400), demonstrating robustness in small-data regimes where neural baselines overfit or fluctuate heavily (see full results in Appendix A.3.1).

Figure 2: Learning Curve Comparison: HTC vs. Learning-Based Baselines on SimpleQA dataset, showing HTC consistently outp

Figure 2: Learning Curve Comparison: HTC vs. Learning-Based Baselines on SimpleQA dataset, showing HTC consistently outperforms and exhibits much lower variance under small-data regimes.

Figure 3: The Impact of Base LLM on Calibration Performance on the SimpleQA dataset.

Figure 3: The Impact of Base LLM on Calibration Performance on the SimpleQA dataset.

Effect of LLM Choice. To validate HTC is model-agnostic, we evaluated its performance across six different LLMs on SimpleQA. The results in Figure 3, reveal two key findings. First, our HTC framework delivers consistent and substantial improvements for every model tested, from the high-performing GPT-4.1 to other powerful open-source alternatives like GPT-OSS-20B, which exhibits particularly poor initial calibration. Second, the results highlight that different LLMs possess distinct baseline calibration profiles. For instance, while GPT-4o demonstrates the strongest raw discriminative ability (highest baseline AUROC), its calibration (ECE) is notably poorer than that of GPT-4.1. Our HTC framework effectively addresses these unique characteristics, not only elevating the overall performance but also correcting the specific deficiencies of each model.

Effect of Agent Architectures. We investigated whether HTC’s effectiveness is tied to a specific agent architectures. We compared its performance on the lightweight smolagents versus the highly-optimized OAgents architectures, using GPT-4.1 on GPQA (Figure 7 in Appendix A.3.1). HTC provides significant gains on both architectures, confirming that our approach is architecture-agnostic and can serve as a plug-and-play module to enhance the reliability of various agentic systems.

3.3.1 Feature Importance and Interpretability

Section titled “3.3.1 Feature Importance and Interpretability”

A key advantage of HTC framework is its interpretability. By analyzing the features weights of our regularized linear model, we can move beyond if it works to why it works, gaining deep insights into the nature of agentic failure.

Uncertainty Signals are Task-Dependent. Our first major finding is that the most predictive signals of failure are highly dependent on the cognitive demands of the task. Figure 8 in Appendix A.3.2 displays the important features selected by our model for each of the eight datasets. It is visually apparent that there is no single universally dominant feature; the feature set and their relative importances shift based on the task’s nature. To illustrate this task-dependency more clearly, we compare the feature importance distributions for two representative tasks in Figure 4 (left):

  • •

    For SimpleQA, a task that typically involves a “search-then-synthesize” pattern, the most predictive features are diverse and balanced across Dynamics, Stability, and Position. This suggests that failure can occur at multiple distinct stages: a poor transition between search and synthesis (Dynamics), an unstable generation process (Stability), or a weak final conclusion (Position). The model learns to monitor a broad array of signals to detect these varied failure modes.

  • •

    For GPQA, a task involving long and complex reasoning chains, the feature importance is heavily concentrated in the Position category. This indicates that for such difficult tasks, the agent’s cognitive state at the very beginning (first_step) and, more critically, at the very end (last_step) serves as the most potent summary of the entire arduous process. A hesitant or unstable conclusion after a long chain of reasoning is a particularly strong signal of failure.

Figure 4: (Left) Distribution of feature importance across different task domains. (Right) Frequency of feature category

Figure 4: (Left) Distribution of feature importance across different task domains. (Right) Frequency of feature category

Figure 4: (Left) Distribution of feature importance across different task domains. (Right) Frequency of feature category across different levels, including Top 1, Top 3, Top 5 and all selected features.

A General Hierarchy of Diagnostic Signals.
Section titled “A General Hierarchy of Diagnostic Signals.”

We analyze the statistical distribution of feature categories across all datasets, as shown in Figure 4 (right). The Top-1 most important feature across all datasets is most frequently a Positional feature. This aligns with intuition: a flawed start or a shaky conclusion is the most immediate and powerful “first alert” signal of a failing trajectory. As we expand our view to the Top-3 and Top-5 most important features, Stability and Dynamics features become increasingly prominent. This reveals that a comprehensive diagnosis requires looking beyond the start/end points and into the micro- and macro-level stability of the reasoning process itself. When considering all selected features, Dynamics emerges as the most frequently selected category overall. This suggests that while not always the single strongest signal, the step-to-step evolution of an agent’s confidence is a pervasive and indispensable component of a full reliability assessment. This analysis, with full feature selection frequency detailed in Table 6 in Appendix A.3.2, allows us to distill a key insight: effective agent calibration requires a hierarchical diagnostic approach.

To validate the complementarity of our feature design, we conducted an ablation study across 15 configurations spanning single categories, pairwise, three-way, and the full set over the four feature categories (see Appendix A.4). We find that no single family suffices while multi-category combinations substantially improve performance. There is no “marginal” category, the effectiveness of HTC derives precisely from integrating diverse, process-diagnostic signals.

A central question is whether HTC’s process-diagnostic features capture generalizable uncertainty signals rather than dataset-specific artifacts. To evaluate this, we pre-train a calibrator on one source dataset and apply it without further training to multiple target datasets.

Knowledge Domain Transfer: From Knowledge to Reasoning. We first evaluate transferability within the knowledge-intensive domain by training a calibrator on SimpleQA. As shown in Table 2, the transferred model performs remarkably well on other QA tasks: on HotpotQA, it even outperforms direct training across all metrics, with similar gains on StrategyQA. Figure 5 explains this effect, the feature distributions of SimpleQA and HotpotQA are closely aligned, indicating shared uncertainty patterns. By contrast, transfer to the out-of-domain GPQA is weaker, consistent with its clear separation in feature space. These results suggest HTC can capture a robust “uncertainty patterns” that generalizes across related tasks while revealing the boundaries of cross-domain transfer.

Reasoning Domain Transfer: The Challenge of Distribution Shift. We next examine transfer from MMLU-Pro. As shown in Table 2, transfer to other reasoning tasks (MATH500, HLE) underperforms direct training, despite their proximity in feature space (Figure 5). We attribute this to a distribution shift in reasoning patterns: MMLU-Pro induces multiple-choice reasoning, producing a different distribution characteristics than the open-ended generation in MATH500 or complex planning in HLE. Interestingly, transfer to StrategyQA is strong, despite being cross-domain. The key factor appears to be shared answer format (binary/short-form), suggesting that output structure can drive transferability as much as task category. This highlights that HTC features capture not only what the agent reasons about, but also how it organizes its final decision.

Table 2: Cross-domain transfer performance. A calibrator is trained on a single source dataset, evaluated on multiple target datasets, comparing against a model trained directly on the target dataset.

Source: SimpleQA (Knowledge)HotpotQA (ID)StrategyQA (ID)GPQA (OOD)
ECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrowECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrowECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrow
DirectTrain (full)0.1160.1930.7140.0790.1410.6700.1240.2190.704
DirectTrain (reduced)0.0820.1830.7290.0550.1360.6650.1020.2130.706
Transfer (full)0.1130.1940.7190.0990.1480.6570.4350.4460.587
Transfer (reduced)0.0700.1830.7320.0640.1350.6810.3040.3300.629
Source: MMLU-Pro (Reasoning)MATH500 (ID)HLE (ID)StrategyQA (OOD)
ECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrowECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrowECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrow
DirectTrain (full)0.0600.0770.7880.0720.0980.6170.0790.1410.670
DirectTrain (reduced)0.0480.0700.8160.0310.0900.6440.0550.1360.665
Transfer (full)0.0810.0920.7820.4570.3290.6200.0560.1340.682
Transfer (reduced)0.0810.0830.7920.5040.3490.6450.0280.1310.689

Figure 5: Low-dimensional t-SNE visualization of the feature spaces for different datasets.

Figure 5: Low-dimensional t-SNE visualization of the feature spaces for different datasets.

Figure 5: Low-dimensional t-SNE visualization of the feature spaces for different datasets.

Figure 5: Low-dimensional t-SNE visualization of the feature spaces for different datasets.

3.4 Generalization: The General Agent Calibrator

Section titled “3.4 Generalization: The General Agent Calibrator”

Our analysis in Section 3.3.2 has shown that while uncertainty signals are task-dependent, they share underlying patterns. This motivates our final and most ambitious experiment: can we train a single, general agent calibrator (GAC) on a diverse corpus of tasks and have it successfully generalize to a complex, completely held-out agentic benchmark? To test this, we pooled all seven datasets (SimpleQA, HotpotQA, StrategyQA, GPQA, MATH500, HLE, MMLU-Pro) for pre-training and held out GAIA as a challenging out-of-domain target. As visualized in Figure 5, GAIA lies dispersed across and beyond the pre-training feature space, making it an ideal stress test for generalization. We trained two versions of GAC (full vs. reduced features) on the combined corpus and evaluated them directly on GAIA, with results presented in Table 3 and Figure 6. Note that while HTC refers to our proposed methodological framework, GAC refers to the specific pre-trained model artifact released for zero-shot generalization.

Figure 6: Reliability Diagrams for different calibration methods on the GAIA validation set.

Figure 6: Reliability Diagrams for different calibration methods on the GAIA validation set.

Our results are highly encouraging. As shown in Table 3, pretraining GAC delivers the strongest calibration results on GAIA. Pretrained GAC-Reduced achieves the best ECE at 0.118, with Pretrained GAC-Full close behind at 0.128, both clearly surpassing DirectTrain (full: 0.169, reduced: 0.142) as well as all domain-transfer baselines. While DirectTrain (reduced) obtains the lowest Brier Score (0.233) and highest AUROC (0.686), GAC-Reduced remains highly competitive (0.245 BS; 0.647 AUROC) and, crucially, retains a substantially broader feature base (29.6 vs. 4.8 on average). These findings demonstrate that pretraining enables GAC to capture a transferable “uncertainty grammar” that prioritizes reliable calibration without resorting to extreme dataset-specific sparsification. Overall, achieving the best ECE with a pretrained calibrator is a highly promising result, highlighting its potential as a universal reliability layer for AI agents.

Table 3: Performance of the GAC on GAIA Validation Set (top 2 are marked as bold)

MethodECE ↓\downarrowBrier Score ↓\downarrowAUROC ↑\uparrow# of Features
LastStep-TP0.3820.3820.3750.3750.6070.60711
Knowledge Domain Transfer0.255_±0.0100.255\_{\pm 0.010}0.273_±0.0090.273\_{\pm 0.009}0.620_±0.0120.620\_{\pm 0.012}4848
Reasoning Domain Transfer0.258_±0.0100.258\_{\pm 0.010}0.268_±0.0080.268\_{\pm 0.008}0.619_±0.0200.619\_{\pm 0.020}4848
DirectTrain (full)0.169_±0.0110.169\_{\pm 0.011}0.265_±0.0090.265\_{\pm 0.009}0.620_±0.0160.620\_{\pm 0.016}4848
DirectTrain (reduced)0.142_±0.010{0.142\_{\pm 0.010}}0.233_±0.003\mathbf{0.233\_{\pm 0.003}}0.686_±0.013\mathbf{0.686\_{\pm 0.013}}4.8_±2.0{4.8\_{\pm 2.0}}
Pretrained GAC-Full0.128_±0.001\mathbf{0.128\_{\pm 0.001}}0.250_±0.0010.250\_{\pm 0.001}0.636_±0.0010.636\_{\pm 0.001}4848
Pretrained GAC-Reduced0.118_±0.006\mathbf{0.118\_{\pm 0.006}}0.245_±0.002\mathbf{0.245\_{\pm 0.002}}0.647_±0.005\mathbf{0.647\_{\pm 0.005}}29.6_±3.9{29.6\_{\pm 3.9}}

We introduced Holistic Trajectory Calibration (HTC), a feature-based and interpretable framework for agentic confidence calibration. Our work addresses compounding uncertainty, heterogeneous signals, and data scarcity, yielding three key takeaways: (1) calibration relies on a hierarchy of diagnostic signals; (2) HTC features capture a transferable “uncertainty patterns” enabling strong cross-task generalization while exposing limits under distribution shift; and (3) a pretrained General Agent Calibrator (GAC) achieves the best ECE (zero-shot) on unseen tasks like GAIA, providing a plug-and-play foundation. Future work will scale GAC pre-training and explore light task-specific fine-tuning to combine broad generalization with specialized accuracy.

This research contributes to the development of safer and more reliable AI agents, which is critical for their deployment in high-stakes domains like healthcare and finance. By enabling agents to better “know what they don’t know,” our work can facilitate more effective human-AI collaboration and increase the transparency of agent decision-making. However, we also acknowledge potential risks. A highly effective calibrator could be misused to create a false sense of security in an agent that is still fundamentally flawed in ways not captured by our features. Like any technology that enhances AI capability, it has a dual-use potential and must be deployed with a comprehensive evaluation strategy that goes beyond calibration metrics alone.

We have taken extensive steps to ensure that our work is reproducible. All datasets used in our experiments are publicly available and are described in Section 3, with preprocessing details included in Appendix A.2.6. The proposed HTC framework is fully specified: Section 2 defines the core methodology, Appendix A.6 provides complete theoretical proofs with explicit assumptions, and Appendix A.5.2 gives a detailed description of all diagnostic features with both mathematical definitions and intuitive explanations. Our learning-based baselines are described in Appendix A.2.5, together with their architectures and hyperparameters. Evaluation metrics and cross-validation strategies are reported in Appendix A.2.2. Because our calibrator is a lightweight logistic model operating on engineered features, the entire system can be re-implemented with minimal effort. For transparency, we additionally release an anonymized code base in the supplementary material, which computes the feature map and reproduces the calibration experiments in the paper.

  • Achiam et al. (2023) J. Achiam, S. Adler, S. Agarwal, L. Ahmad, I. Akkaya, F. L. Aleman, D. Almeida, J. Altenschmidt, S. Altman, S. Anadkat, et al. Gpt-4 technical report. arXiv preprint arXiv:2303.08774. Cited by: §3.1.
  • Agarwal et al. (2025) S. Agarwal, L. Ahmad, J. Ai, S. Altman, A. Applebaum, E. Arbus, R. K. Arora, Y. Bai, B. Baker, H. Bao, et al. Gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925. Cited by: §3.1.
  • Bi et al. (2024) X. Bi, D. Chen, G. Chen, S. Chen, D. Dai, C. Deng, H. Ding, K. Dong, Q. Du, Z. Fu, et al. Deepseek llm: scaling open-source language models with longtermism. arXiv preprint arXiv:2401.02954. Cited by: §3.1.
  • Bordes et al. (2015) A. Bordes, N. Usunier, S. Chopra, and J. Weston Large-scale simple question answering with memory networks. arXiv preprint arXiv:1506.02075. Cited by: §3.1.
  • Chen and Guestrin (2016) T. Chen and C. Guestrin XGBoost: a scalable tree boosting system. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 785–794. External Links: Link, Document Cited by: §A.2.5.
  • Comanici et al. (2025) G. Comanici, E. Bieber, M. Schaekermann, I. Pasupat, N. Sachdeva, I. Dhillon, M. Blistein, O. Ram, D. Zhang, E. Rosen, et al. Gemini 2.5: pushing the frontier with advanced reasoning, multimodality, long context, and next generation agentic capabilities. arXiv preprint arXiv:2507.06261. Cited by: §A.2.2.
  • Duan et al. (2025) J. Duan, J. Diffenderfer, S. Madireddy, T. Chen, B. Kailkhura, and K. Xu UProp: investigating the uncertainty propagation of llms in multi-step agentic decision-making. arXiv preprint arXiv:2506.17419. Cited by: §A.1, §1.
  • Fu et al. (2025) Y. Fu, X. Wang, Y. Tian, and J. Zhao Deep think with confidence. arXiv preprint arXiv:2508.15260. Cited by: §A.1, §1, §1.
  • Geng et al. (2024) J. Geng, F. Cai, Y. Wang, H. Koeppl, P. Nakov, and I. Gurevych A survey of confidence estimation and calibration in large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 6577–6595. Cited by: §A.1, §1.
  • Geva et al. (2021) M. Geva, D. Khashabi, E. Segal, T. Khot, D. Roth, and J. Berant Did aristotle use a laptop? a question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics 9, pp. 346–361. Cited by: §3.1.
  • Glenn et al. (1950) W. B. Glenn et al. Verification of forecasts expressed in terms of probability. Monthly weather review 78 (1), pp. 1–3. Cited by: 2nd item, §3.1.
  • Groot and Valdenegro-Toro (2024) T. Groot and M. Valdenegro-Toro Overconfidence is key: verbalized uncertainty evaluation in large language and vision-language models. arXiv preprint arXiv:2405.02917. Cited by: §A.1.
  • Guo et al. (2017) C. Guo, G. Pleiss, Y. Sun, and K. Q. Weinberger On calibration of modern neural networks. In International conference on machine learning, pp. 1321–1330. Cited by: 1st item, §A.1, §A.2.4, §1, §3.1, §3.1.
  • Han et al. (2024) J. Han, W. Buntine, and E. Shareghi Towards uncertainty-aware language agent. In Findings of the Association for Computational Linguistics ACL 2024, pp. 6662–6685. Cited by: §A.1.
  • [15] D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt Measuring mathematical problem solving with the math dataset. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 2), Cited by: §3.1.
  • Hochreiter and Schmidhuber (1997) S. Hochreiter and J. Schmidhuber Long short-term memory. Neural computation 9 (8), pp. 1735–1780. Cited by: §A.2.5.
  • Kadavath et al. (2022) S. Kadavath, T. Conerly, A. Askell, T. Henighan, D. Drain, E. Perez, N. Schiefer, Z. Hatfield-Dodds, N. DasSarma, E. Tran-Johnson, et al. Language models (mostly) know what they know. arXiv preprint arXiv:2207.05221. Cited by: §A.1.
  • Kirchhof et al. (2025) M. Kirchhof, G. Kasneci, and E. Kasneci Position: uncertainty quantification needs reassessment for large language model agents. In Forty-second International Conference on Machine Learning Position Paper Track, Cited by: §A.1, §A.1.
  • Kuhn et al. (2023) L. Kuhn, Y. Gal, and S. Farquhar Semantic uncertainty: linguistic invariances for uncertainty estimation in natural language generation. In The Eleventh International Conference on Learning Representations, Cited by: §A.1.
  • Lin et al. (2022) S. Lin, J. Hilton, and O. Evans Teaching models to express their uncertainty in words. arXiv preprint arXiv:2205.14334. Cited by: §A.1.
  • Lin et al. (2023) Z. Lin, S. Trivedi, and J. Sun Generating with confidence: uncertainty quantification for black-box large language models. arXiv preprint arXiv:2305.19187. Cited by: §A.1.
  • Liu et al. (2024a) H. Liu, Z. Dou, Y. Wang, N. Peng, and Y. Yue Uncertainty calibration for tool-using language agents. In Findings of the Association for Computational Linguistics: EMNLP 2024, pp. 16781–16805. Cited by: §A.1, §1.
  • Liu et al. (2024b) X. Liu, H. Yu, H. Zhang, Y. Xu, X. Lei, H. Lai, Y. Gu, H. Ding, K. Men, K. Yang, et al. AgentBench: evaluating llms as agents. In ICLR, Cited by: §1.
  • Mialon et al. (2023) G. Mialon, C. Fourrier, T. Wolf, Y. LeCun, and T. Scialom Gaia: a benchmark for general ai assistants. In The Twelfth International Conference on Learning Representations, Cited by: §3.1.
  • Phan et al. (2025) L. Phan, A. Gatti, Z. Han, N. Li, J. Hu, H. Zhang, C. B. C. Zhang, M. Shaaban, J. Ling, S. Shi, et al. Humanity’s last exam. arXiv preprint arXiv:2501.14249. Cited by: §3.1.
  • Rasmussen and Williams (2005) C. E. Rasmussen and C. K. Williams Gaussian processes for machine learning. MIT Press. Cited by: §A.2.5, §3.1.
  • Rein et al. (2024) D. Rein, B. L. Hou, A. C. Stickland, J. Petty, R. Y. Pang, J. Dirani, J. Michael, and S. R. Bowman Gpqa: a graduate-level google-proof q&a benchmark. In First Conference on Language Modeling, Cited by: §3.1.
  • Roucher et al. (2025) A. Roucher, A. Villanova del Moral, T. Wolf, L. von Werra, and E. Kaunismäki Smolagents: a smol library to build great agentic systems. Cited by: 1st item, §3.1.
  • Schick et al. (2023) T. Schick, J. Dwivedi-Yu, R. Dessì, R. Raileanu, M. Lomeli, E. Hambro, L. Zettlemoyer, N. Cancedda, and T. Scialom Toolformer: language models can teach themselves to use tools. Advances in Neural Information Processing Systems 36, pp. 68539–68551. Cited by: §1.
  • Tian et al. (2023) K. Tian, E. Mitchell, A. Zhou, A. Sharma, R. Rafailov, H. Yao, C. Finn, and C. D. Manning Just ask for calibration: strategies for eliciting calibrated confidence scores from language models fine-tuned with human feedback. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 5433–5442. Cited by: §A.1, §A.2.4, §3.1.
  • Tsai et al. (2024) Y. H. Tsai, W. Talbott, and J. Zhang Efficient non-parametric uncertainty quantification for black-box large language models and decision planning. arXiv preprint arXiv:2402.00251. Cited by: §A.1.
  • Vaswani et al. (2017) A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin Attention is all you need. Advances in neural information processing systems 30. Cited by: §A.2.5.
  • Wang et al. (2024a) L. Wang, C. Ma, X. Feng, Z. Zhang, H. Yang, J. Zhang, Z. Chen, J. Tang, X. Chen, Y. Lin, et al. A survey on large language model based autonomous agents. Frontiers of Computer Science 18 (6), pp. 186345. Cited by: §1.
  • Wang et al. (2024b) Y. Wang, X. Ma, G. Zhang, Y. Ni, A. Chandra, S. Guo, W. Ren, A. Arulraj, X. He, Z. Jiang, et al. Mmlu-pro: a more robust and challenging multi-task language understanding benchmark. Advances in Neural Information Processing Systems 37, pp. 95266–95290. Cited by: §3.1.
  • Wei et al. (2022) J. Wei, X. Wang, D. Schuurmans, M. Bosma, F. Xia, E. Chi, Q. V. Le, D. Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in neural information processing systems 35, pp. 24824–24837. Cited by: §1.
  • Xi et al. (2025) Z. Xi, W. Chen, X. Guo, W. He, Y. Ding, B. Hong, M. Zhang, J. Wang, S. Jin, E. Zhou, et al. The rise and potential of large language model based agents: a survey. Science China Information Sciences 68 (2), pp. 121101. Cited by: §1.
  • Yang et al. (2025) A. Yang, A. Li, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Gao, C. Huang, C. Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388. Cited by: §3.1.
  • Yang et al. (2018) Z. Yang, P. Qi, S. Zhang, Y. Bengio, W. Cohen, R. Salakhutdinov, and C. D. Manning HotpotQA: a dataset for diverse, explainable multi-hop question answering. In Proceedings of the 2018 conference on empirical methods in natural language processing, pp. 2369–2380. Cited by: §3.1.
  • Zhang et al. (2025a) G. Zhang, J. Wang, J. Chen, W. Zhou, K. Wang, and S. Yan AgenTracer: who is inducing failure in the llm agentic systems?. arXiv preprint arXiv:2509.03312. Cited by: §A.1.
  • Zhang et al. (2025b) S. Zhang, M. Yin, J. Zhang, J. Liu, Z. Han, J. Zhang, B. Li, C. Wang, H. Wang, Y. Chen, et al. Which agent causes task failures and when? on automated failure attribution of llm multi-agent systems. arXiv preprint arXiv:2505.00212. Cited by: §A.1.
  • Zhao et al. (2025) Q. Zhao, D. Li, Y. Liu, W. Cheng, Y. Sun, M. Oishi, T. Osaki, K. Matsuda, H. Yao, C. Zhao, et al. Uncertainty propagation on llm agent. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 6064–6073. Cited by: §A.1, §1.
  • Zheng et al. (2023) L. Zheng, W. Chiang, Y. Sheng, S. Zhuang, Z. Wu, Y. Zhuang, Z. Lin, Z. Li, D. Li, E. Xing, et al. Judging llm-as-a-judge with mt-bench and chatbot arena. Advances in neural information processing systems 36, pp. 46595–46623. Cited by: §A.2.2.
  • Zhu et al. (2025) H. Zhu, T. Qin, K. Zhu, H. Huang, Y. Guan, J. Xia, Y. Yao, H. Li, N. Wang, P. Liu, T. Peng, X. Gui, X. Li, Y. Liu, Y. E. Jiang, J. Wang, C. Zhang, X. Tang, G. Zhang, J. Yang, M. Liu, X. Gao, W. Zhou, and J. Liu OAgents: an empirical study of building effective agents. External Links: 2506.15741, Link Cited by: 2nd item, §3.1.

Our work on Agentic Confidence Calibration (ACC) is situated at the intersection of two rapidly developing research areas: confidence calibration for LLMs and the nascent field of uncertainty quantification (UQ) for LLM-based agents.

Confidence calibration aims to align a model’s predicted probability with the true likelihood of correctness. Classic methods such as Temperature Scaling (Guo et al., 2017) are effective for standard classification tasks, but their direct application to the free-form, generative outputs of LLMs is non-trivial (Kadavath et al., 2022; Lin et al., 2022). As a result, recent work has explored calibration techniques specifically tailored for LLMs (Geng et al., 2024). These approaches typically leverage signals from the output distribution, e.g., prediction entropy (Kuhn et al., 2023), top-kk token probabilities (Lin et al., 2023), or verbalized confidence estimates (Tian et al., 2023; Groot and Valdenegro-Toro, 2024). Another notable direction, exemplified by Deep Think with Confidence (Fu et al., 2025), highlights the importance of fine-grained, local signals (such as the lowest-confidence step within a reasoning chain) over global averages for reasoning calibration. Despite these advances, existing approaches remain focused on static, single-turn, and self-contained outputs. They do not capture the compounding and multi-source uncertainties that arise in the multi-step, interactive trajectories of AI agents (Kirchhof et al., 2025). Our work extends this line of inquiry from isolated outputs to the entire agentic process.

The study of uncertainty in LLM agents is an emerging but critical field (Kirchhof et al., 2025). A few pioneering works have begun to formalize the unique challenges agents present (Han et al., 2024; Tsai et al., 2024). Frameworks like UProp (Duan et al., 2025) and SAUP (Zhao et al., 2025) were the first to model how uncertainty propagates through the sequential steps of an agent’s trajectory. While these works provide valuable analytical frameworks for uncertainty propagation, they differ from HTC’s focus on supervised, data-driven calibration and currently lack open-source implementations for direct comparison. Concurrently, other research has focused on quantifying the external uncertainty introduced by tool use, analyzing how API failures or noisy tool outputs impact reliability (Liu et al., 2024a). While these studies laid the essential groundwork by identifying the core problems of propagation and external interaction, they primarily focus on high-level modeling and do not delve into a systematic, feature-based diagnosis of the underlying generation process (Zhang et al., 2025b; Zhang et al., 2025a). Our work builds upon their problem formulation but takes a fundamentally different approach. Instead of modeling the propagation dynamics directly, we propose a holistic framework that analyzes the rich, fine-grained signals embedded within the full trajectory’s confidence to perform a comprehensive diagnostic calibration. To our knowledge, this is the first work to systematically validate a process-diagnostic feature set for the purpose of agentic confidence calibration.

We use the following 8 benchmark datasets in our experiments to ensure a comprehensive and multi-faceted evaluation of our proposed HTC framework.

  • •

    SimpleQA: A large-scale factual question-answering dataset. We randomly sampled 500 instances from its test set to evaluate the agent’s basic knowledge retrieval capabilities.

  • •

    HotpotQA: A multi-hop question-answering dataset that requires reasoning over multiple documents. We sampled 500 instances from its test set to assess calibration performance on more complex knowledge-intensive tasks.

  • •

    StrategyQA: A question-answering benchmark requiring implicit reasoning steps. We used 500 samples from its test set to evaluate the agent’s ability to handle problems that require strategic thinking.

  • •

    MATH500: A dataset of problems from high school mathematics competitions. We used 500 samples from the MATH500 test set to focus on the reliability of formal mathematical reasoning and computation.

  • •

    GPQA: A high-difficulty benchmark of graduate-level STEM questions that are challenging even for domain experts. We used all 448 samples from its main split. To maximize the challenge, we converted it from a multiple-choice format to an open-ended generation task.

  • •

    MMLU-Pro: A more challenging variant of MMLU that validates deep knowledge and reasoning through multi-turn dialogue and Chain-of-Thought. We used 500 samples from its test set.

  • •

    HLE (Human Last Exam): An extremely difficult dataset comprising problems that are challenging for human experts, often requiring complex, multi-step reasoning. We used 500 samples to test agent reliability at the frontier of its capabilities.

  • •

    GAIA: A benchmark designed for general AI assistants, with tasks that often require long-horizon planning, multi-tool coordination, and interaction with real-world documents and websites. We used the full 165 samples from its validation set as a final test of general autonomous capabilities.

Notably, to increase the challenge of GPQA, we removed its multiple-choice options, requiring the agent to generate answers directly. For datasets with more than 500 samples, we randomly selected a subset of 500; for those with fewer, we used the entire set (e.g., 448 samples for GPQA and the 165-sample validation set for GAIA). All samples were primarily sourced from the official test or validation splits of their respective datasets. Finally, we assign a binary success label (y∈{0,1}y\in\{0,1\}) to each trajectory by evaluating the agent’s final answer against the ground truth.

A.2.2 Detailed Evaluation Metrics and Protocol

Section titled “A.2.2 Detailed Evaluation Metrics and Protocol”

To rigorously evaluate the performance of our calibration framework, we focus on the following three standard metrics. Let c_ic\_{i} be the predicted confidence and y_i∈{0,1}y\_{i}\in\{0,1\} be the ground-truth success label for trajectory ii over NN samples.

  • •

    Expected Calibration Error (ECE) (Guo et al., 2017): ECE measures the difference between a model’s average confidence and its actual accuracy. To compute it, we partition the NN predictions into MM bins (B_mB\_{m}) based on their confidence scores. The ECE is the weighted average of the absolute difference between the accuracy and confidence of each bin:

    $$\text{ECE}=\sum_{m=1}^{M}\frac{B_{m}}{N}\left

    where acc(B_m)\text{acc}(B\_{m}) and conf(B_m)\text{conf}(B\_{m}) are the accuracy and average confidence of the predictions in bin B_mB\_{m}, respectively. A lower ECE indicates better calibration.

  • •

    Brier Score (Glenn and others, 1950): The Brier Score is a proper scoring rule that measures the mean squared error between predicted probabilities and actual outcomes. It simultaneously assesses both calibration and discrimination. It is defined as:

    Brier Score=1N∑_i=1N(c_i−y_i)2\text{Brier Score}=\frac{1}{N}\sum\_{i=1}^{N}(c\_{i}-y\_{i})^{2}(7)

    A lower Brier Score indicates a better overall prediction quality.

  • •

    AUROC: The Area Under the Receiver Operating Characteristic curve measures the model’s ability to discriminate between successful (y=1y=1) and failed (y=0y=0) trajectories. It is threshold-independent and evaluates how well the confidence score can rank predictions. An AUROC of 1.0 represents a perfect classifier, while 0.5 represents a random guess.

Many of the agent tasks in our benchmark suite, particularly on datasets like GAIA and HLE, result in complex, free-form text answers where simple string matching against the ground truth is insufficient for accurate evaluation. To address this, we adopt the widely-used LLM-as-Judge (Zheng et al., 2023) protocol for a robust and scalable evaluation. The process is as follows: (1) For each completed trajectory, we extract the agent’s final generated answer. (2) We construct a prompt that includes the original question, the ground-truth answer from the dataset, and the agent’s answer. (3) This prompt is sent to a powerful, impartial judge model, Gemini-2.5-Pro (Comanici et al., 2025). (4) The judge model is instructed to provide a binary determination of correctness, outputting the final success label y∈{0,1}y\in\{0,1\} that we use for training and evaluating our calibrator. We verified the reliability of the LLM judge on a stratified subset, observing a 90-95% agreement rate with human experts.

  • •

    smolagents (Roucher et al., 2025): Our primary framework for all main experiments is smolagents, a minimalist agent framework designed for clarity and research agility. We specifically utilize its CodeAct functionality, where the agent’s actions (a_ta\_{t}) are formulated as Python code blocks. This paradigm offers high expressiveness, allowing the agent to perform complex computations and interact with tools (e.g., web search) through simple function calls within the code. Its lightweight nature ensures that the core reasoning and uncertainty signals come directly from the LLM, minimizing confounding variables from the framework itself.

  • •

    OAgents (Zhu et al., 2025): For our framework generalization study, we use OAgents, a state-of-the-art, open-source agent framework known for its high performance on complex benchmarks like GAIA. OAgents incorporates more sophisticated planning and memory modules. By testing our HTC framework on OAgents, we can validate that our process-diagnostic features are fundamental signals of uncertainty, independent of the agent’s architectural complexity.

To rigorously evaluate our HTC framework, we compare it against five baseline methods, which are detailed below. For all methods based on log-probabilities, we use the average of the top-k/top-1 token confidences, consistent with our framework’s feature extraction.

This is a standard black-box baseline that requires no access to internal model states. We append an instruction to the agent’s final prompt, asking it to state its confidence on a scale from 0% to 100%. An example instruction is: “After providing your final answer, on a new line, state your confidence in its correctness as a single percentage, e.g., ’Confidence: 85%’.” We then parse the numerical value as the confidence score, cc. This method is inspired by recent work on eliciting self-assessment from LLMs (Tian et al., 2023).

This grey-box baseline represents the standard approach of relying on the final generation step for a confidence signal. Let L_N=(l_N,1,…,l_N,M_N)\mathcal{L}\_{N}=(l\_{N,1},\dots,l\_{N,M\_{N}}) be the sequence of token confidences from the final step (s_Ns\_{N}) of the trajectory. The confidence score is the simple average:

c_last-step=1M_N∑_j=1M_Nl_N,jc\_{\text{last-step}}=\frac{1}{M\_{N}}\sum\_{j=1}^{M\_{N}}l\_{N,j}(8)

This baseline extends the ‘Last-Step‘ approach by incorporating information from the entire trajectory, but in a naive way. It computes the global average of all token confidences across all NN steps:

c_global-trace=1∑_i=1NM_i∑_i=1N∑_j=1M_il_i,jc\_{\text{global-trace}}=\frac{1}{\sum\_{i=1}^{N}M\_{i}}\sum\_{i=1}^{N}\sum\_{j=1}^{M\_{i}}l\_{i,j}(9)

This serves as a critical baseline to test whether the performance gain of our HTC framework comes from our sophisticated feature engineering or simply from using more data.

To create a stronger, calibrated baseline, we apply Temperature Scaling (Guo et al., 2017) to the ‘Last-Step Confidence‘ scores. A single temperature parameter TT is optimized on a validation set to minimize Log Loss, and this scalar is then used to adjust the confidence scores.

Similarly, we apply Temperature Scaling to the ‘Global-Trace Confidence‘ scores to provide another strong, calibrated baseline.

We further compare our framework against a set of supervised learning-based baselines. These methods fall into two groups: (i) neural representation learning methods, which directly operate on raw token-level confidence trajectories in an end-to-end fashion, and (ii) advanced nonlinear feature-based methods, which consume our engineered 48-dimensional trajectory feature space. Below we provide details for each baseline.

LSTM-based Confidence Predictor. This model treats the confidence trajectory as a variable-length sequence and encodes it with a single-layer unidirectional LSTM (Hochreiter and Schmidhuber, 1997) of hidden size 64 and dropout 0.4. Each input step corresponds to the top-5 token log-probabilities, and the final hidden state is passed through a three-layer feed-forward classifier (64→\to32→\to32→\to2) with ReLU activations and dropout. The parameter count is on the order of 4k–6k, and the model is trained with Adam (learning rate 0.001), early stopping, and 5-fold cross-validation. The LSTM can capture temporal dependencies and handle variable-length sequences, but its large parameter-to-sample ratio makes it prone to overfitting in small-data regimes and yields limited interpretability compared to feature-based approaches.

Transformer-based Confidence Predictor. This baseline applies a lightweight Transformer (Vaswani et al., 2017) encoder to the raw confidence trajectories. We use one self-attention layer with model dimension 32, two attention heads, a feed-forward size of 64, and dropout 0.3. Learnable positional embeddings (up to length 2000) encode temporal order, and an attention pooling layer aggregates the sequence before a two-layer classifier (32→\to16→\to2). The model has about 3k–5k parameters and is trained with Adam (learning rate 0.001, batch size 4) and early stopping. While the Transformer can capture long-range dependencies and trains in parallel, it is computationally more demanding and unstable in small-data settings.

Neural Network (MLP). Operating on the engineered 48-dimensional feature representation, this baseline uses a two-hidden-layer multilayer perceptron with sizes 48→\to32→\to16→\to2 and ReLU activations. Regularization includes dropout and L2 penalty (α=0.01\alpha=0.01), and the network has about 2k–3k parameters. Training is performed with Adam and early stopping. The MLP provides nonlinear modeling capacity over compact, interpretable features, but its performance can fluctuate with dataset size and it remains less transparent than linear models.

Gaussian Process Classifier. We implement a Gaussian Process classifier with an RBF kernel combined with a white-noise kernel. Kernel hyperparameters are optimized with three random restarts, and predictions use up to 100 iterations. Being non-parametric, the model’s effective complexity scales with the training set size. Gaussian Processes (Rasmussen and Williams, 2005) naturally provide calibrated probabilistic outputs and flexible capacity, but incur cubic computational cost O(n3)O(n^{3}), require careful kernel selection, and are impractical for larger datasets.

XGBoost Classifier. This baseline uses gradient-boosted decision trees on the 48-dimensional features, with 100 estimators of maximum depth 3, learning rate 0.1, row subsampling 0.8, column subsampling 0.8, and both L1 (0.1) and L2 (1.0) regularization. The ensemble corresponds to roughly 1k–2k effective parameters. XGBoost (Chen and Guestrin, 2016) is robust on tabular data and captures higher-order feature interactions, but still risks overfitting in very small datasets and provides less interpretability than linear models.

In summary, the end-to-end neural encoders (LSTM, Transformer) directly consume raw confidence trajectories but suffer from high parameter counts relative to the limited data, leading to severe overfitting and unstable behavior. The feature-based nonlinear methods (MLP, Gaussian Process, XGBoost) make better use of the engineered 48-dimensional representation and achieve stronger performance overall, yet they remain less interpretable and still prone to variance under small-sample regimes. These limitations highlight the motivation for our proposed lightweight linear calibrators, which strike a favorable balance between stability, interpretability, and data efficiency.

A.2.6 Implementation and Hyperparameter Details

Section titled “A.2.6 Implementation and Hyperparameter Details”

For completeness, we summarize the implementation details of our proposed Holistic Trajectory Calibration (HTC) method.

Cross-Validation Strategy. We adopt a 5-fold stratified cross-validation protocol to preserve class balance. With 500 labeled trajectories, each fold contains 100 samples. Within each fold, we use an 80%/20% split for training and validation. All experiments use a fixed random seed of 42. The liblinear solver is deterministic, and all code, hyperparameters, and configurations are version-controlled for exact reproducibility. The maximum iteration count is set to 1000, although convergence typically occurs within 50–100 iterations.

Hyperparameter Optimization. The regularization strength α\alpha is tuned via grid search over 15 candidate values: {0.001,0.01,0.1,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,20.0,50.0}\{0.001,0.01,0.1,1.0,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0,20.0,50.0\}. Model selection is based on a combined criterion that maximizes AUROC while minimizing both Brier Score and ECE, averaged across folds. In practice, the optimal α\alpha typically falls in the range of 1.0–5.0. The resulting sparse solutions select 15–25 features (50–70% of the 48 total). The model demonstrates low variance across folds, with training requiring less than one second per fold and inference under one millisecond per sample.

Key Advantages. Our approach provides (i) interpretability through transparent feature weights and selection, (ii) stability across varying data sizes, (iii) high computational efficiency in both training and inference, and (iv) robustness to overfitting compared to more complex baselines. These properties make the method particularly suitable for small datasets (<500<500 samples), production systems requiring reliable calibration, and resource-constrained settings.

In Section 3.2, we presented a summary of our HTC framework’s performance against baselines on a subset of three representative datasets. For a complete overview of our method’s efficacy, we provide detailed results for both the HTC-Full and HTC-Reduced variants across all eight datasets in our benchmark suite.

Table 4 presents the mean and standard deviation for ECE, Brier Score, and AUROC when using the full set of 48 trajectory features (L2 regularization). These results demonstrate the robust performance of HTC even when all features are considered, establishing a strong upper bound for the feature set.

Table 5 details the performance of the (reduced feature) variant (L1 regularization), showing its mean and standard deviation for ECE, Brier Score, and AUROC across all datasets. Crucially, this table also includes the mean and standard deviation of the number of features selected by the Lasso regularization across different random seeds, providing insight into the sparsity and efficiency of this approach. The consistent strong performance with a reduced feature set further validates the effectiveness of our feature engineering and selection process.

Table 4: HTC Performance with Full Feature Set across All Datasets.

DatasetECEBrier ScoreAUROC
MeanStdMeanStdMeanStd
HLE0.07200.01080.09770.00190.61690.0231
GPQA0.12410.01100.21850.00160.70400.0070
SimpleQA0.07480.00650.15000.00290.72670.0103
MATH5000.06040.00710.07730.00150.78750.0178
GAIA0.16920.01140.26540.00930.62040.0164
HotpotQA0.11560.00600.19300.00200.71410.0061
MMLU-Pro0.07750.00750.12570.00320.72760.0118
StrategyQA0.07850.00810.14050.00150.66980.0054

Table 5: HTC Performance with Reduced Feature Set and Feature Counts across All Datasets

DatasetECEBrier ScoreAUROCFeatures
MeanStdMeanStdMeanStdMeanStd
HLE0.03050.00380.08970.00050.64390.01998.24.1
GPQA0.10220.01590.21340.00180.70600.006623.41.9
SimpleQA0.06760.00810.14020.00240.75230.014114.43.1
MATH5000.04760.00880.07010.00060.81620.007515.23.0
GAIA0.14200.01000.23320.00260.68600.01314.81.5
HotpotQA0.08240.01090.18240.00070.72880.00267.60.8
MMLU-Pro0.05920.00470.11670.00090.74920.007513.83.0
StrategyQA0.05450.00480.13570.00140.66470.011715.26.3

Figure 7: The Impact of Agent Framework on the GPQA dataset.

Figure 7: The Impact of Agent Framework on the GPQA dataset.

To better understand the internal behavior of HTC, we analyze which diagnostic features are most influential across datasets and selection levels. Figure 8 shows the absolute weight magnitudes of the ℓ_1\ell\_{1}-regularized logistic calibrator on eight benchmarks, highlighting that certain dynamics (e.g., confidence change) and stability measures (e.g., attention entropy, token volatility) consistently receive high importance. Figure 9 provides a complementary perspective by reporting feature selection frequencies under different levels (Top1, Top3, Top5, and all selected), allowing us to quantify which features are repeatedly chosen across runs. Table 6 further aggregates these results into a ranked list of top features, organized by category. Together, these analyses show that temporal dynamics and stability signals emerge as the most dominant indicators of reliability, while positional and structural features contribute complementary but non-negligible signals. This provides clear interpretability benefits: HTC not only delivers strong calibration but also yields transparent insights into which aspects of a reasoning trajectory drive reliable predictions.

Figure 8: Feature importance analysis across all datasets on five experimental runs.

Figure 8: Feature importance analysis across all datasets on five experimental runs.

Figure 9: Full feature selection distribution across different levels (Top1, Top3, Top5 and all selected) on four featur

Figure 9: Full feature selection distribution across different levels (Top1, Top3, Top5 and all selected) on four feature categories.

Table 6: Feature Selection Results

Selection LevelFeature IndexFeature NameCategoryFrequencyPercentage
Top 1F47std_tokens_per_stepStructure512.5
F27last_attention_concentrationPosition512.5
F17top1_confidence_changeDynamics410
F33attention_entropy_meanStability410
F26last_attention_entropyPosition410
F25first_topk_avgPosition37.5
F31last_top1_avgPosition37.5
F37attention_spread_meanStability37.5
F40token_volatility_stdStability25
F46avg_tokens_per_stepStructure25
Top 3F27last_attention_concentrationPosition119.2
F31last_top1_avgPosition108.3
F46avg_tokens_per_stepStructure108.3
F33attention_entropy_meanStability97.5
F37attention_spread_meanStability97.5
F43normalized_step_countStructure86.7
F17top1_confidence_changeDynamics75.8
F14step_progression_entropyDynamics65
F25first_topk_avgPosition54.2
F47std_tokens_per_stepStructure54.2
Top 5F33attention_entropy_meanStability157.5
F31last_top1_avgPosition136.5
F27last_attention_concentrationPosition136.5
F37attention_spread_meanStability105
F46avg_tokens_per_stepStructure105
F43normalized_step_countStructure94.5
F41token_skewness_meanStability94.5
F30last_confidence_skewnessPosition84
F17top1_confidence_changeDynamics73.5
F39token_volatility_meanStability73.5

We further investigate the generalization ability of HTC across domains, by training the calibrator on one dataset and evaluating it directly on others without retraining. Figures 10–13 present transfer matrices for both GPT-4.1 and GPT-4o under reduced and full feature sets, evaluated on ECE, Brier Score, and AUROC. These heatmaps reveal that HTC achieves stable cross-domain calibration: models trained on one benchmark often transfer reasonably well to others, especially among datasets with similar reasoning structures (e.g., QA benchmarks). Figure 14 provides an aggregated comparison, showing that GPT-4.1 consistently outperforms GPT-4o by a small margin, but both demonstrate robust transferability across metrics. Tables 7–10 give the complete numerical results, confirming that reduced feature sets maintain performance levels close to the full feature space, thereby validating the efficiency and compactness of our design.

Overall, these results demonstrate that HTC is not only effective in-domain but also generalizes reliably across diverse datasets, while being relatively insensitive to the underlying backbone model or the size of the feature set.

Figure 10: Domain transfer matrix with reduced features using GPT-4.1 .

Figure 10: Domain transfer matrix with reduced features using GPT-4.1 .

Figure 10: Domain transfer matrix with reduced features using GPT-4.1 .

Figure 10: Domain transfer matrix with reduced features using GPT-4.1 .

Figure 11: Domain transfer matrix with full features using GPT-4.1 .

Figure 11: Domain transfer matrix with full features using GPT-4.1 .

Figure 11: Domain transfer matrix with full features using GPT-4.1 .

Figure 11: Domain transfer matrix with full features using GPT-4.1 .

Figure 12: Domain transfer matrix with reduced features using GPT-4o .

Figure 12: Domain transfer matrix with reduced features using GPT-4o .

Figure 12: Domain transfer matrix with reduced features using GPT-4o .

Figure 12: Domain transfer matrix with reduced features using GPT-4o .

Figure 13: Domain transfer matrix with full features using GPT-4o .

Figure 13: Domain transfer matrix with full features using GPT-4o .

Figure 13: Domain transfer matrix with full features using GPT-4o .

Figure 13: Domain transfer matrix with full features using GPT-4o .

Figure 14: Comparison of different base LLMs (GPT-4.1 vs GPT-4o, with full and reduced features ) on the effect of domai

Figure 14: Comparison of different base LLMs (GPT-4.1 vs GPT-4o, with full and reduced features ) on the effect of domain transfer performance. We show the average of all domain transfer results on ECE, BS and AUROC metrics. This figure illustrates that different models show stable domain transfer performance while GPT-4.1 is slightly better than GPT-4o.

Table 7: Full Feature Transfer Results: ECE, Brier Score (BS), and AUROC matrices (GPT-4.1).

ECEHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE-0.29200.48070.61140.27290.43760.54960.3765
GPQA0.2096-0.44610.36730.19120.27880.39580.2553
SimpleQA0.53610.4349-0.09290.42050.11320.10890.0989
MATH5000.40300.33000.1153-0.35630.17330.11490.0862
GAIA0.48340.26590.09940.0964-0.05300.16940.0786
HotpotQA0.25530.22910.08940.10090.2786-0.12740.2691
MMLU-Pro0.45700.21260.03900.08060.12590.1070-0.0562
StrategyQA0.21390.21630.06440.31630.26260.12920.1072-
Brier ScoreHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE-0.32560.38800.47960.31360.38330.43550.3227
GPQA0.1691-0.37990.25840.29320.30570.31330.2401
SimpleQA0.50160.4459-0.09820.43320.19390.13690.1482
MATH5000.32980.36220.1650-0.37250.21870.14370.1476
GAIA0.37860.31870.15510.0960-0.18950.15760.1610
HotpotQA0.23530.29090.14930.11060.3266-0.15160.2829
MMLU-Pro0.32920.29070.14690.09150.24920.2077-0.1341
StrategyQA0.18420.29100.15560.26060.33330.22500.1649-
AUROCHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE-0.53770.72130.72570.60010.70330.69260.6087
GPQA0.5694-0.55880.56230.53080.55080.61610.5541
SimpleQA0.51120.5874-0.47280.58340.71860.65070.6572
MATH5000.54960.57730.6749-0.63400.69530.71940.6499
GAIA0.55570.59260.73140.6966-0.70020.65040.6248
HotpotQA0.55270.62540.75400.67250.5660-0.61560.4717
MMLU-Pro0.62040.55210.71680.78220.65030.6496-0.6820
StrategyQA0.57930.61080.69120.68610.53600.60430.6904-

Table 8: Reduced Feature Transfer Results: ECE, Brier Score (BS), and AUROC matrices (GPT-4.1).

ECEHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE-0.26830.64820.74760.29730.55340.69040.6442
GPQA0.2327-0.33060.31910.13350.18900.32310.2987
SimpleQA0.38850.3040-0.08060.32680.07040.06910.0638
MATH5000.40290.31630.1072-0.30620.14900.09840.0951
GAIA0.38720.13460.20520.2637-0.12340.26200.2359
HotpotQA0.12940.10820.09740.27780.1499-0.18490.1497
MMLU-Pro0.50410.28160.05350.08090.20380.1212-0.0283
StrategyQA0.24520.11690.07910.25880.13940.08720.1323-
Brier ScoreHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE-0.31150.57950.64800.32890.50990.60230.5526
GPQA0.1697-0.28220.20890.27670.24650.25120.2664
SimpleQA0.33750.3304-0.10110.33920.18280.12170.1353
MATH5000.30810.34280.1578-0.32060.21150.13710.1406
GAIA0.24590.25170.19130.1562-0.20640.18820.1945
HotpotQA0.11910.24540.14660.16710.2574-0.15180.1603
MMLU-Pro0.34930.31610.14780.08310.26240.2031-0.1312
StrategyQA0.18620.25320.15260.15820.26340.20190.1382-
AUROCHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE-0.52770.69590.69820.63010.68070.69600.6492
GPQA0.5619-0.57760.62740.53740.59460.62670.5049
SimpleQA0.57560.6291-0.62650.60900.73210.70790.6807
MATH5000.59130.60460.7027-0.65800.70750.73610.6603
GAIA0.54670.59980.71140.7294-0.70340.73550.6632
HotpotQA0.64540.62770.75370.80160.6270-0.76690.6538
MMLU-Pro0.64480.58930.74550.79220.67910.7177-0.6888
StrategyQA0.60400.57820.74150.78040.59960.70890.7321-

Table 9: Full Feature Transfer Results: ECE, Brier Score, and AUROC matrices (GPT-4o).

ECEHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE–0.18140.42520.67600.15020.51310.71060.7427
GPQA0.1244–0.14520.43620.06730.26990.48450.4435
SimpleQA0.17630.1462–0.26280.13050.12750.38720.3260
MATH5000.40390.27290.2172–0.27020.19460.07190.1039
GAIA0.15890.19910.14440.2735–0.28170.41210.5721
HotpotQA0.17090.17310.13600.38160.1944–0.43940.2855
MMLU-Pro0.44730.38720.21680.06780.25050.1882–0.0583
StrategyQA0.31080.31310.32010.12770.33650.22710.2100–
Brier ScoreHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE–0.22040.40260.62070.17680.50430.66850.7067
GPQA0.0808–0.20860.33770.14150.33290.40740.3718
SimpleQA0.13320.2205–0.22450.17140.24060.32260.2786
MATH5000.27540.27970.2296–0.24180.26730.15260.1620
GAIA0.12840.23990.24380.2495–0.32990.35140.5011
HotpotQA0.12640.23570.21410.31480.2039–0.37280.2470
MMLU-Pro0.31760.36380.24000.13620.22760.2587–0.1561
StrategyQA0.25200.31930.31150.16150.30130.27500.2281–
AUROCHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE–0.59580.73010.70400.55740.55350.57130.5452
GPQA0.6256–0.79210.78640.70240.57470.62750.5694
SimpleQA0.51790.5725–0.75730.62380.67320.63430.6037
MATH5000.57980.63800.7948–0.73780.62600.67510.6019
GAIA0.52390.58520.71020.6964–0.60070.67070.5807
HotpotQA0.49920.52170.76350.76000.6085–0.64870.5932
MMLU-Pro0.54000.60030.77070.77980.77860.6570–0.6960
StrategyQA0.49860.55700.76320.74620.68080.66680.5868–

Table 10: Reduced Feature Transfer Results: ECE, Brier Score, and AUROC matrices (GPT-4o).

ECEHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE–0.18390.46130.69820.12450.52920.72660.7480
GPQA0.1389–0.14480.45020.04760.24450.49140.4671
SimpleQA0.11180.1099–0.47580.11810.14070.46120.3507
MATH5000.45680.38330.3065–0.37340.23120.03660.0316
GAIA0.15130.06850.23450.3805–0.33430.46660.6019
HotpotQA0.20450.15070.08920.38830.1787–0.47290.3234
MMLU-Pro0.45720.38180.24340.03330.32070.1695–0.0403
StrategyQA0.52120.39210.29480.10890.41350.21060.1735–
Brier ScoreHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE–0.22040.45290.65310.16850.51750.68950.7134
GPQA0.0769–0.21120.34320.13400.30320.38980.3740
SimpleQA0.08770.2008–0.37810.15080.24060.39250.2832
MATH5000.29280.33280.2981–0.27580.27550.13670.1503
GAIA0.08850.19290.25620.2942–0.34580.37130.5163
HotpotQA0.13010.23270.20040.32490.1885–0.39360.2572
MMLU-Pro0.30070.34270.25340.12990.24270.2525–0.1488
StrategyQA0.38220.35970.28380.18250.33360.26480.2008–
AUROCHLEGPQASimpleQAMATH500GAIAHotpotQAMMLU-ProStrategyQA
HLE–0.60620.67910.69430.53720.57530.58790.5256
GPQA0.6184–0.78520.81780.74530.60550.70740.6064
SimpleQA0.52060.5808–0.77560.64250.66330.62140.6200
MATH5000.58240.66030.7735–0.76350.63880.75170.6292
GAIA0.49560.59250.77210.7431–0.62230.68940.5752
HotpotQA0.59320.51880.77950.70780.6209–0.62430.6301
MMLU-Pro0.54490.62790.77320.81550.78970.6467–0.6710
StrategyQA0.59270.54470.78390.68970.68760.66480.5679–

To further examine the contribution of different feature categories, we conducted a systematic ablation study on the combined dataset of seven benchmarks (3,446 trajectories). The calibrator was trained on different subsets of the 48 features, including all single-category models (Dynamics only, Position only, Stability only, Structure only), all pairwise combinations, all three-way combinations, and the full feature set, yielding 15 configurations in total. Figures 15 and Table 11 summarize the results. Several clear findings emerge:

  • •

    Full feature set performs best. Using all 48 features achieves the highest AUROC (0.8430), the lowest Brier Score (0.1471), and the lowest ECE (0.0328). This demonstrates that the entire feature map provides complementary information that cannot be captured by any smaller subset.

  • •

    Multi-category combinations outperform single categories. Every two- or three-way combination substantially improves over the best single category. For example, Dynamics+Position+Stability achieves AUROC = 0.8419, which is +0.0137 higher than the strongest single category (Dynamics, AUROC = 0.8282).

  • •

    Single categories are insufficient. When restricted to only one category, performance drops noticeably (AUROC 0.783–0.828). Structure alone is the weakest (0.783 AUROC), showing that contextual information is not sufficient without dynamics or stability. This highlights the need for diverse diagnostic signals.

  • •

    Category complementarity emerges with scale and diversity. On the combined dataset, which is larger and more diverse than individual tasks, the synergy across categories becomes much more evident. This contrasts with the single-dataset setting (e.g., SimpleQA), where rankings can vary. The aggregated analysis demonstrates that HTC’s design is robust and general.

Figure 15: Performance of calibrators trained on different feature combinations. Results are averaged across 3,446 traje

Figure 15: Performance of calibrators trained on different feature combinations. Results are averaged across 3,446 trajectories from seven datasets. Multi-category combinations consistently outperform single categories, and the full feature set achieves the best results.

Table 11: Performance summary of feature ablation study (sorted by AUROC)

Feature CombinationAUROC (↑\uparrow)Brier Score (↓\downarrow)ECE (↓\downarrow)
MeanStdMeanStdMeanStd
Full (48)0.84300.01340.14710.00650.03280.0065
Dynamics+Position+Stability (43)0.84190.01270.14750.00630.04270.0046
Dynamics+Position+Structure (38)0.84190.01300.14790.00650.04220.0057
Position+Stability+Structure (29)0.84180.01400.14800.00640.04010.0047
Dynamics+Stability+Structure (34)0.83970.01240.14900.00650.04800.0037
Position+Stability (24)0.83960.01490.14930.00690.04060.0115
Dynamics+Position (33)0.83860.01250.14950.00600.03490.0078
Dynamics+Stability (29)0.83670.01300.15020.00670.03690.0095
Position+Structure (19)0.83640.01810.15010.00720.04110.0014
Stability+Structure (15)0.83260.01280.15300.00590.03550.0117
Stability (10)0.82820.01310.15520.00590.03570.0079
Position (14)0.82310.01730.15620.00640.03710.0067
Dynamics+Structure (24)0.82050.01220.15770.00650.03690.0103
Dynamics (19)0.79430.00960.17000.00410.03350.0124
Structure (5)0.78320.02070.17300.00800.05370.0099

Agent reliability is not a snapshot property of the last step but an emergent property of the whole trajectory. Our feature set operationalizes this view along four complementary axes:

  • •

    Dynamics — how confidence evolves across steps (trend, variability, accelerations).

  • •

    Position — what the first and last steps reveal (onset vs. resolution).

  • •

    Stability — whether signals converge consistently (low volatility, low entropy drift).

  • •

    Structure — the form factor of a trajectory (length and token allocation across steps).

A trajectory τ\tau has SS steps indexed by t=1,…,St=1,\ldots,S. At step tt there are n_tn\_{t} tokens with positive “confidence” values r_t,1,…,r_t,n_tr\_{t,1},\ldots,r\_{t,n\_{t}}. We normalize within-step to obtain a discrete distribution

π_t,i=r_t,i∑_j=1n_tr_t,j+ε,ε=10−8.\pi\_{t,i}=\frac{r\_{t,i}}{\sum\_{j=1}^{n\_{t}}r\_{t,j}+\varepsilon},\qquad\varepsilon=10^{-8}.(10)

The within-step mean and standard deviation are

μ_t=1n_t∑_i=1n_tr_t,i,\mu\_{t}=\frac{1}{n\_{t}}\sum\_{i=1}^{n\_{t}}r\_{t,i},(11)
σ_t=1n_t∑_i=1n_t(r_t,i−μ_t)2.\sigma\_{t}=\sqrt{\frac{1}{n\_{t}}\sum\_{i=1}^{n\_{t}}(r\_{t,i}-\mu\_{t})^{2}}.(12)

We define per-step summaries of the distribution r_t,⋅r\_{t,\cdot}:

H_t=−∑_i=1n_tπ_t,ilog⁡(π_t,i+ε)(entropy),H\_{t}=-\sum\_{i=1}^{n\_{t}}\pi\_{t,i}\log(\pi\_{t,i}+\varepsilon)\quad\text{(entropy)},(13)
κ_t=max⁡_ir_t,iμ_t+ε(concentration),\kappa\_{t}=\frac{\max\_{i}r\_{t,i}}{\mu\_{t}+\varepsilon}\quad\text{(concentration)},(14)
ρ_t=σ_tμ_t+ε(spread / volatility),\rho\_{t}=\frac{\sigma\_{t}}{\mu\_{t}+\varepsilon}\quad\text{(spread / volatility)},(15)
skew_t=1n_t∑_i=1n_t(r_t,i−μ_tσ_t+ε)3(skewness).\mathrm{skew}\_{t}=\frac{1}{n\_{t}}\sum\_{i=1}^{n\_{t}}\left(\frac{r\_{t,i}-\mu\_{t}}{\sigma\_{t}+\varepsilon}\right)^{3}\quad\text{(skewness)}.(16)

For each step tt we also compute aggregated confidences:

x_t=1n_t∑_i=1n_tTop1Conf(t,i),x\_{t}=\frac{1}{n\_{t}}\sum\_{i=1}^{n\_{t}}\text{Top1Conf}(t,i),(17)
y_t=1n_t∑_i=1n_tTopkConf(t,i).y\_{t}=\frac{1}{n\_{t}}\sum\_{i=1}^{n\_{t}}\text{Top$k$Conf}(t,i).(18)

Cross-step differences (“gradients”) are

Δx_t=x_t+1−x_t,\Delta x\_{t}=x\_{t+1}-x\_{t},(19)
Δy_t=y_t+1−y_t,t=1,…,S−1.\Delta y\_{t}=y\_{t+1}-y\_{t},\qquad t=1,\ldots,S-1.(20)

All undefined statistics (e.g., S<2S<2 or n_t<2n\_{t}<2) are set to 00, consistent with our implementation.

Intuition. H_tH\_{t} measures dispersion (lower is more focused), κ_t\kappa\_{t} captures dominance of the top alternative, ρ_t\rho\_{t} is a scale-free volatility index, and skew_t\mathrm{skew}\_{t} encodes asymmetry. Reliable trajectories tend to show decreasing entropy, stable volatility, and consistent trends in Δx_t,Δy_t\Delta x\_{t},\Delta y\_{t}.

Purpose: capture how confidence changes across the trajectory. Reliable reasoning tends to exhibit steady, low-variance growth; erratic failures show oscillations, spikes, or regressions.

  • •

    top1_gradient_mean: mean({Δx_t}_t=1S−1)\mathrm{mean}(\{\Delta x\_{t}\}\_{t=1}^{S-1}). Average “velocity” of top-1 confidence growth.

  • •

    top1_gradient_std: std({Δx_t}_t=1S−1)\mathrm{std}(\{\Delta x\_{t}\}\_{t=1}^{S-1}). Large variance indicates unstable or oscillatory confidence.

  • •

    top1_gradient_max: max⁡{Δx_t}_t=1S−1\max\{\Delta x\_{t}\}\_{t=1}^{S-1}. Largest single upward jump in top-1 confidence.

  • •

    top1_gradient_min: min⁡{Δx_t}_t=1S−1\min\{\Delta x\_{t}\}\_{t=1}^{S-1}. Largest downward collapse of top-1 confidence.

  • •

    top1_gradient_trend: Δx_S−1−Δx_1\Delta x\_{S-1}-\Delta x\_{1} (if S≥3S\geq 3). Detects acceleration or deceleration of belief formation.

  • •

    topk_gradient_mean, topk_gradient_std, topk_gradient_max, topk_gradient_min, topk_gradient_trend: identical statistics computed for top-kk confidence {y_t}\{y\_{t}\}. Capture broader consensus dynamics across multiple hypotheses.

  • •

    token_gradient_mean, token_gradient_std, token_gradient_max, token_gradient_min: computed from local token differences {r_t,i+1−r_t,i}\{r\_{t,i+1}-r\_{t,i}\}. Reveal whether a step is pruning sharply (large gradients) or dithering (flat gradients).

  • •

    step_progression_entropy: std({H_t})/(mean({H_t})+ε)\mathrm{std}(\{H\_{t}\})/(\mathrm{mean}(\{H\_{t}\})+\varepsilon).

  • •

    step_progression_concentration: std({κ_t})/(mean({κ_t})+ε)\mathrm{std}(\{\kappa\_{t}\})/(\mathrm{mean}(\{\kappa\_{t}\})+\varepsilon).

  • •

    step_progression_spread: std({ρ_t})/(mean({ρ_t})+ε)\mathrm{std}(\{\rho\_{t}\})/(\mathrm{mean}(\{\rho\_{t}\})+\varepsilon). These coefficients of variation measure how entropy, concentration, and spread evolve; convergence implies decreasing ratios.

  • •

    top1_confidence_change: x_S−x_1x\_{S}-x\_{1}.

  • •

    topk_confidence_change: y_S−y_1y\_{S}-y\_{1}. Capture overall strengthening or weakening of confidence from start to end.

Purpose: the first and last steps capture complementary aspects. Early steps reflect exploration, late steps commitment. Comparing them diagnoses premature certainty or end-stage overconfidence.

  • •

    first_attention_entropy: H_1H\_{1}. Dispersion of the first step distribution.

  • •

    first_attention_concentration: κ_1\kappa\_{1}. Peakedness of the first step.

  • •

    first_attention_spread: ρ_1\rho\_{1}. Variability relative to the mean.

  • •

    first_confidence_volatility: ρ_1\rho\_{1}. Same as spread, interpreted as instability at the onset.

  • •

    first_confidence_skewness: skew_1\mathrm{skew}\_{1}. Asymmetry of the distribution at the first step.

  • •

    first_top1_avg: x_1x\_{1}. Average top-1 confidence at the first step.

  • •

    first_topk_avg: y_1y\_{1}. Average top-kk confidence at the first step.

  • •

    last_attention_entropy: H_SH\_{S}. Dispersion at the last step.

  • •

    last_attention_concentration: κ_S\kappa\_{S}. Sharpness at the last step.

  • •

    last_attention_spread: ρ_S\rho\_{S}. Variability at the last step.

  • •

    last_confidence_volatility: ρ_S\rho\_{S}. Instability at the end.

  • •

    last_confidence_skewness: skew_S\mathrm{skew}\_{S}. Tail asymmetry at the last step.

  • •

    last_top1_avg: x_Sx\_{S}. Final top-1 confidence.

  • •

    last_topk_avg: y_Sy\_{S}. Final top-kk confidence.

Purpose: measure consistency across steps. Reliable trajectories are smooth; unreliable ones oscillate.

  • •

    attention_entropy_mean: mean({H_t})\mathrm{mean}(\{H\_{t}\}).

  • •

    attention_entropy_std: std({H_t})\mathrm{std}(\{H\_{t}\}).

  • •

    attention_concentration_mean: mean({κ_t})\mathrm{mean}(\{\kappa\_{t}\}).

  • •

    attention_concentration_std: std({κ_t})\mathrm{std}(\{\kappa\_{t}\}).

  • •

    attention_spread_mean: mean({ρ_t})\mathrm{mean}(\{\rho\_{t}\}).

  • •

    attention_spread_std: std({ρ_t})\mathrm{std}(\{\rho\_{t}\}). Together, these summarize whether attention signals converge smoothly or fluctuate widely.

  • •

    token_volatility_mean: mean({ρ_t})\mathrm{mean}(\{\rho\_{t}\}). Average token-level volatility across steps.

  • •

    token_volatility_std: std({ρ_t})\mathrm{std}(\{\rho\_{t}\}). Step-to-step volatility variation.

  • •

    token_skewness_mean: mean({skew_t})\mathrm{mean}(\{\mathrm{skew}\_{t}\}). Average asymmetry of token distribution.

  • •

    token_skewness_std: std({skew_t})\mathrm{std}(\{\mathrm{skew}\_{t}\}). Variation of asymmetry over steps.

Purpose: capture trajectory form factor (length and token allocation). These features provide context: short trajectories may indicate premature certainty; long, irregular ones suggest hesitation.

  • •

    normalized_step_count: S/10S/10. Normalized trajectory length.

  • •

    first_token_count: n_1n\_{1}. Number of tokens in the first step.

  • •

    last_token_count: n_Sn\_{S}. Number of tokens in the last step.

  • •

    avg_tokens_per_step: (∑_t=1Sn_t)/S(\sum\_{t=1}^{S}n\_{t})/S. Average token count per step.

  • •

    std_tokens_per_step: std({n_t}_t=1S)\mathrm{std}(\{n\_{t}\}\_{t=1}^{S}). Variation in token counts across steps.

In total, the 48 features provide a structured and interpretable representation of trajectory reliability. Dynamics quantify how confidence values evolve step by step, Position features highlight the complementary roles of the trajectory onset and resolution, Stability measures assess whether the process converges consistently across steps, and Structure features capture the overall form factor of reasoning traces. Together, these categories decompose reliability into distinct yet complementary dimensions: they allow us to pinpoint when an agent is consolidating versus oscillating, whether its final certainty is warranted by stable evidence, and how the length or allocation of tokens modulates calibration. Unlike opaque neural encoders, this feature map offers transparent diagnostics that both improve calibration and yield actionable insights into the mechanisms underlying agent reliability.

Here is a detailed feature map.

⬇

1

==============================================================================

2

FINAL OPTIMIZED FEATURE MAP - 48 Features (STABLE VERSION)

Section titled “FINAL OPTIMIZED FEATURE MAP - 48 Features (STABLE VERSION)”

3

==============================================================================

Section titled “==============================================================================”

4

5 FEATURE_MAP_FINAL_STABLE = {

6 “Dynamics”: { # Features capturing temporal changes and gradients across steps (19 features)

7 “1.1: Cross-step Gradients”: [

8 ’top1_gradient_mean’, # 0

9 ’top1_gradient_std’, # 1

10 ’top1_gradient_max’, # 2

11 ’top1_gradient_min’, # 3

12 ’top1_gradient_trend’, # 4

13 ’topk_gradient_mean’, # 5

14 ’topk_gradient_std’, # 6

15 ’topk_gradient_max’, # 7

16 ’topk_gradient_min’, # 8

17 ’topk_gradient_trend’, # 9

18 ],

19 “1.2: Token-level Gradients”: [

20 ’token_gradient_mean’, # 10

21 ’token_gradient_std’, # 11

22 ’token_gradient_max’, # 12

23 ’token_gradient_min’, # 13

24 ],

25 “1.3: Step Progression”: [

26 ’step_progression_entropy’, # 14

27 ’step_progression_concentration’,# 15

28 ’step_progression_spread’, # 16

29 ],

30 “1.4: Confidence Change”: [

31 ’top1_confidence_change’, # 17

32 ’topk_confidence_change’, # 18

33 ],

34 },

35 “Position”: { # Features capturing key positional information (first/last steps) (14 features)

36 “2.1: First Step Specific”: [

37 ’first_attention_entropy’, # 19

38 ’first_attention_concentration’,# 20

39 ’first_attention_spread’, # 21

40 ’first_confidence_volatility’, # 22

41 ’first_confidence_skewness’, # 23

42 ’first_top1_avg’, # 24

43 ’first_topk_avg’, # 25

44 ],

45 “2.2: Last Step Specific”: [

46 ’last_attention_entropy’, # 26

47 ’last_attention_concentration’, # 27

48 ’last_attention_spread’, # 28

49 ’last_confidence_volatility’, # 29

50 ’last_confidence_skewness’, # 30

51 ’last_top1_avg’, # 31

52 ’last_topk_avg’, # 32

53 ],

54 },

55 “Stability”: { # Features capturing stability and consistency patterns (10 features)

56 “3.1: Attention Stability”: [

57 ’attention_entropy_mean’, # 33

58 ’attention_entropy_std’, # 34

59 ’attention_concentration_mean’, # 35

60 ’attention_concentration_std’, # 36

61 ’attention_spread_mean’, # 37

62 ’attention_spread_std’, # 38

63 ],

64 “3.2: Token-level Stability”: [

65 ’token_volatility_mean’, # 39

66 ’token_volatility_std’, # 40

67 ’token_skewness_mean’, # 41

68 ’token_skewness_std’, # 42

69 ],

70 },

71 “Structure”: { # Features capturing structural and derived information (5 features)

72 “4.1: Structural Metrics”: [

73 ’normalized_step_count’, # 43

74 ’first_token_count’, # 44

75 ’last_token_count’, # 45

76 ’avg_tokens_per_step’, # 46

77 ’std_tokens_per_step’, # 47

78 ],

79 }

80 }

Listing 1: Final Optimized Feature Map (48 features, stable)

We present four claims with complete proofs to theoretically support Holistic Trajectory Calibration (HTC). Notation follows Section 2: a trajectory is denoted τ\tau, its extracted 48-dimensional diagnostic features are ϕ(τ)∈R48\phi(\tau)\in\mathbb{R}^{48}, the HTC calibrator is F_HTC:R48→[0,1]F\_{\mathrm{HTC}}:\mathbb{R}^{48}\to[0,1], the last-step confidence is p_Tp\_{T}, and the ground-truth task outcome is Y∈{0,1}Y\in\{0,1\}. Expectations, variances, and entropies are with respect to the data-generating distribution.

For a predictor q:X→[0,1]q:\mathcal{X}\to[0,1], the Brier loss and log-loss are

L_Brier(q)=E[(Y−q)2],L\_{\mathrm{Brier}}(q)=\mathbb{E}\big[(Y-q)^{2}\big],(21)
L_log⁡(q)=− E ⁣[Ylog⁡q+(1−Y)log⁡(1−q)].L\_{\log}(q)=-\,\mathbb{E}\!\left[Y\log q+(1-Y)\log(1-q)\right].(22)

The Bayes-optimal predictors are conditional means q⋆(⋅)=P(Y=1∣⋅)q^{\star}(\cdot)=\mathbb{P}(Y=1\mid\cdot), and the corresponding Bayes risks are

inf⁡_qL_Brier(q)=E ⁣[Var(Y∣⋅)],inf⁡_qL_log⁡(q)=H(Y∣⋅).\inf\_{q}L\_{\mathrm{Brier}}(q)=\mathbb{E}\!\left[\mathrm{Var}(Y\mid\cdot)\right],\qquad\inf\_{q}L\_{\log}(q)=H(Y\mid\cdot).(23)
Proposition 1 (Trajectory features dominate last-step confidence).
Section titled “Proposition 1 (Trajectory features dominate last-step confidence).”

Let

q⋆_ϕ(τ)=P(Y=1∣ϕ(τ)),q⋆_T(p_T)=P(Y=1∣p_T).q^{\star}\_{\phi}(\tau)=\mathbb{P}(Y=1\mid\phi(\tau)),\qquad q^{\star}\_{T}(p\_{T})=\mathbb{P}(Y=1\mid p\_{T}).

If σ(p_T)⊆σ(ϕ(τ))\sigma(p\_{T})\subseteq\sigma(\phi(\tau)), then

L_Brier ⁣(q⋆_ϕ)≤L_Brier ⁣(q⋆_T),L\_{\mathrm{Brier}}\!\left(q^{\star}\_{\phi}\right)\leq L\_{\mathrm{Brier}}\!\left(q^{\star}\_{T}\right),(24)
L_log⁡ ⁣(q⋆_ϕ)=H(Y∣ϕ(τ))≤H(Y∣p_T)=L_log⁡ ⁣(q⋆_T).L\_{\log}\!\left(q^{\star}\_{\phi}\right)=H(Y\mid\phi(\tau))\leq H(Y\mid p\_{T})=L\_{\log}\!\left(q^{\star}\_{T}\right).(25)

Inequalities are strict whenever ϕ(τ)\phi(\tau) contains strictly more information about YY than p_Tp\_{T}.

Proof. By (23), the Bayes Brier risk is E[Var(Y∣⋅)]\mathbb{E}[\mathrm{Var}(Y\mid\cdot)]. By the law of total variance,

Var(Y)=E[Var(Y∣ϕ)]+Var(E[Y∣ϕ])=E[Var(Y∣p_T)]+Var(E[Y∣p_T]).\mathrm{Var}(Y)=\mathbb{E}[\mathrm{Var}(Y\mid\phi)]+\mathrm{Var}(\mathbb{E}[Y\mid\phi])=\mathbb{E}[\mathrm{Var}(Y\mid p\_{T})]+\mathrm{Var}(\mathbb{E}[Y\mid p\_{T}]).(26)

Since σ(ϕ)\sigma(\phi) refines σ(p_T)\sigma(p\_{T}), Var(E[Y∣ϕ])≥Var(E[Y∣p_T])\mathrm{Var}(\mathbb{E}[Y\mid\phi])\geq\mathrm{Var}(\mathbb{E}[Y\mid p\_{T}]), hence E[Var(Y∣ϕ)]≤E[Var(Y∣p_T)]\mathbb{E}[\mathrm{Var}(Y\mid\phi)]\leq\mathbb{E}[\mathrm{Var}(Y\mid p\_{T})], proving (24).

For log-loss, the Bayes risk equals conditional entropy. By the chain rule,

H(Y∣p_T)=H(Y∣ϕ,p_T)+I(Y;ϕ∣p_T)≥H(Y∣ϕ).H(Y\mid p\_{T})=H(Y\mid\phi,p\_{T})+I(Y;\phi\mid p\_{T})\geq H(Y\mid\phi).(27)

This proves (25). □\square

Proposition 2 (Generalization of sparse linear HTC calibrator).
Section titled “Proposition 2 (Generalization of sparse linear HTC calibrator).”

Let the HTC calibrator be F_HTC(ϕ(τ))=σ(w⊤ϕ(τ))F\_{\mathrm{HTC}}(\phi(\tau))=\sigma(w^{\top}\phi(\tau)) with ∥w∥_1≤B\|w\|\_{1}\leq B, features bounded as ∥ϕ(τ)∥_∞≤R\|\phi(\tau)\|\_{\infty}\leq R, and d=48d=48. The empirical Rademacher complexity of linear scores s_w(x)=w⊤xs\_{w}(x)=w^{\top}x on nn samples satisfies

R^_n≤BR2log⁡(2d)n.\widehat{\mathfrak{R}}\_{n}\leq BR\sqrt{\frac{2\log(2d)}{n}}.(28)

Consequently, for any LL-Lipschitz loss in the score ss, with probability 1−δ1-\delta,

E[ℓ(Y,F_HTC(ϕ(τ)))]≤1n∑_i=1nℓ(y_i,F_HTC(ϕ(τ_i)))+2L BR2log⁡(2d)n+3log⁡(2/δ)2n.\mathbb{E}[\ell(Y,F\_{\mathrm{HTC}}(\phi(\tau)))]\leq\frac{1}{n}\sum\_{i=1}^{n}\ell(y\_{i},F\_{\mathrm{HTC}}(\phi(\tau\_{i})))+2L\,BR\sqrt{\frac{2\log(2d)}{n}}+3\sqrt{\frac{\log(2/\delta)}{2n}}.(29)

In particular, for logistic loss L=1L=1; for Brier-on-probability ℓ~(y,s)=(σ(s)−y)2\tilde{\ell}(y,s)=(\sigma(s)-y)^{2}, L≤12L\leq\tfrac{1}{2}.

Proof. By ℓ_1\ell\_{1}–ℓ_∞\ell\_{\infty} duality,

$$\widehat{\mathfrak{R}}_{n}=\frac{B}{n},\mathbb{E}_{\sigma}!\left[\max_{1\leq j\leq d}\Big\sum_{i=1}^{n}\sigma_{i}\phi_{j}(\tau_{i})\Big\right].$$

Each coordinate sum is sub-Gaussian with variance proxy ≤nR2\leq nR^{2}. A maximal inequality yields

$$\mathbb{E}\Big[\max_{1\leq j\leq d}S_{j}\Big]\leq R\sqrt{2n\log(2d)}.$$

Substitute into (30) to obtain (28). The generalization bound (29) follows from symmetrization and contraction. For logistic loss, ∣∂ℓ/∂s∣≤1|\partial\ell/\partial s|\leq 1; for ℓ~\tilde{\ell},

$$\left\frac{\partial\tilde{\ell}}{\partial s}\right=2

□\square

Proposition 3 (Toy bound: why last-step can be optimistic).
Section titled “Proposition 3 (Toy bound: why last-step can be optimistic).”

Suppose task success requires all TT subgoals to be correct, with per-step reliability p_t=P(subgoal t correct∣τ)p\_{t}=\mathbb{P}(\text{subgoal }t\text{ correct}\mid\tau). If subgoals are conditionally independent given τ\tau and p_T≥min⁡_tp_tp\_{T}\geq\min\_{t}p\_{t}, then

P(Y=1∣τ)=∏_t=1Tp_t≤min⁡_tp_t≤p_T.\mathbb{P}(Y=1\mid\tau)=\prod\_{t=1}^{T}p\_{t}\leq\min\_{t}p\_{t}\leq p\_{T}.(33)

Proof. By assumption, conditional on τ\tau, each subgoal outcome is independent and has success probability p_tp\_{t}. Hence the probability that all TT subgoals succeed is

P(Y=1∣τ)=∏_t=1Tp_t.\mathbb{P}(Y=1\mid\tau)=\prod\_{t=1}^{T}p\_{t}.(34)

For any finite set of numbers {a_t}⊆[0,1]\{a\_{t}\}\subseteq[0,1], it holds that

∏_t=1Ta_t≤min⁡_ta_t,\prod\_{t=1}^{T}a\_{t}\leq\min\_{t}a\_{t},(35)

because ∏_ta_t≤a_j\prod\_{t}a\_{t}\leq a\_{j} for each jj (since all factors are at most 1). Applying (35) to {p_t}\{p\_{t}\} yields

∏_t=1Tp_t≤min⁡_tp_t.\prod\_{t=1}^{T}p\_{t}\leq\min\_{t}p\_{t}.(36)

Finally, by assumption p_T≥min⁡_tp_tp\_{T}\geq\min\_{t}p\_{t}, hence

∏_t=1Tp_t≤min⁡_tp_t≤p_T.\prod\_{t=1}^{T}p\_{t}\leq\min\_{t}p\_{t}\leq p\_{T}.(37)

This establishes (33). □\square

Remark. This stylized model illustrates that last-step confidence can systematically overestimate success when intermediate steps are fragile. HTC features are designed to capture such fragility.

Proposition 4 (From post-hoc to online via prefixes).
Section titled “Proposition 4 (From post-hoc to online via prefixes).”

Let ϕ_≤k(τ)\phi\_{\leq k}(\tau) be diagnostics computed on prefix τ_≤k\tau\_{\leq k}. Define Bayes risks

L⋆_Brier(k)=E ⁣[Var(Y∣ϕ_≤k(τ))],L⋆_log⁡(k)=H(Y∣ϕ_≤k(τ)).L^{\star}\_{\mathrm{Brier}}(k)=\mathbb{E}\!\left[\mathrm{Var}(Y\mid\phi\_{\leq k}(\tau))\right],\qquad L^{\star}\_{\log}(k)=H(Y\mid\phi\_{\leq k}(\tau)).(38)

Then for 1≤k<T1\leq k<T,

L⋆_Brier(1)≥L⋆_Brier(2)≥⋯≥L⋆_Brier(T),L⋆_log⁡(1)≥L⋆_log⁡(2)≥⋯≥L⋆_log⁡(T).L^{\star}\_{\mathrm{Brier}}(1)\geq L^{\star}\_{\mathrm{Brier}}(2)\geq\cdots\geq L^{\star}\_{\mathrm{Brier}}(T),\qquad L^{\star}\_{\log}(1)\geq L^{\star}\_{\log}(2)\geq\cdots\geq L^{\star}\_{\log}(T).(39)

Proof. Consider the filtration of σ\sigma-algebras

F_1=σ(ϕ_≤1(τ))⊆F_2=σ(ϕ_≤2(τ))⊆⋯⊆F_T=σ(ϕ_≤T(τ)).\mathcal{F}\_{1}=\sigma(\phi\_{\leq 1}(\tau))\subseteq\mathcal{F}\_{2}=\sigma(\phi\_{\leq 2}(\tau))\subseteq\cdots\subseteq\mathcal{F}\_{T}=\sigma(\phi\_{\leq T}(\tau)).

This is increasing because ϕ_≤k\phi\_{\leq k} is measurable with respect to ϕ_≤k+1\phi\_{\leq k+1}.

For Brier risk, recall from (23) that

L⋆_Brier(k)=E ⁣[Var(Y∣F_k)].L^{\star}\_{\mathrm{Brier}}(k)=\mathbb{E}\!\left[\mathrm{Var}(Y\mid\mathcal{F}\_{k})\right].

By the law of total variance, for F_k⊆F_k+1\mathcal{F}\_{k}\subseteq\mathcal{F}\_{k+1},

Var(Y)=E ⁣[Var(Y∣F_k+1)]+Var ⁣(E[Y∣F_k+1])=E ⁣[Var(Y∣F_k)]+Var ⁣(E[Y∣F_k]).\mathrm{Var}(Y)=\mathbb{E}\!\left[\mathrm{Var}(Y\mid\mathcal{F}\_{k+1})\right]+\mathrm{Var}\!\left(\mathbb{E}[Y\mid\mathcal{F}\_{k+1}]\right)=\mathbb{E}\!\left[\mathrm{Var}(Y\mid\mathcal{F}\_{k})\right]+\mathrm{Var}\!\left(\mathbb{E}[Y\mid\mathcal{F}\_{k}]\right).

Because conditioning on a finer σ\sigma-algebra increases the variance of the conditional mean, it decreases the expected conditional variance. Thus

E[Var(Y∣F_k+1)]≤E[Var(Y∣F_k)].\mathbb{E}[\mathrm{Var}(Y\mid\mathcal{F}\_{k+1})]\leq\mathbb{E}[\mathrm{Var}(Y\mid\mathcal{F}\_{k})].

Hence L⋆_Brier(k+1)≤L⋆_Brier(k)L^{\star}\_{\mathrm{Brier}}(k+1)\leq L^{\star}\_{\mathrm{Brier}}(k).

For log-loss, recall L⋆_log⁡(k)=H(Y∣F_k)L^{\star}\_{\log}(k)=H(Y\mid\mathcal{F}\_{k}). Since F_k⊆F_k+1\mathcal{F}\_{k}\subseteq\mathcal{F}\_{k+1}, conditioning reduces entropy:

H(Y∣F_k+1)≤H(Y∣F_k).H(Y\mid\mathcal{F}\_{k+1})\leq H(Y\mid\mathcal{F}\_{k}).

Thus L⋆_log⁡(k+1)≤L⋆_log⁡(k)L^{\star}\_{\log}(k+1)\leq L^{\star}\_{\log}(k).

Combining both arguments yields the monotonicity in (39). □\square

(1) Conditioning on trajectory diagnostics never increases Bayes risk under proper scoring rules; (2) HTC’s sparse linear model has provable small-sample generalization guarantees; (3) a toy chain-of-subgoals model shows why last-step confidence is often overly optimistic; (4) applying the same diagnostics to prefixes provides a theoretical foundation for extending HTC from post-hoc evaluation to online early-warning.

A practical concern for applying Holistic Trajectory Calibration (HTC) is the cost of extracting token-level log-probabilities and computing our 48-dimensional feature set, particularly for long trajectories. We therefore provide a quantitative analysis of runtime, memory, and scalability.

Runtime. Feature extraction is highly efficient. On a standard CPU (Intel Xeon, 2.6GHz), processing a single trajectory of 500 tokens requires on average ∼\sim2–3 ms. For longer trajectories of up to 2000 tokens, runtime increases linearly but remains below 10 ms. Model training with logistic regression completes within <1<1 second per fold in our 5-fold cross-validation setup, and inference requires <1<1 ms per trajectory, making HTC suitable for real-time applications.

Memory and Storage. The extracted feature vector has fixed dimensionality (48 features), independent of trajectory length. Each trajectory requires ∼\sim0.5 KB for storage in double precision, negligible compared to raw token logs. Model parameters are minimal (<<1k), ensuring a very small memory footprint. By contrast, end-to-end neural encoders require thousands of parameters and significantly more memory.

Scalability. The computational complexity of feature extraction is O(N)O(N) in trajectory length NN, dominated by simple statistical aggregations. Storage and inference scale linearly with the number of trajectories, making HTC scalable to large evaluation corpora. Importantly, once features are extracted, training and inference are independent of sequence length.

Complexity Summary. Table 12 summarizes the efficiency characteristics. These results demonstrate that HTC introduces only marginal overhead relative to the cost of generating agent trajectories themselves.

ComponentComplexityRuntime (typical)Memory
Logprob extractionO(N)O(N)2–3 ms (500 tokens)∼\sim2 KB
Feature extractionO(N)O(N)<10<10 ms (2000 tokens)∼\sim0.5 KB
Model trainingO(M⋅d)O(M\cdot d)<1<1 s (500 samples)<1<1 MB
Inference per trajectoryO(d)O(d)<1<1 msnegligible

Table 12: Efficiency analysis of HTC . NN: trajectory length, MM: number of samples, dd: feature dimension.

Although Holistic Trajectory Calibration (HTC) is currently presented as a post-hoc diagnostic framework, we emphasize that the design choices make it highly amenable to deployment in practical agentic systems and potentially extendable to online interventions.

Lightweight and Online-Friendly. Our calibrator is intentionally designed to be lightweight, relying on a sparse linear model with fewer than 1k parameters. Feature extraction involves simple statistical operations on log-probability traces, making the approach computationally efficient and suitable for streaming. This efficiency suggests HTC could be integrated into live systems as a background diagnostic module without significant runtime overhead.

From Diagnosis to Early Warning. While our current implementation requires complete trajectories, the feature set itself captures signals (e.g., dynamics, positional changes, stability) that often emerge early in execution. Even though not yet fully developed, these insights indicate potential for training truncated versions of HTC that operate on partial trajectories to provide early-warning diagnostics, flagging trajectories that are likely to fail before completion.

Generalization and Transferability. The General Agent Calibrator (GAC) demonstrates that HTC features generalize across domains, enabling one-shot deployment without collecting new task-specific datasets. This transferability is a significant step toward practical deployment, reducing the burden of retraining and supporting plug-and-play integration in real-world systems.

Positioning. Thus, although HTC is formally post-hoc, it should be understood as a diagnostic reliability module with clear pathways to online adaptation. By starting from interpretable, transferable signals, HTC lays the groundwork for developing early-detection mechanisms and intervention strategies that go beyond post-hoc evaluation and move toward real-time reliability assurance.

To illustrate how Holistic Trajectory Calibration (HTC) improves over baseline confidence estimates, we present several representative cases. The most critical failure mode in agent reliability is overconfidence on incorrect answers: the agent outputs a wrong result while assigning a very high confidence. In such cases, baseline methods often remain highly confident (close to 1), whereas HTC substantially down-weights the score, better reflecting true reliability. We also include selected underconfidence on correct answers cases, where the baseline confidence is undesirably low despite the prediction being correct. HTC consistently raises the confidence closer to the ideal level. These examples demonstrate that our framework not only reduces harmful overconfidence but also recovers from underconfidence, leading to better calibration overall.

While our HTC framework demonstrates significant improvements in agent confidence calibration, we acknowledge several limitations that define the boundaries of this work and offer avenues for future research.

Grey-Box Dependency. Our methodology is fundamentally a grey-box approach, as it requires access to token-level logprobs to compute the diagnostic feature set. Consequently, it cannot be directly applied to models that do not expose this information through their APIs, such as the current version of Anthropic’s Claude series. This defines a clear scope for our method: it is applicable to any agent whose core LLM provides log-probability outputs.

From Diagnosis to Intervention: Online Self-Correction. The most natural next step is to adapt the HTC framework from a post-hoc tool into an online monitor. The fine-grained features we developed, particularly those from the Intra-Step Stability category, can serve as real-time signals to trigger an agent’s self-correction loop. For instance, if the ‘Lowest Group Confidence‘ within a step drops below a dynamically calibrated threshold, the agent could be prompted to reconsider its last action, re-generate its plan, or consult an alternative tool before proceeding. We view HTC as a first step toward reliability controllers for AI agents. In deployment, HTC could operate in tandem with real-time monitoring: when signals of instability or overconfidence are detected, an agent might be prompted to self-reflect, invoke external verification tools, or adapt its reasoning strategy. This bridges post-hoc calibration with proactive reliability management.

Reliability-based Optimization: Self-Evolving Agents & Agentic RL. Our framework opens new possibilities for long-term agent improvement.

  • •

    Self-Evolving Agents: An agent could use our calibrator as an automated “code reviewer.” By analyzing the feature patterns of its own failed trajectories over time, an agent could identify and attempt to rewrite the parts of its own source code or prompts that consistently lead to high-uncertainty states.

  • •

    Agentic Reinforcement Learning: Our calibrated confidence score can serve as a dense, high-quality reward signal for Agentic RL. This can significantly alleviate the sparse reward problem, allowing an agent to learn not just to succeed, but to succeed with well-calibrated certainty. The reward function could be designed to directly optimize for both task success and low ECE, encouraging a “cautious but effective” behavior, a direction also suggested by recent work in the field.

We have used LLM to polish writing for this paper.