Explaining Why AI Agents Fail — Trace-Based Diagnosis for Document Assistants
| Type | Status | Published | Supervisors | |
| MA, MAP | Open | 26 November 2026 | Nasim Nezhadsistani |
nezhadsistani@ifi.uzh.ch |
AI agents now carry out multi-step tasks for users: searching documents, comparing sources and calculating results. When an agent gets the final answer wrong, a single pass/fail score says little about where or why it went wrong. Benchmarks such as AgentBench showed the importance of evaluating agents across multi-step interaction, testing 29 language models in eight environments [1]. AgentBoard added a progress-rate metric that credits partial success within a task [2]. Cemri et al. analysed over 150 tasks across five multi-agent frameworks and identified 14 distinct failure modes [3]. Function-calling benchmarks such as the Berkeley Function Calling Leaderboard check whether individual tool calls are correct [4]. What is still missing is a method that pinpoints the first step that caused a failure and explains it with evidence.
In this project you will:
- build a small document assistant with read-only search, document lookup and calculator tools, and record every step it takes as a structured trace;
- create a benchmark of 150–250 tasks: direct lookups, comparisons across sources, simple calculations, ambiguous questions, and questions with no answer in the documents. Controlled errors such as wrong document selection or an arithmetic mistake are injected so the faulty step is known;
- develop a hybrid diagnostic evaluator that combines rule-based checks, evidence verification and an LLM judge. It names the failure type, points to the step that caused it, and gives an explanation that cites the trace;
- compare it with simpler approaches, such as outcome-only scoring or a single LLM judge, and test it on a second model and an unseen document collection;
- build a visual trace explorer for reviewing failures and comparing agent versions.
All tasks use public or synthetic documents with no actions on external systems.
You will learn: LLM agents and tool use, evaluation methodology, failure analysis, observability (OpenTelemetry), and statistical comparison of evaluators.
Prerequisites: Python, experience with LLM APIs, data validation, basic information retrieval. A modest GPU or API budget is enough.
Key terms
- AI agent: a language model that solves a task in several steps, deciding which tools to call (search, read, calculate) and using the results.
- Trace: a structured record of every step an agent takes: which tool it called, with what arguments, what came back, and what evidence it used.
- First consequential error: the earliest step that caused the final answer to be wrong. Later mistakes are often just consequences of it.
- Failure taxonomy: a fixed list of error types used to label failures consistently, such as missing retrieval, wrong document, invalid tool arguments, arithmetic mistake or unsupported conclusion [3].
- Progress rate: a score for how much of a multi-step task the agent completed correctly, not just whether it finished [2].
- Evidence verification: checking that each claim in an answer is actually supported by the document passage the agent cited.
- LLM judge: a language model used to evaluate another model's output. It is useful, but its judgements need checking against human reviewers.
- Abstention: the agent correctly declines to answer when the documents do not contain enough evidence.
- Regression testing: re-running the same tasks on a new agent version to check that nothing that worked before has broken.
References
- Liu, X. et al. (2024). AgentBench: Evaluating LLMs as Agents. ICLR 2024.
- Ma, C. et al. (2024). AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agents. NeurIPS 2024.
- Cemri, M. et al. (2025). Why Do Multi-Agent LLM Systems Fail? NeurIPS 2025.
- UC Berkeley. Berkeley Function Calling Leaderboard.
Prerequisites
| Area | Requirements |
|---|---|
| Programming | Good Python programming skills and familiarity with Git and GitHub. |
| Machine Learning | Fundamental knowledge of machine learning, neural networks, and model evaluation. |
| LLMs | Basic understanding of Transformers, and Large Language Models. |
| Software Development | Ability to design and implement modular Python applications and work with existing open-source repositories. |
| Research Skills | Ability to read scientific papers, reproduce experimental results, analyze findings, and write technical documentation in English. |