LLM failure steps found without labels using attention guided scoring
Can Failed Trajectories Reveal Where Agents Go Wrong? Agentic Failure Attribution Without Step-Level Labels
Summary
Figuring out exactly where a large language model (LLM) agent goes wrong in a task is hard because it usually needs detailed labels for every step or examples of when things succeed. This paper introduces SOAP, a method that can find the key mistake step in a failed attempt without any step-by-step labels or relying on successful examples. SOAP uses the LLM’s internal attention information and patterns in the model’s output to trace back errors to their likely source, even if mistakes appear later due to earlier errors. The authors show through extensive testing that SOAP performs better than other methods at pinpointing these failure points.
What this means in practice
- •For ai development teams: Identify exact failure points in language model agent runs without needing detailed annotations or success examples to debug complex tasks.
- •For software quality assurance teams: Improve troubleshooting workflows by automatically locating root causes of failures in multi-step automated processes powered by LLMs.