From Anomalies to Failures: Constructing Causal Error Graphs for Agentic Trace Diagnosis
Shu-Xun Yang, Yidong Wang, Zhuoer Feng, Bosi Wen, Jiayi Gui, Dayong Yang, Wenbo Yu, Haoke Zhang, Jie Tang, Cunxiang Wang
Abstract
LLM-driven agents are increasingly deployed in complex applications, where long agentic traces make failures difficult to diagnose. Existing trace diagnosis methods often conflate anomalies, errors, and failures, making diagnostic targets ambiguous; they also lack structured modeling of how causally relevant errors propagate and amplify into final task failures, resulting in unreliable failure attribution. To address these problems, we propose CEG-Agent, a tool-augmented agentic framework for causal diagnosis of agentic traces. Specifically, CEG-Agent introduces an explicit taxonomy of anomalies, errors, and failures, and constructs Causal Error Graphs (CEGs), a unified typed representation that links execution events, diagnostic nodes, and failure outcomes through causal relations. To evaluate causal trace diagnosis, we further construct CEG-Bench, a fully agent-annotated benchmark with high-confidence, consensus-derived CEG annotations obtained through an Adversarial Agentic Adjudication Protocol (AAAP). We validate the resulting annotations against an expert-curated human gold set, which shows close agreement with the automatic annotations. Experiments on CEG-Bench demonstrate that CEG-Agent achieves state-of-the-art performance under both semantically relaxed and structurally exact evaluation criteria. Our code is publicly available.
Create a lesson
Related papers
RoutePrism: Tracing Construction Order Effects in Agent Memory
Shared title terminologycs.AIDong Xu, Zhangfan Yang, Jiantao Wu et al.
Constructive Causal Abstraction and a Case Study in Mechanistic Interpretability
Shared title terminologycs.AIYuchen Zhu, Sergio Hernan Garrido Mejia, Dominik Janzing
Transport-Safe Evaluation of LLM Agents: Trajectory-Dependent Judge Error and Anytime-Valid Auditing
Shared title terminologycs.AIYulliwas Ameur, Samia Bouzefrane, Soumya Banerjee
Beyond the Black Box: A Diagnosis-Driven Agent for Interpretable MIP Solver Tuning
Shared title terminologycs.AIYidong Luo, Weihuang Wen, Xuanhao Pan et al.
Same Winners, Different Success Rates: Evaluating How LLM Agents Recover from Failures
Shared title terminologycs.AIDong Xu, Zhangfan Yang, Jiantao Wu et al.
Temporal Graph Learning of Wearable Actigraphy and Sleep Traces for Modelling Adolescent Crystallized Intelligence
Shared title terminologycs.AIMd. Tanvir Rahman, Nabil Anan Orka, Asaduzzaman Khan et al.