Agentic Confidence Calibration

Jiaxin Zhang, Caiming Xiong, Chien-Sheng Wu

As Large Language Models (LLMs) evolve from passive chatbots into autonomous agents capable of planning, using tools, and solving multi-step problems, a critical vulnerability has emerged: the "hallucination of certainty." Agents frequently fail spectacularly while claiming 99% confidence in their outputs. This overconfidence in failure remains a fundamental barrier to deploying AI in high-stakes environments.

Traditional confidence calibration methods, such as Temperature Scaling, were designed for single-turn outputs and fall short in agentic settings. They fail to account for compounding errors, where a minor mistake in step one poisons the entire trajectory. They also ignore external noise from API and tool interactions, and they cannot detect opaque failures where a reasoning chain breaks down midway but the final output appears confident.

To address this, researchers have introduced Holistic Trajectory Calibration (HTC), a novel diagnostic framework that analyzes an AI agent's entire multi-step reasoning process to accurately predict its success.

Holistic Trajectory Calibration (HTC)

Instead of evaluating only the final answer, HTC treats the agent's entire execution path as a comprehensive diagnostic record. The framework extracts 48 interpretable, "process-level" features categorized into four distinct families:

  • Cross-Step Dynamics: Measures how confidence fluctuates across steps, identifying sudden drops or erratic shifts in certainty.
  • Intra-Step Stability: Evaluates the volatility and entropy within a single reasoning step.
  • Positional Indicators: Analyzes the initialization quality of the first step compared to the consolidation of the final step.
  • Structure Attributes: Captures macroscopic patterns, such as total step count and token length.

These features are processed by a simple, regularized linear model (Logistic Regression with L1/L2 penalties). This intentional design choice ensures robustness in "small-data" regimes—where collecting agent trajectories is expensive—and provides high interpretability. Developers can see exactly which features triggered a "low confidence" flag.

The "Last-Step" Trap and the Grammar of Uncertainty

A core insight from the research is the identification of the "Last-Step Trap." The paper proves both theoretically and empirically that relying solely on the final step's confidence yields systematically optimistic predictions. In a chain of subgoals, success requires every step to be correct; the final step's confidence often ignores the multiplicative risk of earlier errors.

Interestingly, failure signals are highly task-dependent. For factual QA tasks, failure signals are distributed across the entire process. In contrast, for complex reasoning tasks, positional features—how the agent starts and ends its reasoning—are the strongest predictors of failure.

Despite these task-level differences, the researchers discovered a universal "grammar" to agentic failure. The way an agent's internal confidence fluctuates during a breakdown remains remarkably consistent across domains. This insight led to the development of the General Agent Calibrator (GAC), a pre-trained version of the model designed to act as a plug-and-play reliability layer for unseen domains.

Performance and Generalization

HTC was rigorously evaluated across eight diverse benchmarks, ranging from knowledge-intensive QA (SimpleQA, HotpotQA) and complex reasoning (MATH500, GPQA, Humanity's Last Exam) to frontier agentic tasks involving long-horizon planning (GAIA).

The framework consistently outperformed strong baselines, including verbalized confidence and global averaging:

  • Superior Calibration: On the highly difficult Humanity's Last Exam (HLE) dataset, HTC achieved an Expected Calibration Error (ECE) of 0.031, a massive improvement over the 0.686 ECE of the standard "Last-Step" baseline.
  • Zero-Shot Generalization: The pre-trained GAC achieved the best calibration on the out-of-domain GAIA benchmark (0.118 ECE), outperforming even models trained directly on GAIA data.
  • Model Agnosticism: HTC proved effective across various state-of-the-art LLMs, including GPT-4o, DeepSeek-v3, and Qwen, demonstrating that its diagnostic features capture fundamental aspects of the agentic process rather than model-specific quirks.

Limitations and the Path Forward

While HTC establishes a new process-centric paradigm for confidence calibration, it currently operates with a "grey-box" dependency. It requires access to token-level log-probabilities, meaning it cannot be used with black-box APIs that obscure these values. Additionally, scaling the GAC to handle increasingly complex multi-agent systems will require broader and more diverse trajectory datasets.

Currently, HTC functions as a post-hoc evaluation tool, analyzing trajectories after completion. However, its interpretable features pave the way for future online self-correction. By monitoring stability features in real-time, systems could eventually trigger an agent to "re-think" or switch tools the moment its confidence drops below a critical threshold, fundamentally enhancing the reliability of autonomous AI.

Summary updated

BibTeX
@inproceedings{zhang2026agentic,
  author = {Jiaxin Zhang and Caiming Xiong and Chien-Sheng Wu},
  title = {{Agentic Confidence Calibration}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=B1ISNZQHuI},
}
Figure