# AgenTracer-v2: Agentic Failure Tracer for LLM Agentic Systems

*Guibin Zhang, Haoyu Lu, Junhao Wang, He Zhu, Kun Wang, Wangchunshu Zhou, Shuicheng Yan*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153890) · [Open on the map](../papers.html#p153890)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Agentic Failure Attribution](../pgroup/42.md) · Type: new method · Keywords: agentic failure attribution, LLM debugging, diagnostic tools, failure trajectory analysis, autonomous attribution agent

Areas: [LLM Reasoning](../areas/reasoning.md) › Agentic Reasoning › Failure attribution; [AI Agents](../areas/agents.md) › Agent Robustness › Agent Failure Attribution

## Summary
AgenTracer-v2 is an autonomous, multi-hop failure attribution agent that actively diagnoses failures in LLM agentic systems using a framework-agnostic data synthesis engine and diagnostic tools, achieving up to 21.83% higher attribution accuracy than existing methods.

## Explained to a 5-year-old
Imagine a robot that helps you solve puzzles. Sometimes the robot makes mistakes, and we want to know which step caused the problem. This new tool watches the robot's steps and asks questions to find the bad part. It learns from many examples of mistakes and can tell you why things went wrong, even in very long sequences of steps.

## Explained to a 5-year-old, longer
LLM-powered agents are like digital helpers that can do many tasks by themselves. They work on long sequences of steps, like a story with many pages. Sometimes these helpers make mistakes, and we need to know which part caused the problem. Existing tools just look at the whole story at once, which can be hard when the story is very long. The new system is like a detective that can ask questions and explore the story step by step. It creates its own practice examples by simulating failures and recording what went wrong. Using these examples, it learns to spot the exact step that caused a mistake. It can summarize the big picture quickly and then look closely at specific parts. It also checks outside influences to understand the whole context. The system works even when the story is extremely long, with hundreds of thousands of words. It helps improve the agents by giving them feedback on what they did wrong. In the end, it makes the digital helpers more reliable and easier to fix.

## For a technical reader
The system builds a synthetic dataset of failure traces using deterministic rollbacks, then trains an autonomous agent to summarize, inspect, and explore those traces efficiently. It integrates diagnostic tools to pinpoint the exact step causing a failure, outperforming proprietary models on attribution accuracy. The approach scales to ultra-long trajectories and provides feedback that improves downstream agent training. Engineers can adopt this pipeline to debug complex LLM-based agents without extensive manual labeling.

## Problem
Identifying the specific agent or execution step that causes failures in long, complex task traces is challenging because existing methods rely on passive analysis of entire trajectories, which is ineffective for ultra-long and dynamically evolving traces.

## Method
The approach creates a framework-agnostic data synthesis engine that generates an 8K dataset of annotated failure trajectories via deterministic rollback, then trains an autonomous multi-hop attribution agent to perform token-efficient summarization, inward inspection, and outward exploration using diagnostic tools.

## Results
The approach achieves up to 21.83% higher attribution accuracy than proprietary models and prior tracers, maintains robust performance on ultra-long trajectories exceeding 300K tokens, and provides corrective feedback that improves downstream agentic systems and multi-LLM reinforcement training.

## Contributions
It introduces an autonomous multi-hop failure attribution agent that actively diagnoses failures using diagnostic tools, a framework-agnostic data synthesis engine that generates a large annotated failure trajectory dataset, and demonstrates superior accuracy and scalability on long trajectories.

## Practical relevance
It enables more reliable and debuggable LLM agentic systems by pinpointing failures quickly, facilitating better training and deployment in real-world applications.

## Research questions this paper is counted under

- [How can we model the underlying structure of long, unstructured execution traces for analysis and prediction?](../q/358.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/153890)
