回溯以向前:长程智能体的回顾探索与演化
Travel Back To Move Forward: Retrospective Exploration and Evolving for Long Horizon Agents
AI总结:
针对长程智能体易因早期错误陷入死胡同的问题,提出ReTRAIL框架,结合环境回退与经验复用,在四个交互式基准上验证其性能优于仅添加回退原语的方法。
摘要:
大型语言模型智能体日益在长程环境中运行,早期错误可能引发级联故障,使智能体陷入死胡同轨迹。因此智能体必须能主动从这类状态恢复,并将探索经验转化为后续决策的指导。我们提出ReTRAIL框架,该框架使智能体能将环境回退到更早状态,同时保留有效进展,并将从放弃的探索中学习到的知识向前传递。环境状态向后移动,而智能体的知识则持续向前。ReTRAIL通过两种互补信号训练共享策略:基于状态的GRPO将重访状态的替代延续进行比较以改进执行,而分支推进奖励则通过后续探索的进展引导反思。在四个交互式基准MineSweeper、Sokoban、ALFWorld和ScienceWorld上的实验表明,仅添加回退原语的益处有限,甚至可能降低性能。相比之下,ReTRAIL使智能体能从无成效的状态回退,并利用放弃分支的见解指导后续探索。这些结果证明,在进行中的任务内将环境回退与经验复用相结合,对长程任务解决具有重要价值。代码可在https URL获取。
英文摘要:
Large language model agents increasingly operate in long-horizon environments where early mistakes can trigger cascading failures and trap agents in dead-end trajectories. Agents must therefore be able to proactively recover from such states and turn their exploratory experience into guidance for subsequent decisions. We introduce ReTRAIL, a framework that enables agents to rewind the environment to earlier states while preserving valid progress and carrying forward knowledge learned from abandoned exploration. The environment state moves backward while the agent's knowledge continues to move forward. ReTRAIL trains a shared policy with two complementary signals: State-Anchored GRPO compares alternative continuations from revisited states to improve execution, while a branch-advancement reward guides reflection through the progress of subsequent exploration. Experiments across four interactive benchmark MineSweeper, Sokoban, ALFWorld and ScienceWorld show that simply adding a rewind primitive provides limited benefit and can even degrade performance. In contrast, ReTRAIL enables agents to rewind from unproductive states and use insights from abandoned branches to guide subsequent exploration. These results demonstrate the value of coupling environment rewinding with experience reuse within an ongoing task for long-horizon task solving. The code is available at https://github.com/whi497/ReTRAIL.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。