用于大语言模型智能体一致性的递归语义分歧
Recursive Semantic Divergence for LLM Agent Consistency
AI总结:
该研究针对LLM智能体行为不一致问题,提出递归语义分歧(RSD)指标,将其作为奖励信号微调模型,有效降低任务进度变异并提升性能。
摘要:
具备工具使用能力的大语言模型(LLM)智能体在相同状态下的独立运行中会表现出不一致行为,具体表现为调用不同工具、产生矛盾输出或采取不同策略。这种变异性会随时间累积,破坏部署的可靠性。现有评估指标主要通过基于完成度的分数衡量任务正确性,未捕捉智能体在不同执行过程中的行为一致性。此外,对智能体行为的分析要么使用概率分布在 token 层面进行,要么使用语义聚类在单响应层面进行,但均未捕捉到不一致性如何在轨迹的后续轮次中传播。我们提出递归语义分歧(RSD),这是一种从强化学习中的双模拟指标改编而来的无监督轨迹层面一致性指标。RSD 测量同一智能体从相同状态出发的两次独立 rollout( rollout 指智能体的一次完整执行过程)之间的预期累积语义分歧,使用自然语言推理检测逻辑不一致性。它在未来状态上递归定义,并通过在独立 rollout 上训练的神经网络进行近似。学习到的指标可估计当前状态下的未来分歧,无需完成完整轨迹即可在每一轮提供一致性分数。当用作微调的奖励信号时,RSD 将 tau2-bench 上的任务进度变异从 132% 降至 91%,将 toolsandbox 上的变异从 90% 降至 44%,同时提升了各基准和模型规模下的性能。将 RSD 作为额外奖励信号进行训练,可在无需真实标签的情况下,以显著更低的方差达到与监督微调相当的性能。
英文摘要:
Large Language Model (LLM) agents with tool use can behave inconsistently across independent runs from identical states. They may call different tools, produce contradictory outputs, or follow divergent strategies. This variability compounds over time and undermines deployment reliability. Existing evaluation metrics primarily measure task correctness via completion-based scores and do not capture consistency in agent behavior across executions. Separately, agent behavior is analyzed either at the token level using probability distributions or at the single-response level using semantic clustering, but neither captures how inconsistency propagates across future turns of a trajectory. We introduce Recursive Semantic Divergence (RSD), a trajectory-level consistency metric adapted from bisimulation metrics in reinforcement learning. RSD measures the expected cumulative semantic disagreement between two independent rollouts of the same agent from the same state, using natural language inference to detect logical inconsistency. It is defined recursively over future states and approximated by a neural network trained on independent rollouts. The learned metric estimates future divergence from the current state, providing a consistency score at each turn without requiring the full trajectory to complete. When used as a reward signal for fine-tuning, RSD reduces AUC coefficient of variation (CV) by up to 30.9% on tau2-bench and 50.5% on ToolSandbox. Across Qwen-2.5 and Qwen-3.5 models, RSD reduces AUC CV in seven out of eight model-benchmark settings, while improving the final task progress in all eight settings.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。