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

Manuscript Offprint

arXiv:2608.29685

Last Step Matters: Early Uncertainty Cannot Predict Failure in Long-Horizon Agents

Zongyue Li, Chengyue Yu, Lei Zang, Chenyi Zhuang, Linjian Mo, Leilei Gan

Abstract

Early failure prediction is important for long-horizon agents, as it enables timely intervention and can reduce inference and tool-use costs. Uncertainty quantification, such as verbal confidence and perplexity, offers a promising approach to detecting agent failures; however, it has not been explored whether these signals retain their discriminative power during the intermediate stages of long-horizon execution. We evaluate mainstream uncertainty signals on deep-research tasks and find that verbal confidence reliably distinguishes failures at trajectory completion, achieving a mean AUROC of 0.85, whereas all evaluated signals offer limited predictive value earlier in execution, with none exceeding a mean AUROC of 0.60 at 50% trajectory progress. We identify an underlying mechanism explaining this gap: path switching, where agents frequently abandon their current search direction in-trajectory, breaking the link between early signal and final outcome. These findings challenge the assumption that intermediate uncertainty can reliably guide early intervention. They also motivate a practical recommendation for agent harnesses in deep-research settings: use final-step confidence to decide whether to restart, an approach that our experiments find more effective than in-trajectory intervention.

1 Introduction

Large language model (LLM) agents can now autonomously tackle complex, long-horizon tasks through iterative information seeking, reasoning, and answer synthesis (Yao et al., 2023; Schick et al., 2023; Deng et al., 2023). However, these agents remain prone to execution failures: they may get stuck in action loops (Lu et al., 2025), pursue incorrect reasoning paths (Zhu et al., 2025), or hallucinate.

Figure

Figure 1: Predictive ability of uncertainty metrics for agent failure (measured by AUROC) across normalized trajectory progress. All metrics remain weak until 80–90% progress, then rise sharply at completion (trajectories with ≥\geq11 steps; AUROC averaged across five models and three deep research benchmarks). This pattern is consistent across the 15 combinations of models and benchmarks (Appendix D).

cinate information (Huang et al., 2025a). Such failures are particularly costly in long-horizon tasks, as each additional step incurs inference and tool-use costs (Xiao et al., 2026; Wang et al., 2025). Early failure prediction could therefore enable timely intervention before these costs accumulate (Lu et al., 2025). Uncertainty quantification (UQ), including verbal confidence methods (Tian et al., 2023; Kadavath et al., 2022), token probability methods (Jelinek et al., 1977; Shannon, 1948), and consistency-based methods (Farquhar et al., 2024; Manakul et al., 2023), has emerged as a promising approach for predicting such failures (Xia et al., 2025; Oh et al., 2026). Prior work has shown that these metrics are discriminative in single-turn settings, while recent studies have extended their evaluation to multi-step agentic tasks (Zhao et al., 2025; Duan et al., 2025; Zhang et al., 2026b). However, existing studies generally focus on relatively short

∗^{*}Equal contribution.

†^{\dagger}Corresponding author.

Figure

Figure 2: Illustration of three agent trajectories (T1, T2, and T3) showing how path switching can weaken the relationship between intermediate confidence and the final outcome. A low confidence signal at an intermediate stage (T2) does not indicate eventual failure when the agent subsequently switches to a new search direction, while a high confidence signal at an intermediate stage (T3) does not guarantee eventual success.

trajectories and assess failure detection only at task completion. It therefore remains unclear whether these metrics can reliably predict failures during long-horizon execution and how early they become informative.

To fill this gap, we systematically evaluate uncertainty signals for failure prediction throughout long-horizon agent execution. We consider three signal families (verbal confidence, token-probability metrics, and consistency-based metrics) across three deep-research benchmarks: BrowseComp (Wei et al., 2025), BrowseComp-zh (Zhou et al., 2025), and Humanity's Last Exam (Center for AI Safety et al., 2026). Our experiments cover five models with parameter counts ranging from 27B to 1T and address two questions: (1) Effectiveness. How reliably can established uncertainty metrics distinguish failed from successful trajectories at task completion? (2) Timeliness. More critically, when do these signals become informative? Can they identify failures early enough to support intervention before task completion?

Our answer to the first question is encouraging: final-step verbal confidence is a strong baseline, achieving an average AUROC (area under the receiver operating characteristic curve) of 0.85 across the 15 model-benchmark combinations. The answer to the second question is sobering: all evaluated signals have poor early predictive ability, with none exceeding a mean AUROC of 0.60 at 50% progress. As Figure 1 shows, all metrics remain weak until 80–90% progress, then rise sharply only upon completion.

We identify path switching as an underlying

mechanism explaining this gap. Agents frequently abandon their current search direction during a trajectory. Figure 2 illustrates how path switching weakens the link between intermediate confidence and the eventual outcome. After the final switch, verbal confidence becomes substantially more predictive. We also observe a pronounced separation near trajectory completion. Relative to the mean confidence over the first 70% of each trajectory, final-step confidence is 15 percentage points higher for correct trajectories and 6 percentage points lower for incorrect trajectories. These findings indicate that intermediate uncertainty has limited utility for early failure prediction. Our intervention experiments further show that confidence-guided post-completion retries outperform in-trajectory intervention.

Our contributions are threefold: (1) We provide the first systematic study of how the predictive ability of uncertainty signals changes throughout long-horizon agent trajectories in deep-research tasks. Our evaluation spans three representative UQ families and distinguishes failure detection at completion from failure prediction before completion. (2) We identify path switching as a behavioral phenomenon that helps explain the weak predictive ability of early uncertainty signals. (3) We derive practical recommendations for agent harnesses: our results favor post-completion retries guided by final-step confidence over in-trajectory interventions triggered by intermediate confidence.

References (8)