← Latest papers
💻 computer science

Beyond End-to-End Success: Diagnosing Failures in Long-Horizon Security LLM Agents

This paper introduces a diagnostic methodology using checkpoints and controlled interventions to pinpoint upstream bottlenecks in long-horizon security LLM agents, revealing that failure modes and the efficacy of guidance strategies can shift significantly across model generations, thereby necessitating granular failure analysis over aggregate success metrics.

Original authors: Wei Shao, Chongzhou Fang, Zuxiong Tan, Zequan Liang, Setareh Rafatirad, Avesta Sasan, Houman Homayoun

Published 2026-08-24
📖 6 min read🧠 Deep dive

Original authors: Wei Shao, Chongzhou Fang, Zuxiong Tan, Zequan Liang, Setareh Rafatirad, Avesta Sasan, Houman Homayoun

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

In the rapidly evolving world of artificial intelligence, a new class of software agents has emerged, capable of performing complex, multi-step tasks by interacting with digital environments much like a human would. These systems, built on large language models, can be instructed to explore networks, find hidden information, and execute security tests. However, when these agents are asked to solve problems that stretch over a long period, involving many dependent steps, simply asking "did they succeed?" often tells an incomplete story. A failure at the very end of a long journey might not mean the agent lacked the skill to finish the job; it might mean the agent got lost before it even found the starting point. Understanding where and why these digital explorers stumble is crucial, not just for improving their performance, but for knowing what they are actually capable of doing.

Researchers at the University of California, Davis, and the Rochester Institute of Technology have developed a new way to look at these failures. Instead of just counting how many times an agent completes a task from start to finish, they built a diagnostic system that places checkpoints along the way. Imagine a long, winding path through a forest where the goal is to find a specific rare flower and then bring it back. If a hiker never makes it past the first mile, they never get the chance to find the flower, and their failure to return with it tells us nothing about their ability to identify or carry the bloom. The researchers apply this logic to security agents by marking the exact moment a task becomes possible—when the agent has found the necessary information or state to proceed. By separating failures that happen before this moment from those that happen after, they can distinguish between an agent that simply got lost and one that lost its way after finding the right path.

The team tested this approach using four different types of security challenges, each designed to probe a specific long-term skill. One of the primary tests, called Controlled State Reuse, required an agent to discover a specific piece of digital information, perform a series of unrelated actions, and then use that original information to complete the final goal. When they first ran these tests with a model known as Gemini 2.5 Flash, the results looked discouraging: the agent failed to complete the task most of the time. However, when the researchers looked at the checkpoints, they discovered the real problem. In the vast majority of failed attempts, the agent never even found the initial piece of information it was supposed to remember. It was failing to reach the starting line, not failing to run the race.

To prove this, the researchers introduced a controlled intervention. They created a scenario where, at a specific point in the task, the agent received a small, targeted hint that clarified how to distinguish between different types of digital services. They compared this "rescue" message against a "placebo" message that looked similar but contained no useful information. The results were striking. When the agent received the helpful hint, its ability to find the initial information jumped from about two-thirds of the attempts to nearly all of them. Once the agent found the information, it almost always succeeded in finishing the task. This confirmed that the agent's earlier struggles were not due to a lack of memory or reasoning, but simply because it was confused about how to find the starting clue.

The story took a surprising turn when the researchers repeated the exact same experiment with a newer, more advanced model, Gemini 3.7 Flash. They used the same tasks, the same checkpoints, and the same helpful hint, without changing anything based on the new model's behavior. This time, the result was the opposite. The helpful hint actually made the new model perform worse at finding the initial information. Furthermore, when this newer model did manage to find the information, it frequently failed to finish the task afterward. The bottleneck had shifted. For the older model, the problem was finding the starting point; for the newer model, the problem was what happened after it found it.

This reversal highlights a critical lesson for anyone building or evaluating these intelligent systems. The source of failure is not static; it changes as the technology evolves. A diagnostic tool that works perfectly for one generation of models might be misleading for the next. The researchers found that relying solely on a final success rate would have hidden these nuances entirely. Without the checkpoint analysis, one might have assumed the newer model was simply better at finding clues but worse at remembering them, or vice versa. Instead, the detailed breakdown revealed that the nature of the difficulty had fundamentally changed.

The study also examined other types of long-horizon tasks, such as recovering from a failed strategy or making decisions when the outcome is unclear. In some cases, the agents were so good at the task that they never failed, making it impossible to tell if the test was actually challenging. In other cases, the agents consistently avoided the specific path the test was designed to measure, meaning the results told them nothing about the skill they were trying to test. These findings suggest that for long, complex tasks, the journey matters just as much as the destination.

Ultimately, this work provides a clearer map for understanding artificial intelligence agents. It shows that success is not a single number but a collection of steps, each with its own potential for failure. By pinpointing exactly where an agent stops and testing why, researchers can move beyond guessing and start fixing the right problems. The study demonstrates that what looks like a failure in memory or planning might actually be a failure in discovery, and that the solutions for one version of an AI might be the wrong tools for the next. As these systems become more capable, the ability to diagnose their specific points of failure will be just as important as building them in the first place.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →