A Survey for LLM Agent Trajectory Analysis: From Failure Attribution to Enhancement
Junjie Wang, Yawen Wang, Mengzhuo Chen, Xiaofei Xie, Chunyang Chen, Fangwen Mu, Zhe Liu, Qing Wang
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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.CL, cs.LG
- Journal
- IEEE Transactions on Software Engineering, vol. 52, no. 11, pp. 3406-3426, 2026
- Comments
- Accepted by TSE 2026
Related papers
StageGate-RSI: Stage-Decoupled Attribution and Statistically Gated Recursive Self-Improvement for Agentic Vulnerability Discovery
Shared title terminologycs.AIJingyang Lu, Jingwei Zhang, Jialin Yu et al.
ESTA-Mem: Compiling Multi-Agent Trajectories into Auditable Memory for High-Resolution Visual Reasoning
Shared title terminologycs.AIZiwei Yan, Yunkai Dang, Tianyu Ding et al.
CADAgentBench: Benchmarking LLM Agents on End-to-End Mechanical Engineering Workflows
Shared title terminologycs.AIJiale Liu, Guanguan Ke, Shaokun Zhang et al.
Cheap Date? Measuring The Cost of Agentic AI Romance Scam
Shared title terminologycs.AIJohn Francis, Jonathan Bright, John D Gallacher
RLVR Makes Agents Win More, but Not Necessarily Reason More Reliably
Shared title terminologycs.AIWenhao Lu, Josua Spisak, Jae Hee Lee et al.
TraceMetis: Towards Agent Comprehensibility
Shared title terminologycs.AIZhao Zhang, Chao Peng, Peijie Dong et al.