Research

Which Agent Causes Task Failures and When?Researchers from PSU and Duke explores automated failure attribution of LLM Multi-Agent Systems

In recent years, LLM Multi-Agent systems have garnered widespread attention for their collaborative approach to solving complex problems. However, it's a common scenario for these systems to fail at a task despite a flurry of activity.

Share My Research is Synced’s column that welcomes scholars to share their own research breakthroughs with over 1.5M global AI enthusiasts. Beyond technological advances, Share My Research also calls for interesting stories behind the research and exciting research ideas. Contact us: chain.zhang@jiqizhixin.com

Meet the authors
Institutions: Penn State University, Duke University, Google DeepMind, University of Washington, Meta, Nanyang Technological University, and Oregon State University. The co-first authors are Shaokun Zhang of Penn State University and Ming Yin of Duke University.

In recent years, LLM Multi-Agent systems have garnered widespread attention for their collaborative approach to solving complex problems. However, it’s a common scenario for these systems to fail at a task despite a flurry of activity. This leaves developers with a critical question: which agent, at what point, was responsible for the failure? Sifting through vast interaction logs to pinpoint the root cause feels like finding a needle in a haystack—a time-consuming and labor-intensive effort.
 
This is a familiar frustration for developers. In increasingly complex Multi-Agent systems, failures are not only common but also incredibly difficult to diagnose due to the autonomous nature of agent collaboration and long information chains. Without a way to quickly identify the source of a failure, system iteration and optimization grind to a halt.
 
To address this challenge, researchers from Penn State University and Duke University, in collaboration with institutions including Google DeepMind, have introduced the novel research problem of “Automated Failure Attribution.” They have constructed the first benchmark dataset for this task, Who&When, and have developed and evaluated several automated attribution methods. This work not only highlights the complexity of the task but also paves a new path toward enhancing the reliability of LLM Multi-Agent systems.


The paper has been accepted as a Spotlight presentation at the top-tier machine learning conference, ICML 2025, and the code and dataset are now fully open-source.

Paper:https://arxiv.org/pdf/2505.00212
Code:https://github.com/mingyin1/Agents_Failure_Attribution
Dataset:https://huggingface.co/datasets/Kevin355/Who_and_When
 
 
Research Background and Challenges
LLM-driven Multi-Agent systems have demonstrated immense potential across many domains. However, these systems are fragile; errors by a single agent, misunderstandings between agents, or mistakes in information transmission can lead to the failure of the entire task.

Currently, when a system fails, developers are often left with manual and inefficient methods for debugging:
Manual Log Archaeology : Developers must manually review lengthy interaction logs to find the source of the problem.
Reliance on Expertise : The debugging process is highly dependent on the developer’s deep understanding of the system and the task at hand.
 
This “needle in a haystack” approach to debugging is not only inefficient but also severely hinders rapid system iteration and the improvement of system reliability. There is an urgent need for an automated, systematic method to pinpoint the cause of failures, effectively bridging the gap between “evaluation results” and “system improvement.”

Core Contributions
This paper makes several groundbreaking contributions to address the challenges above:
1. Defining a New Problem: The paper is the first to formalize “automated failure attribution” as a specific research task. This task is defined by identifying the failure-responsible agent and the decisive error step that led to the task’s failure.
2. Constructing the First Benchmark Dataset: Who&When : This dataset includes a wide range of failure logs collected from 127 LLM Multi-Agent systems, which were either algorithmically generated or hand-crafted by experts to ensure realism and diversity. Each failure log is accompanied by fine-grained human annotations for:
Who: The agent responsible for the failure.
When: The specific interaction step where the decisive error occurred.
Why: A natural language explanation of the cause of the failure.

3. Exploring Initial “Automated Attribution” Methods : Using the Who&When dataset, the paper designs and assesses three distinct methods for automated failure attribution:
– All-at-Once: This method provides the LLM with the user query and the complete failure log, asking it to identify the responsible agent and the decisive error step in a single pass. While cost-effective, it may struggle to pinpoint precise errors in long contexts.
– Step-by-Step: This approach mimics manual debugging by having the LLM review the interaction log sequentially, making a judgment at each step until the error is found. It is more precise at locating the error step but incurs higher costs and risks accumulating errors.
– Binary Search: A compromise between the first two methods, this strategy repeatedly divides the log in half, using the LLM to determine which segment contains the error. It then recursively searches the identified segment, offering a balance of cost and performance.


Experimental Results and Key Findings 
Experiments were conducted in two settings: one where the LLM knows the ground truth answer to the problem the Multi-Agent system is trying to solve (With Ground Truth) and one where it does not (Without Ground Truth). The primary model used was GPT-4o, though other models were also tested. The systematic evaluation of these methods on the Who&When dataset yielded several important insights:
– A Long Way to Go: Current methods are far from perfect. Even the best-performing single method achieved an accuracy of only about 53.5% in identifying the responsible agent and a mere 14.2% in pinpointing the exact error step. Some methods performed even worse than random guessing, underscoring the difficulty of the task.
– No “All-in-One” Solution: Different methods excel at different aspects of the problem. The All-at-Once method is better at identifying “Who,” while the Step-by-Step method is more effective at determining “When.” The Binary Search method provides a middle-ground performance.
 


– Hybrid Approaches Show Promise but at a High Cost: The researchers found that combining different methods, such as using the All-at-Once approach to identify a potential agent and then applying the Step-by-Step method to find the error, can improve overall performance. However, this comes with a significant increase in computational cost.

– State-of-the-Art Models Struggle: Surprisingly, even the most advanced reasoning models, like OpenAI o1 and DeepSeek R1, find this task challenging.- This highlights the inherent difficulty of automated failure attribution, which demands a higher level of reasoning than what is required for more conventional tasks.
– The Importance of Explicit Reasoning: Providing explicit prompts that require the LLM to explain its reasoning in the All-at-Once and Step-by-Step methods was shown to improve performance.


– Context Length is a Limiting Factor: The study also revealed that as the context length of the failure logs increases, the performance of all attribution methods tends to decrease, with a more pronounced impact on the accuracy of identifying the error step.
– Future Outlook: Paving the Way for More Reliable Multi-Agent Systems
“Automated failure attribution” is a crucial component in the development lifecycle of Multi-Agent systems. It has the potential to transform the challenge of identifying “what went wrong and who is to blame” from a perplexing mystery into a quantifiable and analyzable problem. By building a bridge between evaluation and improvement, we can ultimately create Multi-Agent systems that are more reliable, intelligent, and trustworthy.
 
 
 
 
 
 

About Synced

Machine Intelligence | Technology & Industry | Information & Analysis

312 comments on “Which Agent Causes Task Failures and When?Researchers from PSU and Duke explores automated failure attribution of LLM Multi-Agent Systems”

  1. Typing “realistic photo of a woman in a cafe” into H3 Image works, but it usually looks staged. What helped in our tests was saying who took the photo, adding small flaws like a tilt or a bit of motion blur, and ruling out studio light.

    h3image.com https://h3image.com/ has prompts like that for the styles people are testing: candid phone photos, character reference sheets with labeled expressions, knolling flat-lays and exploded product views. Each one is shown with its unedited result, and you can paste it straight into the generator.

  2. This tip about adding imperfections like tilt or motion blur to get more natural AI photos is spot-on—exactly the kind of practical detail I needed. For similar hands-on creative resources, jam bus sandfall comes to mind as a helpful reference.

  3. Automated failure attribution addresses a real pain point — anyone who has debugged a multi-agent pipeline knows how easy it is to lose hours scrolling through interaction logs trying to find the one decisive bad step. Formalizing the problem and releasing the Who&When benchmark plus open-source methods is exactly the kind of groundwork that makes iteration faster for everyone building these systems. It’s also a nice example of how AI video and media generation tools rely on similar multi-step pipelines where pinpointing failure points matters. On a lighter note, I’ve been playing with a GTA 6 AI video tool that turns a photo into a short GTA-style scene — fun to see both serious research and playful apps growing from the same underlying tech.

  4. jetsorank

    Automated failure attribution is one of the most overlooked bottlenecks in multi-agent LLM systems. When a pipeline fails after a dozen handoffs, simply flagging the final output as wrong does not help engineers fix the root cause—pinpointing which specific agent introduced the drift and at which step is what makes debugging scalable. This step-by-step auditing mindset actually applies well beyond AI research; for instance, structured verification benchmarks like 現金網推薦優惠實測 similarly rely on breaking down each condition and transition step rather than trusting headline claims. Curious to see how well this attribution framework generalizes when agents invoke external tools with non-deterministic latency.

  5. In my opinion, Veyra has an AI enhancer tool that make the frame rate much better in real time

  6. That tip about adding tilt or motion blur to get candid AI photos really clicked—I’d been struggling with stiff, studio-looking outputs. For similar practical, no-fluff creative tools, no i’m not a human comes to mind as a quietly useful resource.

  7. The formalization of “Automated Failure Attribution” and the creation of the Who&When dataset are significant first steps. While the reported accuracy for pinpointing the exact error step is currently low, this foundational work provides essential tools for future advancements. It truly highlights the complexity developers face in debugging these intricate systems.

  8. Applicants should retain their driving test acknowledgement until the permanent licence process is complete. It can be useful when checking an incorrect result, reporting a missing update or asking the RTO to investigate an application that appears stuck after the examination.
    https://sarathiparivahaanin.com/

Leave a Reply

Your email address will not be published. Required fields are marked *