Tracing Agentic Failure from the Flow of Success
Abstract
Failure attribution for LLM-based agentic systems, i.e., identifying which steps in a failure trajectory caused the task to fail, is critical for debugging and improving these systems. Existing approaches either rely on prompting-based pipelines, which are computationally expensive, or require post-training on failure trajectories with step-level error annotations, which are costly to collect and difficult to scale. We argue that a practical failure attribution model should be lightweight and trainable without step-level supervision on failure data. To this end, we address unsupervised failure attribution, i.e., training exclusively on successful trajectories and identifying error steps at inference time given a failure trajectory. We propose OAT, which casts this problem as one-class learning with neural controlled differential equations, modeling the dynamical pattern of successful trajectories in latent space. At inference time, each step in a failure trajectory is assigned an anomaly score based on its deviation from the dynamics learned on successful trajectories, which is then used to form a set of error steps. With training on only 100 successful trajectories, experiments show that OAT is 200--5000 times faster than prompting-based baselines, and, at the same time, consistently outperforms them in both in-domain and out-of-distribution datasets with +20% and +7% F1 scores, respectively, demonstrating that OAT is a promising and efficient direction for diagnosing agentic system failures.
Community
When an LLM agent fails on a long-horizon task, pinpointing which step caused the failure is hard. Existing approaches either rely on expensive prompting pipelines or require costly step-level annotated failure data to train on.
We introduce unsupervised failure attribution: train a model exclusively on successful trajectories (easy to collect, no annotation needed), then identify error steps in a failed trajectory at inference time.
Our method, OAT (One-class Agent Tracing), models the dynamics of successful trajectories in latent space using Neural Controlled Differential Equations, then flags steps in a failure trajectory that deviate from this learned "normal flow" as anomaly scores. A gated control path improves robustness to out-of-distribution trajectories, and conformal prediction gives a principled, adaptive detection threshold.
With training on just 100 successful trajectories, OAT outperforms prompting-based baselines by +20% F1 in-domain and +7% F1 out-of-distribution, while running 200–5000x faster with zero inference-time token cost.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Hide-and-Seek in Trajectories: Discovering Failure Signals for VLA Runtime Monitoring (2026)
- StepFinder: A Temporal Semantic Framework for Failure Attribution in Multi-Agent Systems (2026)
- TrajAudit: Automated Failure Diagnosis for Agentic Coding Systems (2026)
- FALAT: Tracing Failures in LLM Agent Trajectories via Dependency-Guided Search (2026)
- Who&When Pro: Can LLMs Really Attribute Failures in AI Agents? (2026)
- Who Broke the System? Failure Localization in LLM-Based Multi-Agent Systems (2026)
- CausalFlow: Causal Attribution and Counterfactual Repair for LLM Agent Failures (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2607.12747 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper