A Survey for LLM Agent Trajectory Analysis: From Failure Attribution to Enhancement
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 this https URL.
Additional Features