TL;DR
This paper introduces automated failure attribution for Large Language Model (LLM) multi-agent systems—the task of automatically identifying which agent made a mistake and exactly when it happened. To enable this, the authors release the Who&When dataset and demonstrate that while current models can identify the "guilty" agent about half the time, pinpointing the exact error step remains a significant challenge even for state-of-the-art reasoning models.
What Problem Does This Paper Address?
As LLM-based multi-agent systems (MAS) grow in complexity, they inevitably fail. Currently, debugging these systems is a grueling, manual process. A developer must sift through massive execution logs, understand the logic of multiple interacting agents, and determine the "decisive error"—the earliest mistake that fundamentally derailed the task.
The authors identify a massive gap: we have benchmarks to tell us if a system failed, but we lack automated tools to tell us why and where. This paper formalizes the problem of automated failure attribution, aiming to replace expensive human expertise with LLM-based "judges" that can pinpoint the responsible agent and the specific failure step.
Methods
The researchers formulated the problem as identifying a tuple $(i, t)$, where $i$ is the agent and $t$ is the time step of the decisive error. They evaluated three primary algorithmic strategies for the "LLM Judge":
- All-at-once: The judge receives the entire failure log and is asked to identify the culprit and the step.
- Step-by-step: The judge examines the log incrementally, deciding at each point if a fatal error has occurred.
- Binary Search: A logarithmic approach where the judge narrows down the error location by repeatedly splitting the log in half.
They also tested a Hybrid Method, which uses the "All-at-once" approach to identify the responsible agent first, then uses "Step-by-step" logic only on that agent's actions to find the exact moment of failure.
The Who&When Dataset
To support this research, the authors introduced the Who&When dataset, a specialized benchmark for failure attribution:
- Composition: Contains failure logs from 127 different LLM multi-agent systems.
- Diversity: Includes both algorithm-generated systems and hand-crafted systems (like Microsoft’s Magnetic-One).
- Annotations: 184 distinct failure tasks with fine-grained human annotations detailing the responsible agent, the exact step number, and a natural language explanation.
Key Insights and Ideas
- The Context Trade-off: There is a fundamental tension between "Who" and "When." Identifying the agent (Who) requires a broad, global view of the conversation (best suited for All-at-once), while pinpointing the step (When) requires focused, incremental attention (best suited for Step-by-step) to avoid "needle-in-a-haystack" errors.
- The "Decisive Error" Concept: The paper emphasizes finding the earliest error. In multi-agent systems, one mistake often leads to a "hallucination snowball," where subsequent agents make errors because they are following a flawed premise.
- Reasoning vs. Standard Models: Interestingly, while advanced reasoning models (like OpenAI o1 and DeepSeek R1) improve step-level accuracy, they still fall short of practical usability. Simply "being smarter" isn't enough to solve the structural complexity of multi-agent logs.
Key Results
The evaluation revealed stark contrasts in the difficulty of identifying the agent versus the step.
- Agent-Level Accuracy: The best method (All-at-once) achieved 53.5% accuracy in identifying the responsible agent.
- Step-Level Accuracy: This proved much harder. The best performance was a meager 14.2% (and as low as 8.77% on complex hand-crafted systems).
- Method Ranking:
- For identifying the agent: All-at-once > Binary Search > Step-by-step.
- For identifying the step: Step-by-step > Binary Search > All-at-once.
- The Hybrid Advantage: Combining methods yielded the best overall results, achieving 57.02% agent accuracy and 12.28% step accuracy on hand-crafted systems, though at a higher computational cost.
Limitations and Future Work
- Context Length: Performance degrades sharply as the number of steps increases. Current LLMs struggle with the "long-tail" of multi-agent interactions.
- Subjectivity: Even human experts disagreed on the "decisive error" 15-30% of the time, suggesting that failure attribution may sometimes be inherently subjective.
- Future Directions: The authors suggest developing specialized "Attribution Models" rather than relying on general-purpose LLMs, and exploring how these automated insights can be fed back into the system for self-healing.
Summary updated