NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?

Guibin Zhang, Junhao Wang, Junjie Chen, Wangchunshu Zhou, Kun Wang, Shuicheng Yan · OpenReview

Abstract

Large Language Model (LLM)-based agentic systems, often comprising multiple models, complex tool invocations, and orchestration protocols, substantially outperform monolithic agents. Yet this very sophistication amplifies their fragility, making them more prone to system failure. Pinpointing the specific agent or step responsible for an error within long execution traces defines the task of agentic system failure attribution. Current state-of-the-art reasoning LLMs, however, remain strikingly inadequate for this challenge, with accuracy generally below 10%. To address this gap, we propose AgenTracer, the first automated framework for annotating failed multi-agent trajectories via counterfactual replay and programmed fault injection, producing the curated dataset TracerTraj. Leveraging this resource, we develop AgenTracer-8B, a lightweight failure tracer trained with multi-granular reinforcement learning, capable of efficiently diagnosing errors in verbose multi-agent interactions. On the Who&When benchmark, AgenTracer-8B outperforms giant proprietary LLMs like Gemini-2.5-Pro and Claude-4-Sonnet by up to 18.18%, setting a new standard in LLM agentic failure attribution. More importantly, AgenTracer-8B delivers actionable feedback to off-the-shelf multi-agent systems like MetaGPT and MaAS with 4.8-14.2% performance gains, empowering self-correcting and self-evolving agentic AI.

Introduction

As AI development shifts from monolithic LLMs to complex "agentic systems"—where multiple models, tools, and orchestrators collaborate—system complexity has skyrocketed. While these systems can tackle more sophisticated tasks, they are notoriously fragile. A primary challenge is the "cascading failure": a minor error by a "Web Surfer" agent in an early step may not manifest as a visible system failure until a "Coder" agent encounters an error many steps later.

Identifying the "decisive error"—the earliest action that, if corrected, would lead to success—is critical for debugging and self-correction. However, current reasoning models like GPT-4 or DeepSeek-R1 struggle with this attribution task, often failing to identify the root cause in long, verbose execution traces.

The AgenTracer Framework

To solve the failure attribution problem, we developed a two-part solution consisting of an automated data generation pipeline and a specialized tracer model.

1. Automated Annotation Pipeline

Creating high-fidelity failure datasets manually is prohibitively expensive. AgenTracer utilizes two automated techniques to build the TracerTraj-2.5K dataset:

  • Counterfactual Replay: For failed trajectories, an analyzer agent proposes a fix for a specific step. The system then re-runs the trajectory from that point. If the system succeeds, that step is confirmed as the "decisive error."
  • Programmatic Fault Injection: Successful trajectories are intentionally corrupted (e.g., modifying a tool call or code snippet) to induce failure, creating a "known-cause" error pair for training.

2. AgenTracer-8B Model

We fine-tuned a Qwen3-8B model using Multi-Granular Reinforcement Learning (RL). We employed a variant of Group Relative Policy Optimization (GRPO) with a specialized reward structure:

  • Agent-Level Reward: A binary score for correctly identifying the faulty agent.
  • Step-Level Reward: A "smooth" reward using a Gaussian kernel. This provides partial credit for identifying steps temporally close to the actual error, helping the model learn the logical flow of long traces.

Experimental Results

Performance on Benchmarks

AgenTracer-8B was evaluated against proprietary giants on the Who&When benchmark and the new TracerTraj dataset. Despite its smaller size, the specialized 8B model consistently outperformed models 50x its size.

Performance on the Who&When benchmark (handcrafted; step-level) shows AgenTracer-8B significantly outperforming proprietary models like Gemini-2.5-Pro and Claude-4-Sonnet.

In the TracerTraj-Code domain, AgenTracer-8B demonstrated superior diagnostic accuracy at the agent level, proving that training on the structure of agent interactions is more effective than general-purpose reasoning for this specific task.

AgenTracer-8B achieves the highest accuracy on the TracerTraj-Code (agent-level) dataset compared to state-of-the-art baselines.

Key Insights

  • Root Cause Focus: The model successfully learns to ignore "suboptimal" noise and focus on the pivot point of failure.
  • Robustness: In "black-box" scenarios where ground truth solutions are unavailable—the most realistic debugging environment—AgenTracer remained robust while other models' diagnostic abilities plummeted.
  • Actionable Feedback: When integrated as a "critic" into existing frameworks like MetaGPT or MaAS, AgenTracer-8B provided feedback that led to performance improvements of 4.8% to 14.2%.

Conclusion

AgenTracer-8B demonstrates that specialized, lightweight models can outperform general-purpose giants in complex system diagnostics. By providing a reliable way to attribute failures in multi-agent systems, this work paves the way for "self-evolving" agentic AI that can autonomously identify weaknesses and refine its own performance over time.

Summary updated

BibTeX
@inproceedings{zhang2026agentracer,
  author = {Guibin Zhang and Junhao Wang and Junjie Chen and Wangchunshu Zhou and Kun Wang and Shuicheng Yan},
  title = {{AgenTracer: Who Is Inducing Failure in the LLM Agentic Systems?}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=l05DseqvuD},
}
Figure