A Survey for LLM Agent Trajectory Analysis: From Failure Attribution to Enhancement
State Key Laboratory of Intelligent Game, Institute of Software Chinese Academy of Sciences(中国科学院软件研究所 智能游戏国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Singapore Management University(新加坡管理大学);Technical University of Munich(慕尼黑工业大学)
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.
Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems
Pennsylvania State University(宾夕法尼亚州立大学);Duke University(杜克大学);University of Washington(华盛顿大学);Oregon State University(俄勒冈州立大学);Google DeepMind(谷歌DeepMind);Nanyang Technological University(南洋理工大学);Meta;AG2AI, Inc.(AG2AI公司)
Dual-Axis Policy Optimization for LLM Agents: Bayesian Feedback Attribution and Trajectory Mass Normalization
Zhejiang University(浙江大学);University of Science and Technology of China(中国科学技术大学);University of New South Wales(新南威尔士大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)
Diagnosing Failures in Large Language Models' Answers: Integrating Error Attribution into Evaluation Framework
Tencent(腾讯);Tsinghua University(清华大学);University of the Chinese Academy of Sciences(中国科学院大学);Huazhong University of Science and Technology(华中科技大学);Guangdong University of Foreign Studies(广东外语外贸大学);Southeast University(东南大学)
KG-TRACES: Enhancing Large Language Models with Knowledge Graph-constrained Trajectory Reasoning and Attribution Supervision
Zhejiang University(浙江大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);University of Science and Technology of China(中国科学技术大学);Fudan University(复旦大学)
TRACE: Trajectory Return Attribution and Contrastive Erasure for Multi-Turn Safety
King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);University of Macau(澳门大学);RIKEN Center for Advanced Intelligence Project(理化学研究所先进智能研究中心);University of Electronic Science and Technology of China(电子科技大学)
LongSearchEval: Evaluating Long-Horizon Web Search Capabilities of Large Language Models via a Trajectory-Aware Agent Framework with Failure-Node Localization
College of Information Science and Engineering, Northeastern University(东北大学信息科学与工程学院);School of Computer Science and Engineering, Northeastern University(东北大学计算机科学与工程学院)
When Experience Becomes Instruction: Trajectory Poisoning in Self-Evolving Agent Skill Systems
Ant Group(蚂蚁集团);Zhejiang University(浙江大学);Tsinghua University(清华大学);Hangzhou Dianzi University(杭州电子科技大学);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Xi’an Jiaotong University(西安交通大学)
MathaMAGICal: Validating Trajectory Data Attribution During Capability Acquisition
Algoverse AI Research(Algoverse人工智能研究院);University of California, Los Angeles(加利福尼亚大学洛杉矶分校);Fraunhofer Heinrich Hertz Institute(弗劳恩霍夫海因里希·赫兹研究所);Technische Universität Berlin(柏林工业大学);Georgia Institute of Technology(佐治亚理工学院)
SHE: Trajectory-driven Safety Harness Evolution for LLM Agents
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Fudan University(复旦大学);Shanghai Jiao Tong University(上海交通大学);The Hong Kong University of Science and Technology(香港科技大学)
DCFA: Dual-view Causal-inspired Attribution for Failure Reasoning in LLM-based Multi-agent Systems
College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部);School of New Media and Communication, Tianjin University(天津大学新媒体与传播学院);College of Computer Science and Artificial Intelligence, Fudan University(复旦大学计算机科学技术与人工智能学院)