Nanyang Technological University
Failure attribution in LLM multi-agent systems via local judgement and posterior inference on trace dependency graphs
Abstract
dc:description.abstractWhen a team of large language model (LLM) agents produces an incorrect answer, identifying which agent made the decisive mistake and at what step is challenging. Execution logs may span hundreds of steps, and errors can propagate, making symptoms appear far from their causes. Existing automated methods typically ask an LLM to inspect the entire log and identify a single error source or agent, without quantifying shared responsibility or distinguishing agents that introduce errors from reviewers that fail to detect them. This dissertation introduces FaultFlow, a training-free fault-localization method inspired by fault diagnosis in control engineering. An LLM evaluates each step using only its inputs, and these local verdicts are propagated through the execution dependency graph—without additional LLM calls—to produce a probability distribution over error origins and separate scores for reviewers' missed detection opportunities. FaultFlow distinguishes propagated symptoms from root causes, distributes responsibility across jointly necessary errors, and accounts for alternative execution paths, where an error in an unused candidate matters only if the selected candidate is also incorrect. The dissertation makes three contributions. First, it develops FaultFlow as a method for localizing errors and allocating responsibility across multi-agent executions. Second, it proves that, under stated repair assumptions, its responsibility distribution equals the Shapley value, a standard cooperative-game-theoretic measure of fair contribution. Third, it evaluates FaultFlow on three public benchmarks and a new text-to-SQL dataset created by injecting errors into real execution traces, enabling ground-truth error origins to be identified. Results show that stepwise diagnosis does not universally outperform whole-log analysis: it performs better in 5 of 12 dataset–judge combinations. However, a simple criterion based on the judge's miss rate, false-alarm rate, and log length predicts the better strategy in 11 of 12 combinations. Explicitly modelling multiple error origins and alternative paths yields the clearest gains. Among 53 failures in which the reporting step introduces an error while the unused candidate also contains one, FaultFlow ranks the true origin first in 100.0% of cases, compared with 0.0% for a single-origin variant. In the two-candidate system, repairing the top-ranked step eliminates 93.2% of failures, compared with 87.1% when the step is selected by an LLM reading the entire log. These findings are limited to one purpose-built domain and one model family.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Jia, Haoxuan
- Advisor dc:contributor.supervisor
-
- Lihui Chen
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/235284