← Latest papers
🤖 AI

From Sequence to Structure: Relational Uncertainty Propagation for LLM Agents

This paper introduces RUPA, a trajectory-level uncertainty quantification framework that models execution histories as directed graphs to propagate uncertainty across relational dependencies, thereby outperforming existing methods in detecting long-range error accumulation and improving the reliability of LLM agents in complex interactive environments.

Original authors: Zhengzhao Ma. Boxi Cao, Yaojie Lu, Hongyu Lin, Xianpei Han, Le Sun

Published 2026-08-18
📖 4 min read☕ Coffee break read

Original authors: Zhengzhao Ma. Boxi Cao, Yaojie Lu, Hongyu Lin, Xianpei Han, Le Sun

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 generation of software has emerged that does more than just answer questions or write text. These systems, known as autonomous agents, are designed to act on their own. They can break a complex goal into smaller steps, use digital tools to gather information, and interact with computer environments to solve problems that require dozens or even hundreds of decisions. Think of them as digital employees capable of navigating the internet, writing code, or managing data without constant human supervision. However, as these agents take on more difficult tasks, a critical question arises: how can we know if they are about to make a mistake? Unlike a simple text generator that might produce a single wrong sentence, an agent's failure is often a slow process. A small error made early in a long chain of reasoning can ripple forward, distorting later steps and leading to a complete breakdown in the final result. For these systems to be trusted in the real world, developers need a way to measure the risk of failure as it happens, not just after the fact.

Researchers have long tried to build systems that can tell when a model is unsure. Traditional methods usually look at the immediate output of the computer, checking how confident the model seems about the very next word it is about to generate. This approach works well for short tasks, but it fails when the task stretches over a long timeline. The problem is that these methods treat each step as an isolated event, ignoring the history of how the agent got there. They miss the subtle connections between a decision made ten steps ago and the current action. If an agent misunderstands a user's request at the beginning, that initial confusion might not look like a mistake at the time, but it can cause the entire project to go off track later. Current tools are like a driver who only looks at the road directly in front of the car, missing the fact that a wrong turn was taken miles back that will eventually lead to a dead end.

To solve this, a team of researchers from the Chinese Academy of Sciences has developed a new framework called RUPA. Instead of viewing an agent's work as a simple list of steps, they map the entire process as a network of connected events. In this system, every action, tool use, and piece of feedback is a node in a graph, and the lines connecting them represent the logical relationships between them. The researchers found that errors often travel along these specific connections. By building this map, the system can trace how uncertainty grows and moves through the agent's history. It calculates a risk score for the current moment by looking not just at the immediate confidence of the model, but also at the reliability of the path that led to it. If an early step was shaky, the system recognizes that the current step is built on a weak foundation, even if the current step itself looks confident.

The team tested this approach on a wide variety of challenging tasks, including complex software engineering problems, terminal-based computing challenges, and open-ended problem-solving scenarios. They ran these tests using six different large language models, ranging from smaller to very large systems. The results showed that this new method was significantly better at spotting trouble than existing techniques. In one set of tests, the new system improved the ability to detect failures by a noticeable margin compared to the best previous methods. More importantly, it could identify potential failures much earlier in the process. While older methods often only realized something was wrong near the very end, this new approach could signal danger after just a few steps, giving the system a chance to correct its course before the task was ruined.

The researchers also demonstrated that this better understanding of risk could be used to make the agents work better. When the system was given the choice between several possible actions, it could use the risk scores to pick the safest option. In these trials, the agents guided by this new method completed more tasks successfully than those guided by traditional confidence measures. The study suggests that the key to reliable artificial intelligence is not just looking at the present moment, but understanding the structure of the journey. By mapping the relationships between every step an agent takes, we can see how small uncertainties accumulate into big problems. This approach provides a practical way to build agents that are not only capable but also trustworthy, capable of navigating complex environments without losing their way.

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 →