Can Failed Trajectories Reveal Where Agents Go Wrong? Agentic Failure Attribution Without Step-Level Labels
Organizations: College of Computing and Data Science, Nanyang Technological University, Singapore · School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore · Australian Artificial Intelligence Institute, University of Technology Sydney
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.
Figures & tables
| Method | Supervised | WW-AG | WW-HC | CE | TE-Cap | TE-Mag |
|---|---|---|---|---|---|---|
| GPT-4o | ||||||
| Prompt-based methods | ||||||
| All-at-Once [ 26 ] | ✗ | 14.81 | 6.90 | 28.39 | 16.28 | 5.80 |
| Step-by-Step [ 26 ] | ✗ | 20.63 | 13.79 | 44.47 | 13.95 | 13.04 |
| Binary Search [ 26 ] | ✗ | 22.22 | 4.60 | 9.70 | 9.30 | 6.52 |
| CORRECT [ 23 ] | ✓ | 15.34 | 4.60 | 35.12 | 10.85 | 13.77 |
| Method | Sup. | WW-AG | WW-HC |
|---|---|---|---|
| Prompt-based methods | |||
| All-at-Once | ✗ | 21.16 | 11.49 |
| Step-by-Step | ✗ | 17.46 | 18.39 |
| Binary Search | ✗ | 2.12 | 13.79 |
| CORRECT | ✓ | 32.28 | 4.60 |
| CHIEF | ✗ | 30.69 | 4.60 |
Appendix figures & tables23 assets
Supplementary material from the paper’s appendix.
Appendix
| Subset | Agent system | Traj. | Turns | Agents | Decisive step | ||
|---|---|---|---|---|---|---|---|
| mean | med. | max | mean | ||||
| WW-AG | CaptainAgent | 126 | 8.7 | 10 | 10 | 3.6 | 3.0 |
| WW-HC | Magentic-One | 58 | 51.6 | 32 | 130 | 5.7 | 15.2 |
| TE-Cap | CaptainAgent | 85 | 20.5 | 13 | 59 | 2.7 | 6.0 |
| TE-Mag | Magentic-One | 91 | 29.3 | 28 | 50 | 2.1 | 11.4 |
| CE-ARC | CORRECT | 304 | 5.3 | 2 | 22 | 2.3 | 2.0 |
| Method | WW-AG | WW-HC | CE | TE-Cap | TE-Mag |
|---|---|---|---|---|---|
| GPT-4o | |||||
| All-at-Once | 15.87 | 3.45 | 24.50 | 9.30 | 6.52 |
| Step-by-Step | 22.75 | 18.39 | 59.29 | 18.60 | 19.57 |
| Binary Search | 28.57 | 4.60 | 18.44 | 9.30 | 6.52 |
| CORRECT | 15.87 | 4.60 | 37.09 | 10.85 | 10.14 |
| CHIEF | 24.34 | 11.49 | 42.10 | 14.73 | 13.77 |
| Fitting (s/fit) | Embedding extraction (s/forward pass) | CPU scoring (ms/trajectory) | ||||
| Method | WW-AG | WW-HC | WW-AG | WW-HC | WW-AG | WW-HC |
| OAT | 51.10 | 51.10 | 0.42 | 2.13 | 2.4 | 10.4 |
| StepFinder | 51.79 | 115.43 | 0.23 | 0.19 | 1.8 | 5.0 |
| Soap | 0.08 | 0.29 | 0.38 | 0.76 | 0.7 | 5.5 |
| Method | AG | HC |
|---|---|---|
| All-at-Once | 2.0 | 2.1 |
| Step-by-Step | 2.0 | 3.6 |
| Binary Search | 0.2 | 0.4 |
| CORRECT | 1.9 | 1.6 |
| CHIEF | 23.9 | 23.5 |
| ErrorProbe | 5.9 | 6.5 |
| Backbone | Subset | all | |||||
|---|---|---|---|---|---|---|---|
| Qwen3.5-9B | WW-AG | 47.62 | 41.80 | 40.74 | 40.21 | 40.21 | 40.21 |
| WW-HC | 33.33 | 34.48 | 32.18 | 32.18 | 32.18 | 32.18 | |
| TE-Cap | 28.68 | 29.46 | 34.88 | 34.88 | 35.66 | 34.88 | |
| TE-Mag | 15.94 | 20.29 | 18.84 | 23.19 | 18.84 | 18.12 | |
| DeepSeek-8B | WW-AG | 45.50 | 38.62 | 33.33 | 34.39 | 37.57 | 37.57 |
| WW-HC | 28.74 | 28.74 | 28.74 | 28.74 | 28.74 | 28.74 |
| Qwen3.5-9B | DeepSeek-8B | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Pooling | Method | WW-AG | WW-HC | TE-Cap | TE-Mag | WW-AG | WW-HC | TE-Cap | TE-Mag |
| Last token | Base | 29.10 | 22.99 | 24.03 | 21.01 | 29.10 | 22.99 | 24.81 | 24.64 |
| Soap | 29.63 | 24.14 | 25.58 | 23.19 | 30.69 | 22.99 | 24.81 | 26.09 | |
| Mean (Ours) | Base | 39.15 | 33.33 | 33.33 | 21.01 | 38.62 | 28.74 | 40.31 | 29.71 |
| Soap | 47.62 | 34.48 | 35.66 | 23.19 | 45.50 | 28.74 | 42.64 | 30.43 | |
| Reference data | WW-AG | WW-HC | TE-Cap | TE-Mag |
|---|---|---|---|---|
| Qwen3.5-9B | ||||
| 10% | 43.39 | 33.33 | 34.88 | 23.19 |
| 20% | 44.44 | 33.33 | 34.88 | 23.19 |
| 30% | 47.62 | 34.48 | 35.66 | 23.19 |
| DeepSeek-R1-Distill-Llama-8B | ||||
| 10% | 37.04 | 29.89 | 41.86 | 31.88 |
| WW-AG | WW-HC | TE-Cap | TE-Mag | |
|---|---|---|---|---|
| Qwen3.5-9B | ||||
| Longest step | 19.05 | 19.54 | 10.08 | 11.59 |
| Shortest step | 0.53 | 0.00 | 4.65 | 2.90 |
| Random | 12.10 | 5.08 | 8.58 | 5.16 |
| Unit-norm, anchor band | 35.45 | 16.09 | 24.81 | 16.67 |
| Unit-norm, re-selected | 35.45 | 22.99 | 30.23 | 23.19 |
| Reference | WW-AG | WW-HC |
|---|---|---|
| Qwen3.5-9B | ||
| Random basis | 33.33 | 25.29 |
| MCP-Atlas successes | 38.10 | 28.74 |
| MCP-Atlas failures | 42.86 | 28.74 |
| Steps before † | 36.51 | 33.33 |
| Random subset † | 39.68 | 33.33 |
| WW-AG | WW-HC | TE-Cap | TE-Mag | |
|---|---|---|---|---|
| Qwen3.5-9B | ||||
| Probe | 43.92 | 20.69 | 18.60 | 17.39 |
| Soap | 47.62 | 34.48 | 35.66 | 23.19 |
| DeepSeek-R1-Distill-Llama-8B | ||||
| Probe | 35.45 | 19.54 | 20.93 | 20.29 |
| Soap | 45.50 | 28.74 | 42.64 | 30.43 |
| Method | WW-AG | WW-HC |
|---|---|---|
| GPT-4o | ||
| All-at-Once | 53.44 | 59.77 |
| Step-by-Step | 30.16 | 49.43 |
| Binary Search | 58.73 | 12.64 |
| CORRECT | 54.50 | 54.02 |
| CHIEF | 40.21 | 48.28 |
| Method | WW-AG | WW-HC | CE | TE-Cap | TE-Mag |
|---|---|---|---|---|---|
| GPT-4o | |||||
| All-at-Once | |||||
| Step-by-Step | |||||
| Binary Search | |||||
| CORRECT | |||||
| CHIEF | |||||
| WW-AG | WW-HC | CE | TE-Cap | TE-Mag | MRR | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | @1 | @3 | @5 | @1 | @3 | @5 | @1 | @3 | @5 | @1 | @3 | @5 | @1 | @3 | @5 | WW-AG |
| Qwen3.5-9B | ||||||||||||||||
| OAT | 16.72 | 56.72 | 86.46 | 10.11 | 25.75 | 38.39 | 56.50 | 74.60 | 82.18 | 15.35 | 53.02 | 73.80 | 18.84 | 32.17 | 40.29 | 41.46 |
| StepFinder | 15.87 | 55.24 | 75.87 | 13.33 | 29.66 | 34.48 | 30.03 | 59.04 | 68.58 | 18.29 | 37.21 | 50.70 | 6.67 | 17.10 | 28.12 | 41.23 |
| Soap | 47.62 | 74.60 | 91.01 | 34.48 | 42.53 | 50.57 | 61.78 | 79.61 | 85.74 | 35.66 | 63.57 | 75.97 | 23.19 | 32.61 | 42.75 | 63.92 |
| DeepSeek-R1-Distill-Llama-8B | ||||||||||||||||
| Method | WW-AG | WW-HC | TE-Cap | TE-Mag |
|---|---|---|---|---|
| Without GT | ||||
| All-at-Once | 18.52 | 4.60 | 10.85 | 10.87 |
| Step-by-Step | 24.34 | 18.39 | 17.83 | 6.52 |
| Binary Search | 41.80 | 21.84 | 24.03 | 20.29 |
| CORRECT | 24.87 | 13.79 | 20.93 | 23.91 |
| CHIEF | 27.51 | 25.29 | 22.48 | 16.67 |
| Subset | Method | Qwen3.5-9B | Qwen3-14B | Qwen3.5-27B |
|---|---|---|---|---|
| WW-AG | OAT | |||
| StepFinder | ||||
| Soap | ||||
| WW-HC | OAT | |||
| StepFinder | ||||
| Soap |
| Reference | WW-AG | WW-HC |
|---|---|---|
| Existing benchmarks | 45.50 | 28.74 |
| Synthetic, Qwen3.5-9B | 39.68 | 29.89 |
| Synthetic, GPT-4o | 38.10 | 25.29 |