# Tracing Agentic Failure from the Flow of Success

*Samuel, Yiwen Zhu, Shaleen Deep, Sharon Li*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151046) · [OpenReview](https://openreview.net/forum?id=dPFKov09YE) · [Open on the map](../papers.html#p151046)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Agentic Failure Attribution](../pgroup/42.md) · Type: new method · Keywords: failure attribution, LLM agentic systems, unsupervised learning, neural controlled differential equations, anomaly detection

Areas: [LLM Reasoning](../areas/reasoning.md) › Agentic Reasoning › Failure attribution

## Summary
OAT is a lightweight, unsupervised failure attribution method for LLM-based agentic systems that learns from successful trajectories and scores steps in failure trajectories as anomalies.

## Explained to a 5-year-old
A computer program that helps you do things sometimes makes mistakes. We want to know which part of the program caused the mistake. The old ways to find the mistake are either slow or need a lot of extra work. The new idea learns only from the times the program works correctly and then looks for steps that look different when it fails. This makes it possible to find mistakes quickly and without a lot of extra work.

## Explained to a 5-year-old, longer
Imagine a smart computer that helps you do things by following steps. Sometimes it does everything right, and sometimes it makes a mistake. When it makes a mistake, we would like to know which step caused the problem. The old ways to find the problem are either very slow or need a lot of extra work to label each mistake. The new idea only looks at the times the computer works correctly. It learns what a good sequence of steps looks like. When a new failure happens, it checks each step to see if it matches what it learned. Steps that look different get marked as possible errors. This way we can find the bad steps without having to label every mistake beforehand. It also works faster than the old methods. Because it only needs a few good examples, it can be used even when we have very little data. This makes it easier to fix the computer program and keep it working well.

## For a technical reader
The system learns a compact model of normal behavior from successful interaction traces using neural controlled differential equations. At runtime, each step of a failing trace is scored for deviation from this model, flagging likely error points without any labeled failure data. This one-class learning approach eliminates the need for costly prompting or annotation pipelines. It runs orders of magnitude faster than existing prompting-based attribution methods while delivering higher F1 scores on both in-domain and out-of-distribution evaluations.

## Problem
Identifying which steps in a failure trajectory caused an LLM-based agentic system to fail is challenging, as existing solutions either require expensive prompting pipelines or costly step-level error annotations. This makes debugging and improving such systems difficult and not scalable.

## Method
The approach casts failure attribution as an unsupervised one-class learning problem, using neural controlled differential equations to model the dynamical patterns of successful trajectories in latent space. At inference, each step of a failure trajectory is evaluated for deviation from this learned dynamics and assigned an anomaly score to identify error steps.

## Results
The approach achieves 200-5000× speedup over prompting baselines and improves F1 scores by +20% in-domain and +7% on out-of-distribution datasets.

## Contributions
The paper introduces an unsupervised failure attribution framework that learns solely from successful trajectories using neural controlled differential equations, enabling lightweight inference and eliminating the need for step-level error annotations. It demonstrates substantial speedups and performance gains over existing prompting-based methods.

## Practical relevance
OAT enables fast, low-resource diagnosis of failures in LLM-based agentic systems, facilitating easier debugging and improvement in production settings.

## Research questions this paper is counted under

- [How can we reliably pinpoint the source and type of failures in multi-agent LLM systems?](../q/176.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151046)
