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. Explore the latest McDo Menu Philippines to discover updated prices, popular meals, breakfast favorites, burgers, chicken, desserts, drinks, and family bundles all in one place. Whether you’re planning a quick snack or a full meal, our guide helps you compare menu options and make the best choice before ordering. Read more to find detailed menu categories, nutrition information, limited-time offers, and the latest McDonald’s Philippines prices for 2026.

    • I am writing to express my sincere gratitude to the team at SEFTYHUB ASSET RECOVERY for their exceptional service in helping me recover my lost cryptocurrency. As someone who has been involved in the cryptocurrency space for a while, I have always been cautious about the risks associated with digital assets. However, despite my best efforts, I fell victim to a sophisticated scam that resulted in the loss of a significant amount of my cryptocurrency.
      After trying various methods to recover my lost funds, I came ACROSS SEFTYHUB ASSET RECOVERY and was impressed by their reputation and expertise in cryptocurrency recovery. WHATSAPP : +19297752133 EMAIL: SEFTYHUB@GMAIL COM I was initially skeptical, given the numerous scam recovery services that plague the internet, but I decided to take a chance and reach out to them. From the initial consultation to the final recovery of my funds, the team at SEFTYHUB ASSET RECOVERY were professional, responsive, and transparent. They walked me through the entire process, explaining the steps they would take to recover my lost cryptocurrency and providing regular updates on their progress. Their expertise and knowledge of the cryptocurrency space were evident throughout the process, and I was impressed by their ability to navigate the complex world of blockchain technology. What sets SEFTYHUB ASSET RECOVERY apart from other recovery services is their commitment to legitimacy and transparency. They are a licensed and registered company, and their team consists of experienced professionals with a proven track record of success. They do not make false promises or guarantee unrealistic results, but instead, provide a honest and realistic assessment of the recovery process. Thanks to the team at SeftyHub ASSET RECOVERY, I was able to recover a significant portion of my lost cryptocurrency. Their service was worth every penny, and I would highly recommend them to anyone who has fallen victim to cryptocurrency theft or loss. If you are in a similar situation, do not hesitate to reach out to SEFTYHUB ASSET RECOVERY. They are a trustworthy and reliable partner in the recovery of your lost cryptocurrency, and I am grateful for their help in getting my funds back. WHATS APP : +19297752133
      EMAIL:

      SEFTYHUB@GMAIL.COM

      • Tina ustin

        It’s so frustrating I was scammed about $24k to a fake investment company. They had me depositing more money the more I try withdrawing my profits, I almost gave up in life as I’ve been saving for years to start up a business just to lose it all to a scammer till I was recommended to this scam recovery expert on facebook Charlie Blanford :
        Thelevis_hacklt’s amazing how they could help me recover every penny I lost. Contact them they can help you too –
        SEFTYHUB@GMAIL.COM

    • Debby lies

      I was recently scammed out of $53,000 by a fraudulent Bitcoin investment scheme, which added significant stress to my already difficult health issues, as I was also facing cancer surgery expenses. Desperate to recover my funds, I spent hours researching and consulting other victims, which led me to discover the excellent reputation of SEFTYHUB Crypto Recover, I came across a Google post It was only after spending many hours researching and asking other victims for advice that I discovered SEFTYHUB Crypto Recovery’s stellar reputation. I decided to contact them because of their successful recovery record and encouraging client testimonials. I had no idea that this would be the pivotal moment in my fight against cryptocurrency theft. Thanks to their expert team, I was able to recover my lost cryptocurrency back. The process was intricate, but SEFTYHUB Crypto Recovery’s commitment to utilizing the latest technology ensured a successful outcome. I highly recommend their services to anyone who has fallen victim to cryptocurrency fraud. For assistance, contact.

      EMAIL SEFTYHUB@GMAIL.COM

  2. Emily Park

    Thanks for this! I’ve been testing Flowaivideo and it’s been really impressive for video generation.

  3. The article highlights the challenge of pinpointing specific agent failures in LLM multi-agent systems, which is indeed a significant hurdle for debugging. I’m particularly interested in how the proposed attribution method handles scenarios where multiple agents might contribute to a failure incrementally, rather than a single agent being the sole cause. Sometimes, for complex creative generation tasks, having a centralized logging system that tracks the state and decision-making process at each step is crucial; for managing these diverse outputs, I’ve found musegen.org helpful in organizing project assets.

  4. Failure attribution in multi-agent systems is such an underrated problem — “something went wrong somewhere” is the daily reality of anyone chaining models together. I feel a mini version of it when generating marketing copy: the draft looks fine until you check which pass made it sound robotic. For book descriptions I now use bookblurb.org, which scores the AI-likeness of each blurb, so the “which step broke it” question at least has a measurement attached.

  5. The article highlights the challenge of pinpointing specific agent failures in LLM multi-agent systems, which is indeed a significant hurdle for debugging. I’m particularly interested in how the proposed attribution method handles scenarios where multiple agents might contribute to a failure incrementally, rather than a single agent being the sole cause. Sometimes, for complex creative generation tasks, having a centralized logging system that tracks the state and

  6. This research from PSU and Duke on automated failure attribution in LLM multi-agent systems is exactly the kind of work the field needs right now — understanding *which* agent in the pipeline is responsible for degraded performance is non-trivial, especially with dynamic task decomposition. The causal attribution framing is well-chosen. I’ve been using Whisper Web (https://whisperweb.art/) to transcribe research discussions and it’s handy for capturing conversations about complex technical topics accurately.

  7. Fascinating research — automated failure attribution in multi-agent LLM systems is one of those problems that feels deceptively simple until you actually dig into the cascade effects. The PSU and Duke team’s approach to isolating which agent in the chain introduced a failure is valuable for anyone building production AI pipelines. Working in the speech AI space with Speech Text, I see similar attribution challenges when audio quality degrades mid-pipeline and it’s unclear which preprocessing step caused the transcription error. Really useful framing from this paper.

  8. Useful study on failure attribution in multi-agent systems. I build AI image generation tooling, and the same attribution problem shows up in generation pipelines: when a render comes back wrong, the cause is often the reference asset or the prompt contract rather than the model. Logging the inputs alongside the failure is what makes the difference in practice.

  9. It’s striking that even the best method only hits 14.2% for the exact error step — that really underscores how far automated debugging still has to go.
    Baiak Idle Builds

  10. Interesting analysis of failure attribution in multi-agent systems. The focus on identifying when and why agents fail is especially relevant for practical AI development.

  11. Darcie

    The ‘when’ half of Who&When is exactly the part I overlook—in my own two-agent setup, a bad intermediate step doesn’t always cause an immediate error, it just quietly derails everything downstream. I was in the middle of a debugging session like that when a forgotten tab with https://applepaykasino.net popped up, and it made me wish I had a way to attribute the failure automatically.

  12. Failure attribution is the unglamorous half of multi-agent research and it is good to see a benchmark aimed squarely at it. Knowing a run failed is nearly useless operationally; knowing which agent and which step tipped it is what lets you fix anything. It is structurally the same question as working out which assignment actually moved a course grade — the naive answer is the last one, and it is usually wrong, which is the whole reason a final grade calculator weights by contribution rather than recency.

  13. For anyone comparing in-browser generators, this is the one I actually finished a reel with. Source https://higsfield.io

  14. Useful free AI image generator for shipping-side project visuals — https://yeri.ai

  15. The 14.2% accuracy for locating the exact error step really shows how difficult long-context attribution remains. For teams turning research diagrams into physical prototypes, an image to STL: https://pictostl.com/ workflow could be a useful separate experiment.

  16. Carlos Wu

    The failure attribution benchmark Who&When sounds like a useful step for debugging multi-agent pipelines, though I wonder how these methods scale when agents call external tools with variable latency and cost—similar to how teams now compare Sora 2 API pricing per second before wiring video generation into an agent workflow.

  17. TopMaker AI

    The Who&When benchmark’s 127 annotated failure logs make the attribution gap concrete rather than theoretical. For testing short explanations of that bottleneck, Flow AI on TopMaker AI generates image-to-video clips from reference images.

    the TopMaker AI platform

  18. Text to 3d Model

    The manual log archaeology described really does sound like a bottleneck for iteration, especially across long agent chains. For game props, a text prompt can become one 3D model, no photo needed, free to try without a credit card.

    check it out

  19. Cool fonts are stylish text designs that turn ordinary words into eye-catching letters and symbols. They can create bold, cursive, aesthetic, gothic, bubble, tiny, and decorative text that you can easily copy and paste. Use cool fonts for social media bios, usernames, captions, posts, messages, and other creative content without installing any font software.

  20. UPerNet’s ability to simultaneously identify scenes, objects, materials, and textures through a hierarchical pyramid structure is brilliant. It reminds me of standard image processing workflows where you have to subtract before you parse. For instance, I’ll typically use wordremover to quickly clear out unwanted text from an image, and then run deep visual analysis. It keeps the visual data much cleaner. Thanks for the detailed read!

  21. Many women who applied for Annapurna Bhandar Scheme 2026 are now looking for answers about delayed ₹3000 payments and DBT status. Getting approval is only one step; sometimes payment delays happen because of bank account issues, Aadhaar linking problems, or verification pending. A helpful guide explaining payment status checking, common mistakes, and possible solutions can save applicants from unnecessary confusion. Clear information about DBT transactions is especially useful for beneficiaries who depend on timely financial support.
    https://annapurnabhandarr.com/

  22. Useful article – the practical details are what make it worth reading.

  23. This whole failure attribution game is a nightmare. You think you isolate an error, and bam—it’s another agent screwing things up. A resource like Community guide to AnyPS5 might help shed some light on the chaos.

  24. The step-level attribution framing is the most useful part here – knowing which agent failed matters far less than pinning the failure to the exact step where the handoff broke down. I would be curious whether those labels hold up when the agents are allowed to retry with a slightly different plan.

  25. It is striking that automated attribution can outperform a human reviewer on these multi-agent traces, because the failure modes are spread so thinly across the transcript that eyeballing it is hopeless at scale. I would like to see how the labels behave when two agents are each partly responsible for the same step.

  26. The framing around failure attribution — which agent, and when — is what makes multi-agent debugging tractable, and the cascade findings mirror production pipelines. Our own generative stack chains pose estimation, motion synthesis and rendering agents for dancegenerator.app, and a single silent early failure used to poison whole outputs until we added per-stage attribution. Papers like this validate the approach.

  27. Fascinating research! I used Nano Banana Pro to visualize multi-agent failure modes as diagrams. Great coverage!

  28. Failure attribution is the unglamorous problem that will decide whether multi-agent systems are usable in practice. Knowing which agent made the decisive mistake, and at which step, is far more useful than an overall task score. Curious how well the all-at-once versus step-by-step methods scale on longer traces. (I work on Final Grade Calcs, a student tool, so I follow how these systems get evaluated.)

  29. The comparison here is the useful part. I also animate a single screenshot instead of recording demos — https://nene.video/ handles that from one image, so there is no render step to babysit.

  30. Pinpointing which agent introduced an error, and at which step, seems much more useful for debugging than simply labeling the final outcome as a failure. It would be interesting to compare attribution accuracy on short workflows versus longer chains where several agents propagate the same mistake.

  31. Separating the responsible agent from the point at which an error becomes consequential is an interesting framing. How does the benchmark handle a case where one agent supplies incorrect information but a later agent has an explicit verification step and fails to catch it?

  32. A benchmark that labels both the agent and the timing of a failure could make debugging much more systematic. It would be interesting to see how attribution changes when an earlier error is recoverable and a later decision removes that opportunity to recover.

  33. The ‘why’ annotation seems particularly valuable alongside ‘who’ and ‘when’. Does the benchmark allow more than one plausible attribution when agents compound each other’s mistakes, or is every trace evaluated against a single decisive step?

  34. CarWrapDesign3

    Debugging multi-agent failures echoes what happens in creative AI pipelines: when a generated car wrap concept looks off, you need to know which step—prompt, layer edit, or 3D preview—caused it. https://carwrapdesign.app combines AI generation with a layered manual editor, making those steps far easier to trace than one opaque pass.

  35. Miracle

    The Who&When benchmark is a real step forward, since pinpointing the decisive error step in a multi-agent chain is painfully tedious. Similar attribution headaches appear in generative pipelines; Online Photo Animation Tool turns photos into AI videos with custom prompts, where tracing which prompt or effect broke the output matters just as much.

  36. Automated failure attribution in multi-agent systems is such an underrated problem. Attribution by tracing intermediate messages is promising, though I wonder how it holds up when the agents share a long context window.

  37. The UIDAI Aadhaar services portal is the official online platform provided by the Unique Identification Authority of India for managing Aadhaar-related services. Through the UIDAI Aadhaar services portal, residents can download e-Aadhaar, check Aadhaar update status, verify Aadhaar numbers, update demographic information, generate a Virtual ID (VID), and access various authentication services.

  38. This is an interesting and important step toward making LLM multi-agent systems more reliable. Automating failure attribution could save developers a lot of time by identifying which agent caused an error and when it happened. I’m looking forward to seeing how the Who&When benchmark helps improve debugging and future multi-agent systems. SunPass com

  39. Separating which agent failed from when the failure occurred makes the attribution problem much clearer than judging a system only by its final answer. The same distinction between stages and outcomes is useful when reviewing creative AI workflows. My project Outstanding AI uses five authorised portraits and a prepared shot sequence for a fictional fifteen-second desk concert.

  40. Failure attribution in multi-agent LLM systems is the part most demos skip. Appreciate a research-minded write-up that digs into who failed and when. Useful reference while we debug our own agent stack.

  41. easytostl

    For anyone exploring image-based 3D printing, https://easytostl.com uses AI to turn PNG and JPG images into watertight STL models, with free credits to try the conversion. It’s a practical way to move from a 2D image to a file ready for Bambu Studio or Cura, so I recommend visiting the site and testing an image of your own.

  42. Automated failure attribution addresses a real pain point—debugging multi-agent systems by manually reading interaction logs is painfully inefficient, and defining the Who&When benchmark gives the community a concrete target to iterate on. The fine-grained “which step” attribution is especially valuable, since a single wrong decision early in a long collaboration chain often cascades into total task failure. Interestingly, this attribution problem matters beyond pure agent research too. For applied tools built on multi-agent pipelines, like our AI Audiobooks generator (AI Audiobooks), being able to trace which stage—text parsing, voice assignment, or chapter rendering—caused a failure would speed up reliability work considerably. Benchmark datasets like Who&When could become standard infrastructure for anyone shipping agentic products.

  43. Interesting breakdown of automated failure attribution in LLM multi-agent systems. Pinpointing which agent and which step caused a failure seems essential for making these systems debuggable. We work on AI video at Dunk AI (https://aidunkvideo.com/), and clearer failure tracing would help any multi-step generation pipeline too.

  44. This research on LLM failure attribution is fascinating. Understanding agent behavior is key. It reminds me of how AI can enhance image quality, like with AI super resolution. AI super resolution

  45. Automated failure attribution is an underrated problem — when a multi-agent pipeline breaks down, pinpointing which agent failed and at what step is usually guesswork. Having a systematic benchmark for this should make debugging LLM teams far more tractable. Even outside research, timing matters: strategy games like Traffic Road are a nice way to reset between debugging sessions. Great coverage as always!

  46. Taylor Cooper

    Failure attribution in multi-agent systems is especially valuable when it makes the chain of responsibility inspectable rather than merely assigning blame after an outcome goes wrong. The invitation to share both research breakthroughs and the stories behind them creates room for authors to explain the assumptions, edge cases, and design choices that shaped their evaluation. That context can help readers judge how broadly a proposed attribution method may transfer across different agent setups. Traceability is a useful lens here, because it connects technical findings to the decisions that produced them.

  47. Automated failure attribution across agents is such a practical research direction, thanks for the summary. On the small-tools side, I’ve liked how a GTIN14 Tools validates check digits so errors are caught early.

  48. Asking which agent caused a task failure, and when, is the right question once an LLM multi-agent system has more than a single step to blame. I like that the work is about attribution rather than another generic leaderboard score. Being able to point to the step that actually broke the chain is what would make this useful in practice.

  49. The ‘flurry of activity, task still fails’ pattern is exactly what makes multi-agent traces hard to trust. Asking which agent failed and when, as the PSU and Duke work does, is more operationally useful than another success-rate leaderboard. I ran into a milder version of that while checking image-to-video jobs in Z Video — the generate step looked busy until the audio-sync check actually failed.

  50. The “needle in a haystack” framing really captures why debugging multi-agent systems feels so different from traditional debugging — errors can propagate through long information chains before anyone notices, making the final failure look disconnected from its true origin. Defining automated failure attribution as a formal problem and releasing the Who&When benchmark is a meaningful step, since it turns debugging from manual log archaeology into a measurable task. It’s interesting how this kind of attribution research mirrors what’s happening in applied AI products too — for instance, tools like songgiftly.com use an AI personalized song approach where user stories are transformed into custom lyrics, and even there, pinpointing which generation step caused an off output matters for reliability. Looking forward to seeing how fine-grained the “when” component of attribution can get with longer interaction logs.

Leave a Reply

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