CUADebug: Diagnosing and Repairing Computer-Use Agent Failures
This paper introduces CUADebug, a framework comprising an error taxonomy, a human-annotated benchmark, and an active, tool-augmented debugger that significantly improves the diagnosis and repair of Computer-Use Agent failures by pinpointing root causes in multimodal trajectories to enable effective task re-execution.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you've built a super-smart robot assistant that can look at your computer screen, move your mouse, and type on your keyboard just like a human. This isn't just a chatbot that talks about code; it's a "Computer-Use Agent" that actually does things in the real digital world, like filling out forms, editing documents, or organizing files. But here's the catch: just like a human learning a new video game, these robots make mistakes. Sometimes they click the wrong button, sometimes they misunderstand what they see, and sometimes they get lost in a long list of instructions. The big question for scientists is: when the robot fails, how do we figure out exactly where it went wrong? Is it because it couldn't see the tiny text on the screen? Did it forget the plan it made five steps ago? Or did it just click the wrong thing? Fixing these mistakes is hard because the error might have happened way back at the beginning, but the robot only shows you the broken result at the very end.
This paper introduces a new team of digital detectives called CUADebug to solve this mystery. Instead of just asking the robot "Why did you fail?" and hoping for a good answer, CUADebug acts like a forensic investigator. It has a special set of tools that let it pause the robot's history, look at the "before" and "after" pictures of every single click, and compare them to what the robot thought it was doing. The researchers built a massive library of 204 real-life robot failures (called CUAErrorBench) where humans carefully labeled exactly what went wrong. They found that while robots often mess up their big-picture planning, they also struggle with simple things like seeing tiny details or clicking the right spot. By using this detective work, the team showed that they could not only explain why a robot failed but also give it a specific "repair recipe" to try again. When they let the robot use these recipes to retry the task, it succeeded much more often than when it just tried to keep going blindly.
The Detective's Toolkit: How CUADebug Works
Think of a computer-using agent as a student trying to solve a complex math problem on a whiteboard. If the student gets the final answer wrong, a teacher might just say, "Try again." But a smart teacher (like CUADebug) would look at the student's work step-by-step. They would ask, "Did you misread the number in step 3? Did you use the wrong formula in step 5? Or did you just get tired and skip a line?"
The researchers realized that for computer agents, the "whiteboard" is the computer screen, and the "steps" are mouse clicks and keyboard presses. The problem is that these agents often fail in ways that are hard to spot. A robot might click the wrong window because it thought a tiny icon was a button, or it might forget that it needed to save the file before closing the program. These failures are a mix of visual perception (what it sees), spatial grounding (where things are), interaction (how it clicks), and reasoning (the plan).
To tackle this, the team created CUADebugger, a tool-augmented detective. Instead of asking the AI to guess the whole story from a giant pile of data all at once, CUADebugger actively investigates. It uses a "ReAct" loop, which is like a detective saying, "I suspect step 12 is the problem. Let me look at the screen before step 12 and the screen after step 12." It compares these two screenshots with the robot's own notes on what it intended to do. If the robot said, "I'm going to click the red button," but the screenshot shows it clicked the blue one, the detective flags that as a failure.
The Mystery Library: CUAErrorBench
You can't teach a detective without training data. The researchers built CUAErrorBench, a library of 204 failed missions performed by different robot agents (using models like Claude 4.5, Gemini 2.5 Pro, and Qwen 3.5). Humans looked at these failures and labeled them with a specific "taxonomy," or a filing system for mistakes. They found that the biggest category of failure was Task Reasoning and Control (110 out of 204 cases). This is like the robot forgetting the plan or getting confused about the goal. The next biggest groups were Perception (36 cases, where the robot couldn't see something) and Grounding/Interaction (25 cases, where it clicked the wrong thing).
The paper argues that you can't just let a robot invent its own rules for failure. In an experiment, they tried letting a powerful AI create its own list of mistake categories from scratch. The result? The AI kept changing its mind. One time it called a mistake "Visual Error," and the next time it called the same thing "Action Policy Failure." The researchers found that without a human-made guide, the AI couldn't agree on a stable way to describe problems. This suggests that human experts are still needed to define the "rules of the game" for debugging.
The Repair: From Explanation to Action
The most exciting part of the paper is what happens after the detective finds the clue. Many AI systems can give you a long, fancy explanation of why they failed, but that doesn't actually fix the problem. CUADebugger is different because it turns the diagnosis into a repair signal.
Imagine the robot is trying to change the color of slide numbers in a presentation.
- The Failure: The robot clicks the wrong box, thinking it's selecting the text, but it actually selects the frame. Later, the numbers are still gray instead of red.
- The Diagnosis: CUADebugger looks back, sees the wrong click, and says, "The error was in step 2. The robot thought it was clicking the text, but it clicked the frame. The fix is to double-click the text specifically."
- The Repair: The robot is sent back to step 2 with this new instruction.
The results of this "repair" were impressive. When the robot was allowed to restart from the mistake using the detective's advice:
- Single Retry: If the robot just tried to keep going without help, it only succeeded about 13.89% of the time. With the detective's specific repair instructions, success jumped to 29.90%.
- Continuous Retry: If the robot was allowed to keep trying over and over, the success rate went from 12.2% to 25.86% with their method. This is getting very close to what a human expert could achieve (which was 29.21%).
What This Means for the Future
The paper suggests that the future of fixing robot agents isn't just about making them smarter or giving them more memory. It's about building better "debugging" systems that can pinpoint the exact moment a robot goes off track and give it a concrete way to fix it. The researchers found that while reasoning errors are the most common, the visual and interaction errors are just as important to catch.
They also showed that a detective that actively looks at screenshots and actions (CUADebugger) is much better at finding the truth than one that just reads a long story of what happened (the standard approach). For example, on the main test group, the active detective improved the accuracy of finding the exact mistake from 11.2% to 19.6%. While that number might not sound huge, in the world of complex robot tasks, finding the exact right step to fix is incredibly difficult.
Ultimately, this work shows that we are moving past the era where we just watch robots fail and say, "Oh, that's too bad." We are entering an era where we can build systems that act like forensic scientists, finding the root cause of the failure and handing the robot a map to try again, this time getting it right. The paper doesn't claim to have solved all robot failures forever, but it provides a powerful new toolkit that makes fixing them significantly easier and more effective.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.