Agima 训练框架让智能体先想象后果再行动
Train An Imaginative Agent
arXiv 新论文 Agima,让一个模型先脑补动作画面再决定怎么走,Sokoban 上比纯动作规划器解出率高 20 倍。
arXiv 论文提出 Agentic Imagination(Agima)训练框架,用单个 omni 模型同时负责提出动作、生成动作后果图像并基于想象结果做决策。方法分两步:先用 SFT 把策略与世界建模统一到一个模型,再用智能体强化学习教模型利用想象出的未来做规划。在 Maze2D、Sokoban、Pacman、PushT 四个环境中,仅用两箱 Sokoban 做 SFT 训练的模型能解出 40% 的四箱谜题,而纯动作规划器只能解 2%。RL 之后模型还涌现出新行为:只在必要时前向思考,并在关键决策点更频繁地分支。
Train An Imaginative Agent
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/.