Source-linked AI summary

Agentic Confidence Calibration

Jiaxin Zhang, Caiming Xiong, Chien-Sheng Wu

arXiv:2601.15778v1cs.AIcs.CL

TL;DR

Existing confidence calibration methods overlook process-level uncertainty in multi-step agents; this paper proposes HTC to diagnose entire trajectories, outperforming strong baselines across eight benchmarks while supporting transfer and out-of-domain generalization.

  • Problem

    Existing confidence estimation methods are designed for static outputs and cannot capture sequential trajectory information needed to diagnose agent failures.

  • Method

    HTC transforms confidence traces from an agent’s full trajectory into interpretable process-level features spanning dynamics, stability, position, and structure.

  • Results

    HTC consistently outperforms strong baselines in calibration and discrimination across eight benchmarks, multiple LLMs, and diverse agent frameworks.

  • Takeaways & Limitations

    HTC establishes a process-centric calibration paradigm combining interpretable failure diagnosis, cross-domain transfer, and a GAC with best zero-shot ECE on unseen tasks.

  • Takeaways & Limitations

    Universal calibration faces challenges when transferring across tasks with fundamentally different cognitive paradigms.

Abstract

from arXiv · show

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.

1 INTRODUCTION

As LLMs become autonomous agents operating across complex, multi-step environments, reliability and confidence estimation become critical unresolved challenges. The paper introduces Agentic Confidence Calibration and HTC, a process-centric framework designed to diagnose entire trajectories and improve trustworthy deployment.

  • LLM-based agents now combine reasoning, planning, tools, and memory to solve complex problems in dynamic environments.
  • Agentic uncertainty compounds across sequential trajectories, so an early erroneous decision can corrupt later execution while leaving the agent overconfident.
  • Traditional methods such as Temperature Scaling cannot process sequential trajectory data or expose process-level causes of agent failure.
  • Agentic Confidence Calibration estimates trajectory success by diagnosing entire execution processes amid multi-scale uncertainty, compounding model-environment noise, and limited labels.
  • HTC uses trajectory-level signals to provide interpretability, transferability across tasks and domains without retraining, and generalization across eight benchmarks, agent frameworks, and LLMs.The framework exposes signals including early-step entropy, confidence gradients, and stability dynamics, while reliably outperforming strong baselines.

2 METHOD

HTC calibrates agent confidence from complete execution trajectories and token-level log-probabilities rather than final actions alone. It represents uncertainty with compact, interpretable multi-scale features and uses lightweight regularized models suited to small-data settings.

  • Problem Formulation: HTC maps an execution trajectory and its associated token log-probabilities to a calibrated confidence score whose expected success rate matches the score.The target label y indicates task success or agreement with the ground-truth solution.
  • Challenges: Agentic calibration must address compounding uncertainty, heterogeneous multi-source signals, and scarce, variable-length trajectory data.Early errors can amplify downstream failures, external tools add stochasticity, and uncertainty appears both within and across steps.
  • Design Principles: The feature design targets universality, informativeness, parsimony, and interpretability while remaining tractable for small-sample calibration.Feature-based representations are presented as more sample-efficient and diagnostically transparent than end-to-end neural encoders.
  • Trajectory-Level Features: HTC uses a 48-dimensional trajectory representation built from statistical operators applied within steps and across steps to preserve essential uncertainty signals.The representation is organized around cross-step dynamics, intra-step stability, positional indicators, and structural attributes.
  • Calibration Model: HTC uses an interpretable light calibration model with ridge-regularized HTC-Full and sparsity-inducing lasso-regularized HTC-Reduced variants.HTC-Full retains the full feature set, whereas HTC-Reduced selects a compact subset to denoise spurious features and often improve calibration in small-data regimes.
  • Efficiency and Deployment: Feature extraction scales linearly with trajectory length, while training and inference are near-instantaneous for real-time deployment and rapid domain adaptation.The efficiency claim follows from simple aggregation operators and a lightweight linear calibrator.

3 EXPERIMENTS

Across diverse datasets, LLMs, and agent architectures, HTC improves calibration and discrimination while revealing task-dependent uncertainty signals. Transfer experiments show strong generalization when cognitive processes align, culminating in a pretrained GAC that achieves the best ECE on held-out GAIA.

  • Overall Performance: HTC variants substantially outperform inference-based baselines across ECE, Brier Score, and AUROC, with HTC-Reduced reaching ECE 0.031 and Brier Score 0.09 on HLE.Lower ECE and Brier Score indicate closer alignment between confidence and actual performance; AUROC measures discrimination between successful and failed trajectories.
  • Robustness Across Models and Architectures: HTC delivers consistent improvements across six LLMs and significant gains on both tested agent architectures, supporting model-agnostic and architecture-agnostic deployment.The LLM evaluation used SimpleQA, while the architecture comparison used GPT-4.1 on GPQA with OAgents architectures.
  • Interpretability: Feature-weight analysis shows that failure signals are task-dependent, with no single universally dominant feature across the eight datasets.SimpleQA distributes predictive signals across Dynamics, Stability, and Position, reflecting multiple possible failure stages.
  • Interpretability: Across tasks, Positional features most often provide the strongest primary failure signal, while Stability and Dynamics become essential as more diagnostic features are combined.HTC’s effectiveness derives from integrating diverse process-diagnostic signals rather than relying on a marginal category.
  • Transferability: Transfer works best between tasks with similar cognitive processes: a SimpleQA-trained calibrator outperforms direct training on HotpotQA across all metrics, whereas MMLU-Pro transfer underperforms on MATH500 and HLE.The weaker reasoning transfer is attributed to distribution shift between multiple-choice reasoning, open-ended generation, and complex planning.
  • General Agent Calibrator: 0.118 is the best ECE achieved by Pretrained GAC-Reduced on held-out GAIA, surpassing DIRECTTRAIN full at 0.169 and reduced at 0.142.Pretraining pooled seven datasets and enabled GAC to capture a transferable uncertainty grammar for out-of-domain calibration.

4 CONCLUSION

The paper introduces HTC as an interpretable, feature-based framework for agentic confidence calibration. Its conclusions emphasize hierarchical diagnostic signals, transferable uncertainty patterns, and the limits of cross-task generalization under distribution shift.

  • 4 CONCLUSION: HTC provides a feature-based, interpretable framework for agentic confidence calibration.The framework addresses compounding uncertainty, heterogeneous signals, and data scarcity.
  • 4 CONCLUSION: Calibration relies on a hierarchy of diagnostic signals.
  • 4 CONCLUSION: HTC features capture transferable uncertainty patterns that support strong cross-task generalization while exposing limits under distribution shift.

5 ETHICAL STATEMENT

The research aims to make AI agents safer and more reliable in high-stakes settings by improving confidence calibration and transparency. It also acknowledges misuse risks and the need for evaluation beyond calibration metrics.

  • Potential benefits: The work could support safer deployment in healthcare and finance by helping agents recognize uncertainty, improving human-AI collaboration, and increasing decision-making transparency.Its goal is to help agents better “know what they don’t know.”
  • Risks and safeguards: A highly effective calibrator could create false security around flaws outside its features, so deployment requires comprehensive evaluation beyond calibration metrics.The technology also has dual-use potential and may be misused despite improved calibration.

6 REPRODUCIBILITY STATEMENT

The paper takes extensive steps toward reproducibility by using publicly available datasets and fully specifying the HTC framework, including methodology, proofs, assumptions, and diagnostic features.

  • The experiments use publicly available datasets, with preprocessing details provided in Appendix A.2.6.
  • HTC is fully specified through the core methodology, complete theoretical proofs with explicit assumptions, and detailed diagnostic-feature descriptions.

A APPENDIX · APPENDIX CONTENTS · A.1 RELATED WORK

The related work positions Agentic Confidence Calibration at the intersection of LLM confidence calibration and uncertainty quantification for LLM-based agents. It connects classic calibration methods and emerging trajectory-level uncertainty frameworks to the distinct challenges of agentic systems.

  • A.1 RELATED WORK: Agentic Confidence Calibration lies at the intersection of confidence calibration for LLMs and uncertainty quantification for LLM-based agents.The paper describes both as rapidly developing research areas.
  • A.1 RELATED WORK: Confidence calibration seeks to align a model’s predicted probability with the true likelihood of correctness.This defines the central objective of confidence calibration.
  • A.1 RELATED WORK: Temperature Scaling is effective for standard classification tasks, but applying it directly to free-form generative LLM outputs is non-trivial.The passage identifies Temperature Scaling as a classic method and notes its limitation for generative outputs.
  • A.1 RELATED WORK: Recent work has therefore explored calibration techniques specifically tailored for LLMs.These efforts respond to the difficulty of directly applying classic classification calibration methods to generative outputs.
  • A.1 RELATED WORK: Uncertainty in LLM agents is an emerging but critical research field addressing challenges specific to agentic systems.Pioneering studies have begun formalizing these challenges.
  • A.1 RELATED WORK: UProp and SAUP were the first frameworks to model uncertainty propagation through sequential steps of an agent’s trajectory.The passage presents these frameworks as valuable analytical approaches for agent uncertainty.

A.2 EXPERIMENTAL SETUP DETAILS · A.2.1 DETAILED DATASET DESCRIPTIONS

The experiments evaluate HTC across eight benchmark datasets spanning factual retrieval, multi-hop and strategic reasoning, mathematics, advanced STEM knowledge, and autonomous assistant tasks. Dataset construction uses primarily official test or validation splits, standardized sampling, and binary success labels for each example.

  • A.2.1 DETAILED DATASET DESCRIPTIONS: HTC is evaluated on 8 benchmark datasets to provide a comprehensive, multi-faceted assessment.The benchmark suite covers diverse reasoning and autonomous-agent capabilities.
  • A.2.1 DETAILED DATASET DESCRIPTIONS: SimpleQA, HotpotQA, and StrategyQA test factual retrieval, multi-document reasoning, and implicit strategic reasoning, respectively, using 500 test-set samples each.These datasets progressively assess basic knowledge retrieval and more complex reasoning requirements.
  • A.2.1 DETAILED DATASET DESCRIPTIONS: MATH500 uses 500 test-set problems to evaluate the reliability of formal mathematical reasoning and computation.The problems come from high school mathematics competitions.
  • A.2.1 DETAILED DATASET DESCRIPTIONS: GPQA uses all 448 MAIN-split samples and is converted from multiple choice to open-ended generation to increase difficulty on graduate-level STEM questions.The benchmark is challenging even for domain experts.
  • A.2.1 DETAILED DATASET DESCRIPTIONS: MMLU-Pro and HLE each use 500 samples to test deep knowledge, multi-turn Chain-of-Thought reasoning, and reliability on extremely difficult multi-step problems.HLE targets reliability near the frontier of agent capabilities.
  • A.2.1 DETAILED DATASET DESCRIPTIONS: GAIA uses the full 165-sample validation set as a final test of long-horizon planning, multi-tool coordination, and interaction with real-world documents and websites.It is designed for general AI assistants and autonomous capabilities.
  • A.2.1 DETAILED DATASET DESCRIPTIONS: Datasets with more than 500 samples are randomly subsampled to 500, smaller datasets use their entire sets, and each sample receives a binary success label y ∈{0, 1}.Samples are primarily sourced from official test or validation splits.

A.2.2 DETAILED EVALUATION METRICS AND PROTOCOL

The evaluation uses ECE, Brier Score, and AUROC to assess calibration, prediction quality, and discrimination, while LLM-as-Judge supplies binary success labels for complex free-form answers. The judge agrees with human experts at a 90-95% rate on a stratified subset.

  • Metrics: ECE measures the weighted gap between confidence and accuracy across confidence bins, with lower values indicating better calibration.Predictions are partitioned into M bins, and each bin contributes according to its size.
  • Metrics: Brier Score measures mean squared error between predicted probabilities and outcomes, jointly assessing calibration and discrimination.Lower Brier Score indicates better overall prediction quality.
  • Metrics: AUROC measures threshold-independent discrimination between successful and failed trajectories by evaluating confidence-based ranking.AUROC 1.0 represents a perfect classifier, while 0.5 represents a random guess.
  • Evaluation Protocol: The evaluation adopts LLM-as-Judge to assess complex free-form answers and generate binary success labels for calibrator training and evaluation.For each completed trajectory, the final answer is extracted and judged; on a stratified subset, agreement with human experts was 90-95%.

A.2.3 MODEL AND AGENT FRAMEWORK DETAILS • … A.10 FUTURE WORK AND BROADER IMPACT

The appendix details HTC’s frameworks, baselines, implementation, trajectory features, empirical analyses, theoretical motivation, efficiency, deployment implications, qualitative behavior, and limitations. Across these components, HTC is presented as an interpretable, transferable, efficient, and potentially online reliability diagnostic, while requiring token-level log-probabilities.

  • A.2.3 MODEL AND AGENT FRAMEWORK DETAILS •: HTC is evaluated primarily with smolagents’ CodeAct framework and additionally with OAgents to test whether its diagnostic signals generalize across agent architectures.smolagents supports expressive Python-code actions and tool use, while OAgents adds more sophisticated planning and memory modules.
  • A.2.4 INFERENCE-BASED BASELINES: The evaluation compares HTC with verbalized, last-step, global-trace, temperature-scaled, and supervised learning-based confidence baselines.The supervised baselines include LSTM and Transformer trajectory encoders plus MLP, Gaussian Process, and XGBoost models over 48 engineered features; nonlinear feature-based methods outperform end-to-end encoders overall but are less interpretable and more variable on small samples.
  • A.2.6 IMPLEMENTATION AND HYPERPARAMETER DETAILS: HTC uses 5-fold stratified cross-validation with 500 labeled trajectories, deterministic seed 42, and regularization selected by AUROC, Brier Score, and ECE.Grid search considers 15 α values, and sparse solutions typically select 15–25 of the 48 features.
  • A.3.2 FEATURE IMPORTANCE ANALYSIS: HTC shows stable cross-domain calibration across GPT-4.1 and GPT-4o, with transferability across datasets and relative insensitivity to backbone model or feature-set size.Feature importance analysis highlights confidence change, attention entropy, and token volatility as consistently influential signals.
  • A.4 ABLATION STUDY ON FEATURE CATEGORIES: 48 features achieve AUROC 0.8430, Brier Score 0.1471, and ECE 0.0328 in the combined ablation study, while multi-category combinations outperform single categories.Dynamics+Position+Stability reaches AUROC = 0.8419, +0.0137 over Dynamics alone at AUROC = 0.8282; Structure alone reaches 0.783 AUROC.
  • A.5.1 FEATURE DEFINITIONS: HTC represents trajectory reliability with 48 interpretable features spanning Dynamics, Position, Stability, and Structure.These categories capture confidence evolution, onset-versus-resolution behavior, cross-step consistency, and the overall form of reasoning traces.
  • A.7 EFFICIENCY AND COST ANALYSIS: Feature extraction takes ∼2–3 ms for 500-token trajectories and remains below 10 ms up to 2000 tokens, while extraction complexity is O(N) and features require fixed 48-dimensional storage.Training takes < 1 second per fold, inference < 1 ms per trajectory, each trajectory requires ∼0.5 KB, and model parameters are <1k.
  • A.8 DEPLOYMENT AND PRACTICAL IMPLICATIONS: HTC down-weights high-confidence incorrect answers, supports one-shot cross-domain deployment through GAC, and may extend to early-warning diagnostics, but it requires token-level log-probabilities.The current implementation uses complete trajectories, while the grey-box dependency excludes models that do not expose log-probabilities, including the current Claude series.
Loading 2601.15778v1…