arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.18614cs.AIcs.LG
收藏

智能体能学习预测自身的失败?大语言模型智能体中基于结果的置信度校准

Can an Agent Learn to Predict Its Own Failure? Outcome-Grounded Confidence Calibration in LLM Agents

SAP(思爱普(SAP))

Ashutosh Hathidara

AI总结:

该研究提出基于多步骤任务最终结果的置信度校准方法,在GRPO下结合合适评分规则,经离线和在线RL验证,可提升LLM智能体的置信度预测能力,且不降低任务成功率。

摘要:

控制一个执行任务的大语言模型(LLM)智能体,意味着在长程任务的每一步都要决定:是否信任其下一步动作、弃权(不执行),还是将任务交接给人类。该决策需要一个每步的置信度信号,用于预测当前的执行序列最终是否会成功。智能体自身报告的口头置信度是自然的候选方案,但现有的强化学习方法仅将其与当前步骤决策的正确性进行校准。我们提出一种方法,将其与多步骤任务的最终结果进行校准:在GRPO(组相对策略优化)下,某一任务的多组执行序列会提供成功标签,且一个合适的评分规则会根据已实现的结果对每一步的置信度进行评分。在对Qwen2.5-7B智能体在ALFWorld、TextWorld和WebShop环境中记录的轨迹进行离线强化学习时,每步置信度对任务结果的AUROC(受试者工作特征曲线下面积)从接近随机水平提升至0.68-0.85,且智能体最有信心的前10%步骤的成功率约为平均水平的4.3倍。在对实时ALFWorld智能体进行在线强化学习时,四种校准奖励提升了早期步骤的AUROC,预期校准误差从0.42降至0.12以下,且选择性执行的表现优于未训练的智能体和仅格式的RL(强化学习)对照组,同时未降低任务成功率。我们还引入了一种评估协议,该协议区分了任务深度、任务难度和尝试级别的前瞻性,其显示了提升所在:训练后的智能体从第一步就能识别出哪些任务会失败,而在同一任务中区分成功尝试与失败尝试更具挑战性,在TextWorld上出现了一些早期窗口信号。

英文摘要:

Controlling an acting LLM agent means deciding, at each step of a long-horizon task, whether to trust its next action, abstain, or hand off to a human. That decision needs a per-step confidence signal predicting whether the current rollout will eventually succeed. The agent's own self-reported verbalized confidence is the natural candidate, but existing reinforcement learning methods calibrate it against the correctness of a decision at the current step. We propose a method to calibrate it against the eventual outcome of a multi-step episode: under GRPO, the group of rollouts for a task supplies success labels, and a proper scoring rule scores each step's confidence against the realized outcome. In offline RL on recorded trajectories of a Qwen2.5-7B agent in ALFWorld, TextWorld, and WebShop environments, the AUROC of step confidence against episode outcome rises from near chance to 0.68-0.85, and the top-10% of steps the agent is most confident about succeed ~4.3x more often than average. In online RL on the live ALFWorld agent, four calibration rewards improve early-step AUROC, expected calibration error goes from 0.42 to below 0.12, and selective execution improves over both the untrained agent and a format-only RL control, without degrading task success. We also introduce an evaluation protocol that separates episode depth, task difficulty, and attempt-level foresight, which shows where the gain lies: the trained agent recognizes from its first step which tasks it will fail, while telling a succeeding attempt from a failing one at the same task is harder, with some early-window signal emerging on TextWorld.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑