From Anomalies to Failures: Constructing Causal Error Graphs for Agentic Trace Diagnosis
cs.AI
Submitted: 2026-09-26
Updated: 2026-09-26
Code: https://github.com/SHU-XUN/CEG-Agent
License: http://creativecommons.org/licenses/by/4.0/
The gist: LLM-driven agents are increasingly deployed in complex applications, where long agentic traces make failures difficult to diagnose.
Terminology
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.
Sources
- Cascading Failure Prediction via Causal Inference
- Causal Explainability of Machine Learning in Heart Failure Prediction from Electronic Health Records
- CodeTracer: Towards Traceable Agent States
- Let's Verify Step by Step
- AgentBench: Evaluating LLMs as Agents
- Self-Refine: Iterative Refinement with Self-Feedback
- CSnake: Detecting Self-Sustaining Cascading Failure via Causal Stitching of Fault Propagations
- Toolformer: Language Models Can Teach Themselves to Use Tools
- Reflexion: Language Agents with Verbal Reinforcement Learning
- BrowseComp: A Simple Yet Challenging Benchmark for Browsing Agents
- StepMathAgent: A Step-Wise Agent for Evaluating Mathematical Processes through Tree-of-Error
- TraceSIR: A Multi-Agent Framework for Structured Analysis and Reporting of Agentic Execution Traces
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena
- WebArena: A Realistic Web Environment for Building Autonomous Agents
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems