A Survey for LLM Agent Trajectory Analysis: From Failure Attribution to Enhancement
arXiv:2612.05702 · doi:10.1109/TSE.2026.3717765
Abstract
Large language model (LLM) agents execute tasks autonomously through natural language reasoning, multi-agent collaboration, and tool integration. Their nondeterministic decisions and complex interactions can obscure the causes of failures in long execution trajectories, complicating diagnosis and repair. This survey reviews trajectory analysis for failure attribution and system enhancement in LLM agents. We examine 55 papers published between early 2025 and April 2026 across software engineering, artificial intelligence, and human-computer interaction. We organize the literature around five dimensions: failure taxonomy, failure attribution, system enhancement and optimization, trajectory monitoring and analysis tools, and datasets and benchmarks. The field has progressed from simple LLM prompting to causal inference, fine-tuned tracer models, and dynamic intervention, but step-level attribution accuracy remains limited and benchmarks still lack diversity. We identify four complementary taxonomic perspectives, four methodological paradigms for attribution, and three families of enhancement strategies. Our assessment of existing benchmarks highlights a shift toward full observability and annotation of unrecoverable failures. We outline how fault localization, program repair, and empirical methods from software engineering can help diagnose failures and improve LLM agents. We maintain a regularly updated collection of papers on LLM agent trajectory analysis at https://github.com/IcyFeather233/Awesome-LLM-Agent-Trajectory-Analysis.
arXiv commentAccepted by TSE 2026
References in corpus (44)
- Automatic Software Repair: a Bibliography
- BestConfig: Tapping the Performance Potential of Systems via Automatic Configuration Tuning
- MetaGPT: Meta Programming for A Multi-Agent Collaborative Framework
- Interactive Debugging and Steering of Multi-Agent AI Systems
- Evaluating Large Language Models at Evaluating Instruction Following
- Large Language Model-Brained GUI Agents: A Survey
- AgentSight: System-Level Observability for AI Agents Using eBPF
- Where LLM Agents Fail and How They can Learn From Failures
- DiLLS: Interactive Diagnosis of LLM-based Multi-agent Systems via Layered Summary of Agent Behaviors
- AgentOps: Enabling Observability of LLM Agents
- AgentRx: Diagnosing AI Agent Failures from Execution Trajectories
- Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills
- Abduct, Act, Predict: Scaffolding Causal Inference for Automated Failure Attribution in Multi-Agent Systems
- Process-Centric Analysis of Agentic Software Systems
- TRAIL: Trace Reasoning and Agentic Issue Localization
- Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems
- Aegis: Taxonomy and Optimizations for Overcoming Agent-Environment Failures in LLM Agents
- A Survey on AgentOps: Categorization, Challenges, and Future Directions
- Beyond Resolution Rates: Behavioral Drivers of Coding Agent Success and Failure
- SEAlign: Alignment Training for Software Engineering Agent
- CodeTracer: Towards Traceable Agent States
- AgentEval: DAG-Structured Step-Level Evaluation for Agentic Workflows with Error Propagation Tracking
- CORRECT: COndensed eRror RECognition via knowledge Transfer in multi-agent systems
- GraphTracer: Graph-Guided Failure Tracing in LLM Agents for Robust Multi-Turn Deep Search
- Failure-Driven Workflow Refinement
- Stop Wasting Your Tokens: Towards Efficient Runtime Multi-Agent Systems
- SCOPE: Prompt Evolution for Enhancing Agent Effectiveness
- Trajectory Guard -- A Lightweight, Sequence-Aware Model for Real-Time Anomaly Detection in Agentic AI
- MAESTRO: Multi-Agent Evaluation Suite for Testing, Reliability, and Observability
- AgentDevel: Reframing Self-Evolving LLM Agents as Release Engineering
- When Agents Fail: A Comprehensive Study of Bugs in LLM Agents with Automated Labeling
- Interpreting Emergent Extreme Events in Multi-Agent Systems
- Where Did It All Go Wrong? A Hierarchical Look into Multi-Agent Error Attribution
- Aegis: Automated Error Generation and Attribution for Multi-Agent Systems
- From Features to Actions: Explainability in Traditional and Agentic AI Systems
- From Flat Logs to Causal Graphs: Hierarchical Failure Attribution for LLM-based Multi-Agent Systems
- Trajectory-Informed Memory Generation for Self-Improving Agent Systems
- ProMAS: Proactive Error Forecasting for Multi-Agent Systems Using Markov Transition Dynamics
- Maestro: Joint Graph & Config Optimization for Reliable AI Agents
- Rethinking Failure Attribution in Multi-Agent Systems: A Multi-Perspective Benchmark and Evaluation
- Beyond Accuracy: Behavioral Dynamics of Agentic Multi-Hunk Repair
- Instruction-Level Weight Shaping: A Framework for Self-Improving AI Agents
- Signals: Trajectory Sampling and Triage for Agentic Interactions
- Automatic Failure Attribution and Critical Step Prediction Method for Multi-Agent Systems Based on Causal Inference