训练一个富有想象力的智能体
Train An Imaginative Agent
AI总结:
该研究提出Agima框架,训练智能体在行动前想象后果,经SFT和RL训练后,在四个游戏环境中泛化到难设置,解决推箱子谜题性能优于仅动作规划器。
摘要:
在推箱子(Sokoban)游戏中,一个看似合理的推动操作可能会导致谜题无法解决。为避免此类错误,智能体必须在执行动作前预判其后果,尤其是在真实环境反馈稀疏或动作不可逆的情况下。我们提出智能体想象框架(Agentic Imagination, Agima),该框架训练智能体在行动前进行想象,即具备想象力。Agima训练一个单一的全模态模型,用于提出动作、生成动作结果的图像,并对这些想象的未来进行推理,以决定在真实环境中执行什么。智能体无需拘泥于单一计划,可模拟一系列动作、探索替代方案并比较可能的未来。我们首先使用监督微调(Supervised Fine-Tuning, SFT)在单一全模态模型内统一策略与世界建模,这使智能体能够预测未来结果并执行基础形式的想象,如前瞻性思考和反事实分支。随后,我们使用智能体强化学习(Reinforcement Learning, RL)教导智能体利用其想象的未来进行推理,并将其有效用于规划。在涵盖Maze2D、推箱子(Sokoban)、吃豆人(Pacman)和PushT的四个环境中,Agima可泛化到训练期间未见过的更困难设置。仅在两箱推箱子上使用SFT训练时,Agima在每五步仅查看一次真实棋盘的情况下,解决40%的四箱谜题,而仅使用动作的规划器仅解决2%。经过RL后,Agima在使用想象方面出现新行为:它学习了SFT阶段未见过的新统一格式,学会仅在必要时进行前瞻性思考,并在关键决策点更频繁分支。能够想象其动作走向的智能体可学习何时何地进行前瞻,即进行规划。项目页面:this https URL。
英文摘要:
A seemingly reasonable push in Sokoban can make the puzzle unsolvable. To avoid such mistakes, an agent has to anticipate the consequences of its actions before execution, especially when feedback from the real environment is sparse or actions are irreversible. We introduce Agentic Imagination (Agima), a training framework that trains an agent to imagine before acting, i.e. to be imaginative. Agima trains a single omni model to propose actions, generate images of their outcomes, and then reason over these imagined futures to decide what to execute in the real environment. Rather than committing to a single plan, the agent can simulate a sequence of actions, explore alternatives, and compare possible futures. We first use supervised fine-tuning (SFT) to unify policy and world modeling within a single omni model. This enables the agent to predict future outcomes and perform basic forms of imagination, such as forward thinking and counterfactual branching. We then use agentic reinforcement learning (RL) to teach the agent to reason with its imagined futures and use them effectively for planning. Across four environments spanning Maze2D, Sokoban, Pacman, and PushT, Agima generalizes to harder settings unseen during training. Trained with SFT alone on two-box Sokoban, Agima solves 40% of four-box puzzles while seeing the real board only once every five moves, compared with an action-only planner that only solves 2%. After RL, new behaviors emerge in how Agima uses its imagination: it learns a new unified format that was unseen during the SFT stage, learns to conduct forward thinking only when necessary, and branches more frequently at critical decision points. An agent that can picture where its actions lead can learn when and where to look ahead, that is, to plan. Project page: https://agima.net/.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。