当世界仍存在错误时,清理智能体的历史会造成损害
Cleaning an Agent's History Hurts When the World Still Holds the Error
AI总结:
本文研究发现,在智能体任务中途编辑历史的效果取决于世界状态,清理历史时若世界仍存在错误,可能导致智能体表现比不编辑更差。
摘要:
使用工具的语言模型智能体(tool-using language-model agents)会积累自身错误的历史,而一个压缩、修复或移交此类历史的系统,会决定这些错误在世界中仍存在影响时,对外呈现的内容。先前的研究在固定的世界状态下清理历史,此时展示修正步骤与说明已完成是同步的。本文探究相同的正确内容是否会因历史的表述方式和世界的状态而产生帮助或损害。我们冻结处于任务中途的智能体及其精确的世界状态,编辑历史或世界,再让接收模型继续执行。在AgentCE-Bench上,当智能体提交错误值后,我们固定世界状态并通过两种自然编辑添加正确值:在保留的错误旁添加真实注释,或添加智能体已完成的动作。真实注释使接收模型的恢复率(即剩余目标中接收模型答对的比例)从匹配的中性注释下的51%提升至66%;而添加已完成的动作则使恢复率从50%降至44%,低于未编辑历史的情况,因此仅存在正确值无法预测效果。在AppWorld上,完成数据库写入后,我们改变其接收报告为成功或失败,以及其效果是否存在。当效果不存在时,成功接收使整体任务成功率从45%降至28%;当效果存在时,成功接收使整体任务成功率从38%提升至49%。在两个接收模型上合并后,两种效果相差27个百分点,在8个接收模型中,6个的差异在97.5%置信水平下为正,7个在95%置信水平下为正。因此,历史编辑的效果取决于其描述的世界,当世界仍存在错误时,将历史清理为看似干净的状态,可能使智能体的表现比完全不编辑更差。
英文摘要:
Tool-using language-model agents accumulate histories of their own mistakes, and a system that compacts, repairs or hands off such a history decides what it says about those mistakes while their effects stay in the world. Prior work cleans the history at a fixed world, where showing a corrected step and saying it is done move together. We ask whether the same correct content helps or hurts depending on how the history states it and what the world holds. We freeze an agent mid-task with its exact world state, edit the history or the world, and let a receiver model continue. On AgentCE-Bench, after the agent commits a wrong value, we hold the world fixed and add the correct value by two natural edits: a truthful note beside the preserved error or the agent's own completed action. The note raises recovery, the share of remaining targets the receiver gets right, from 51% under a matched neutral note to 66%. The completed action lowers it below the unedited history, from 50% to 44%, so the value's presence alone does not predict the effect. On AppWorld, after a database write, we vary whether its receipt reports success or failure and whether its effect is present. A success receipt lowers whole-task success from 45% to 28% while the effect is absent and raises it from 38% to 49% once present. The two effects differ by 27 points pooled over two receivers, a difference positive in six of eight receivers at 97.5% and seven at 95%. A history edit's effect thus depends on the world it describes, and a history made to look clean while the world still holds the error can leave an agent worse off than no edit at all.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。