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

Gui-Min Zhang, Junhao Wang, Junjie Chen, Wangchunshu Zhou, Kun Wang, Shui-Cheng Yan

arXiv:2509.03312 · 2026-11-15 공개 · arXiv · PDF

reinforcement-learning llm-agents multi-agent-systems failure-attribution counterfactual-replay fault-injection agen-tracer tracertraj

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.

한국어 요약

한 줄 요약

AgenTracer-8B는 복잡한 멀티에이전트 시스템의 실패 원인을 정확히 추적하는 데 18.18%의 정확도 개선을 달성한 가벼운 추적 모델이다.

핵심 기여도

핵심 아이디어

기존의 LLM 기반 추론 모델은 멀티에이전트 시스템의 실패 원인 추적(에이전트 실패 속성 분석)에서 정확도가 10% 미만으로 매우 낮았다. 이에 본 연구는 AgenTracer라는 첫 번째 자동화된 실패 트레이잭터리 생성 프레임워크를 제안한다. AgenTracer는 반사적 재생(counterfactual replay)과 프로그래밍된 결함 주입(programmed fault injection)을 통해 실패 트레이잭터리를 생성하고, 이를 기반으로 AgenTracer-8B라는 가벼운 실패 추적 모델을 훈련시킨다. 핵심 통찰은 실패 원인을 정확히 식별하기 위해 대규모 라벨링된 실패 데이터가 필요하다는 점이며, 이를 위해 TracerTraj-2.5K라는 데이터셋을 구축하였다. AgenTracer-8B는 Qwen3-8B를 백본으로 사용하며, 멀티-그레인 강화 학습을 통해 오류 단계를 정확히 위치시킨다.

기술적 접근법

주요 결과

의의 및 한계

AgenTracer와 AgenTracer-8B는 멀티에이전트 시스템의 실패 원인을 자동으로 추적하고, 이를 기반으로 시스템이 스스로 개선할 수 있는 기반을 제공한다. 특히, TracerTraj-2.5K는 실패 트레이잭터리의 대규모 라벨링 데이터 부족 문제를 해결하며, 실패 속성 분석 연구의 새로운 표준을 제시한다. 그러나, AgenTracer는 여전히 실패 원인의 복잡한 상호작용을 완전히 포착하지 못할 수 있으며, 더 다양한 실패 유형에 대한 일반화 능력이 필요하다는 한계가 있다.

실용적 활용

AgenTracer-8B는 MetaGPT, MaAS와 같은 실제 멀티에이전트 시스템에 적용되어 시스템의 자가 수정 및 진화를 가능하게 한다. 데이터 과학, 소프트웨어 엔지니어링, 과학 발견 등 복잡한 다단계 작업이 필요한 산업 및 연구 분야에서 실패 원인을 신속히 식별하고 시스템을 개선하는 데 활용될 수 있다.