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

Manuscript Offprint

arXiv:2610.13105

Can Failed Trajectories Reveal Where Agents Go Wrong? Agentic Failure Attribution Without Step-Level Labels

Do Nguyen-Thanh, Junlin Fang, Bing Li, Zhen Fang, Sean Du

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

Do Nguyen-Thanh 1,†^{1,\dagger}, Junlin Fang 1,†^{1,\dagger}, Bing Li 2^{2}, Zhen Fang 3^{3} and Sean Du 1,∗^{1,*}

1^{1}College of Computing and Data Science, Nanyang Technological University, Singapore, 2^{2}School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore, 3^{3}Australian Artificial Intelligence Institute, University of Technology Sydney, †^{\dagger}Equal contribution, ∗^{*}Corresponding author

Abstract

Failure attribution for LLM agents aims to identify decisive steps responsible for task failure, which is critical for debugging and improving agentic systems. Existing methods rely on costly LLM prompting, step-level error annotations, or verified successful trajectories that lack failure signals for assistance. In this paper, we study failure attribution from step-unlabeled failure trajectories, where each trajectory is known to have failed but its decisive step is unknown. We propose SOAP (Spectral scOring with Attention-guided Propagation), an effective framework requiring neither step-level training labels nor a separate success-only reference set. SOAP first constructs a spectral reference space from LLM representations and assigns each step a base error score according to its projection behavior. Importantly, later steps may exhibit stronger failure signals because they inherit an earlier mistake, causing independent scorers to favor downstream consequences over the decisive error. To address this downstream contamination, SOAP derives soft step dependencies from attention patterns and propagates downstream error evidence toward its likely upstream sources. Extensive experiments show that SOAP consistently improves attribution performance over competitive baselines.

Date: October, 2026

Contact: thanhdo001@e.ntu.edu.sg;

xuefeng.du@ntu.edu.sg

1. Introduction

When an LLM-based agent fails on a long-horizon task, identifying where the failure began is essential for debugging, auditing, and improving the agent. An agent trajectory may contain dozens or even hundreds of reasoning, communication, and tool-use steps, while only one early decision introduces the error that ultimately causes task failure. Manually tracing such trajectories is prohibitively expensive and prone to inconsistency, especially as agents are increasingly deployed for software engineering, scientific discovery, and other complex tasks [19,21][19, 21]. This motivates the problem of failure attribution: given a failed trajectory, identify the decisive step that introduced the failure [26][26].

Failure attribution is fundamentally challenging. Existing methods typically rely either on prompting powerful LLM judges, which incurs substantial inference cost and can be unreliable over long trajectories [3, 16, 20, 23, 26], or on post-training attribution models using failure trajectories with step-level annotations [24, 25]. Such annotations are costly and often ambiguous, since identifying the decisive step may require substantial domain expertise. OAT [22] alleviates this burden by learning the latent dynamics of successful trajectories and detecting deviations from the learned flow. However, it has no access to failure trajectories during training, and therefore models only what successful behavior looks like. Moreover, its success-only

Can Failed Trajectories Reveal Where Agents Go Wrong? Agentic Failure Attribution Without Step-Level Labels

reference set must be verified and may become stale as agents and task distributions evolve. This motivates a complementary question:

References (29)