从序列到结构:LLM代理的关系不确定性传播
研究论文 · 2026/08/19
可靠的量化不确定性(UQ)对于在复杂交互环境中部署大型语言模型(LLM)代理至关重要。现有的UQ方法主要依赖局部信号,如令牌概率、预测熵或逐步置信度,因此忽略了执行轨迹中错误累积的长期依赖关系。结果,它们可能无法识别那些原因在最终答案之前几个推理或交互步骤就出现的代理失败。我们提出了RUPA(代理的关系不确定性传播),一种针对LLM代理的轨迹级UQ框架。RUPA将执行历史表示为有向轨迹图,其中推理状态、工具交互和环境反馈作为节点,通过时间和语义依赖边连接。然后,它在该图上传播不确定性,以捕捉执行风险如何在交互步骤中累积和转移。传播的信号与轨迹级行为特征和目标对齐信息相结合,为整个代理轨迹产生置信度估计。我们在代表性代理基准上评估了RUPA,包括τ-2、Terminal-Bench-2和GAIA,使用了跨越多个模型家族的6个开源LLM。实验结果表明,RUPA通过提供更准确的不确定性估计、实现更早的失败检测以及改善不确定性引导的代理执行,持续优于现有的UQ方法。这些结果表明,显式建模关系依赖对于长时程LLM代理的可靠UQ至关重要,为可信赖的代理执行提供了实用基础。
该论文针对LLM代理不确定性量化中的关键缺陷,提出了一种新颖的轨迹级传播方法,并通过实验验证了其有效性,对于提升代理系统的可靠性和安全性具有重要价值。
Reliable uncertainty quantification (UQ) is essential for deploying large language model (LLM) agents in complex interactive environments. Existing UQ methods largely rely on local signals, such as token probabilities, predictive entropy, or per-step confidence, and therefore overlook the long-range dependencies through which errors accumulate across an execution trajectory. As a result, they may fail to identify agent failures whose causes originate several reasoning or interaction steps before the final answer. We propose RUPA (Relational Uncertainty Propagation for Agents), a trajectory-level UQ framework for LLM agents. RUPA represents an execution history as a directed trajectory graph in which reasoning states, tool interactions, and environment feedback are nodes connected by temporal and semantic dependency edges. It then propagates uncertainty over this graph to capture how execution risk accumulates and transfers across interaction steps. The propagated signal is combined with trajectory-level behavioral features and goal-alignment information to produce a confidence estimate for the full agent trajectory. We evaluate RUPA on representative agent benchmarks, including τ-2, Terminal-Bench-2, and GAIA, using 6 open-source LLMs spanning multiple model families. Experimental results show that RUPA consistently outperforms existing UQ methods by providing more accurate uncertainty estimates, enabling earlier failure detection, and improving uncertainty-guided agent execution across diverse agent tasks. These results demonstrate that explicitly modeling relational dependency is crucial to reliable UQ for long-horizon LLM agents, providing a practical foundation for trustworthy agent execution.