arXiv(opens in a new tab)cs.AISep 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2609.09448

Do Agents Know When They Succeed? Calibrating Agent Confidence from Internal Representations

Priyanka Mary Mammen, Emil Joswin, Srujananjali Medicherla

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

As agentic systems getting adopted rapidly in safety critical applications, it is vital to measure the confidence associated with the agentic actions. In comparison to the traditional machine learning systems, agentic workflows have complex failure modes with planning, tool invocation and dynamic environment interactions. In this paper, we investigate whether model's internal representations provide stronger signals of eventual task success in multi-turn agentic setups. We introduce two complementary methods: Latent Trajectory Dynamics (LTD), which summarizes changes in residual-stream representations across an interaction trajectory, and the Action Representation Probe (ARP), which predicts success from representations formed at action decisions. Across three interactive benchmarks (Bash, SQL, Python) and three model families (Qwen-14B, Qwen-7B, DeepSeek-6.7B), our methods consistently outperform surface-level generation and sequence-based calibration baselines providing a zero-overhead reliability monitor that requires neither prompt alterations nor multi-sample rollouts.

1 Introduction

Autonomous agentic systems are getting popular and increasingly being deployed across safety critical domains including software-engineering tasks, trading, finance, clinical decision making, and robotic systems. Therefore, reliability and failure detection is essential for its deployment. During real-time execution, agents operate under no ground truth label, and so the general strategy is to rely on an evaluation step to determine intervention or implement any fallback policies.

Traditional confidence estimation techniques designed for single-turn generation like temperature scaling, output token semantic entropy, verbalized confidence Zhao et al. [2026], Tian et al. [2023], Xu et al. [2025] etc struggle in agentic workflows. Unlike typical text generation tasks, in agentic settings, models do not work in isolation, they operate within a harness that orchestrate multi-turn planning, tools, and feedback from external environment over long-horizon tasks. Hence, due to the nature of complex execution of agents in long-horizon tasks, these static system techniques won’t work for multi-turn. Oh et al. [2026]. Recent works such as Duan et al. [2025], Zhao et al. [2025], came up with a confidence estimation techniques which consider error propagation across steps in a reasoning trajectory and another work Zhang et al. [2026] proposed an agentic confidence calibration from trajectory derived signals. As these methods leverage only output level signals, they might fail to capture the model inner states preceding the model failures. Azaria and Mitchell [2023] has shown that model inner states can better indicate the model veracity than model outputs.

Motivated by this insight, we turn towards mechanistic approaches to derive granular level model confidence signals. Mechanistic interpretability related works in agentic settings are mostly single-turn based and used for tool-need decision making Liu et al. [2024], Subramani et al. [2025], Healy et al. [2026], Tatsat and Shater [2026] in reasoning tasks. Building upon this foundational work, we investigate different mechanistic approaches to derive confidence in multi-turn agentic setups.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Our main contributions are as follows:

• We introduce two novel internal confidence extraction frameworks operating directly on the agent’s hidden activations: Latent Trajectory Dynamics (LTD), which quantifies the geometric stability and drift of the agent’s execution path, and the Action Representation Probe (ARP), which decodes task success directly from the action-span residual states.

• We benchmark surface token logprobs, trajectory dynamics, and internal representations under a leak-free cross-validation protocol and show that across InterCode-Bash, SQL, and Python on three open-weight coding models (Qwen-14B, Qwen-7B, DeepSeek-6.7B), internal methods consistently dominate surface baselines, establishing internal state probing as a viable zero-overhead reliability safeguard for deployed agents.

References (19)