arXiv:2610.18614cs.AIOct 2026

Manuscript Offprint

arXiv:2610.18614

Can an Agent Learn to Predict Its Own Failure? Outcome-Grounded Confidence Calibration in LLM Agents

Ashutosh Hathidara

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Controlling an acting LLM agent means deciding, at each step of a long-horizon task, whether to trust its next action, abstain, or hand off to a human. That decision needs a per-step confidence signal predicting whether the current rollout will eventually succeed. The agent's own self-reported verbalized confidence is the natural candidate, but existing reinforcement learning methods calibrate it against the correctness of a decision at the current step. We propose a method to calibrate it against the eventual outcome of a multi-step episode: under GRPO, the group of rollouts for a task supplies success labels, and a proper scoring rule scores each step's confidence against the realized outcome. In offline RL on recorded trajectories of a Qwen2.5-7B agent in ALFWorld, TextWorld, and WebShop environments, the AUROC of step confidence against episode outcome rises from near chance to 0.68–0.85, and the top-10% of steps the agent is most confident about succeed ~4.3× more often than average. In online RL on the live ALFWorld agent, four calibration rewards improve early-step AUROC, expected calibration error goes from 0.42 to below 0.12, and selective execution improves over both the untrained agent and a format-only RL control, without degrading task success. We also introduce an evaluation protocol that separates episode depth, task difficulty, and attempt-level foresight, which shows where the gain lies: the trained agent recognizes from its first step which tasks it will fail, while telling a succeeding attempt from a failing one at the same task is harder, with some early-window signal emerging on TextWorld.

1 Introduction

Acting LLM agents increasingly operate in long-horizon, partially observable environments (Shridhar et al., 2021; Yao et al., 2022; Côté et al., 2019; Shridhar et al., 2020; Hausknecht et al., 2020; Wang et al., 2022; Zhou et al., 2024; Liu et al., 2024), where a single episode spans dozens of actions under compounding uncertainty. Controlling such an agent at runtime requires an estimate of the probability that the current attempt will succeed, so that it can continue with the action, verify with observation, or escalate to a human (Kadavath et al., 2022). Such a probability estimate can work as a confidence signal that predicts whether the current rollout will ultimately reach the goal, not whether the current step is locally correct.

The natural candidate is a self-reported verbalized confidence of an agent. Without additional focused training, smaller LLMs are poorly calibrated and barely predictive ( §6§6). Previous works on Reinforcement Learning (RL) for calibration (Damani et al., 2025; Bani-Harouni et al., 2026; Wang et al., 2026b; Xuan et al., 2026; Zhang et al., 2026) focus on training confidence to predict either a single answer or step-level correctness. Such greedy optimization signals train the model to be locally predictive, promising no predictiveness for eventual outcome.

We propose a methodology to train a step-wise confidence signal that could predict the eventual outcome of the task. Under group-relative policy optimization (GRPO), the rollouts for a task supply success labels at no extra cost. We define the per-step reward as a proper scoring rule on the step confidence against the realized outcome, with other reward terms. We conduct offline & online RL training. Our evaluation protocol separates what the aggregate score mixes ( §3.2§3.2).

Our approach reveals that outcome-grounded calibration can turn a weak agent’s confidence into a reliable early signal of eventual outcome, consistently across environments and training regimes. Our evaluation protocol then reveals precisely where this new ability comes from, and where it does not.

In summary, our contributions include: (i) Outcome-grounded calibration training under

GRPO, (ii) an evaluation protocol for episodic confidence, and (iii) an empirical analysis of what an LLM learns during such a training process.

References (29)