Introduction
Large Language Models (LLMs) are increasingly deployed as autonomous agents capable of executing sequential tasks, such as navigating file systems or conducting multi-hop research. However, existing Uncertainty Quantification (UQ) methods are primarily designed for single-turn interactions. In agentic workflows, uncertainty is not static; a minor ambiguity in an early step can compound, leading to significant errors in later stages—a phenomenon akin to the "butterfly effect."
Traditional UQ methods fail to account for this extrinsic uncertainty—the doubt inherited from previous decisions. To address this, the authors introduce UProp, a principled framework designed to track and quantify uncertainty propagation throughout a multi-step decision trajectory.
The UProp Framework
UProp decomposes the total uncertainty at any given step $t$ into two distinct components:
- Intrinsic Uncertainty (IU): The uncertainty inherent to the current decision given the current state.
- Extrinsic Uncertainty (EU): The uncertainty propagated from the variability of all preceding decisions.
Mathematically, EU is represented as the Mutual Information (MI) between the current decision and the history of past decisions. To overcome the computational intractability of calculating MI across all possible reasoning paths, UProp employs several key techniques:
- Trajectory-Dependent Decision Process (TDP) Sampling: Efficiently samples complete linear trajectories to approximate the decision space.
- Pointwise Mutual Information (PMI) Approximation: Converts the complex MI calculation into a more feasible PMI estimation.
- Distribution Spreading: Utilizes a Gaussian kernel to estimate how the variance of previous steps influences the current decision's distribution, assuming local smoothness in model behavior.
Experimental Setup
The framework was evaluated on several complex, multi-step benchmarks:
- AgentBench-OS: An operating system environment requiring terminal interactions (e.g., file manipulation).
- HotpotQA & StrategyQA: Multi-hop reasoning tasks requiring sequential Wikipedia searches to reach a final answer.
Experiments were conducted across a diverse set of models, including GPT-4, GPT-3.5, DeepSeek-V3, Qwen2.5, and Gemma-2.
Results and Analysis
UProp demonstrates significant improvements in detecting model errors compared to seven popular single-turn UQ baselines, such as Semantic Entropy and Perplexity.
Superior Error Detection
UProp achieved an improvement of 2.3% to 9.2% AUROC on AgentBench-OS and 3.5% to 11% AUROC on StrategyQA. This performance gap highlights the critical importance of accounting for historical uncertainty in sequential tasks.
Efficiency and Scaling
A key advantage of UProp is its efficiency. As shown in Figure 3, UProp maintains a performance lead even with a very small number of trajectory samples ($Z$) or per-step samples ($N$). This makes it practical for real-world applications where computational budget is a concern.
The Crossover Effect
Analysis reveals that while Intrinsic Uncertainty dominates the initial steps of a task, Extrinsic Uncertainty becomes the primary driver of error as the trajectory lengthens. Higher-tier models like GPT-4 exhibit greater stability, with a lower proportion of extrinsic uncertainty in later steps compared to smaller models.
Conclusion
UProp provides a robust metric for monitoring agent reliability in safety-critical environments. By quantifying how uncertainty compounds, it allows for better-informed decisions on when to trust an agent's output. Future work will focus on reducing computational latency for real-time applications and exploring more sophisticated semantic distance metrics for action comparison.
The code is available at: https://github.com/jinhaoduan/UProp
Summary updated