用陷阱预判世界模型引导黑盒大语言模型智能体
研究论文 · 2026/10/27
前沿的黑盒大语言模型(LLM)智能体擅长长程推理和精确动作生成,但对特定任务环境缺乏内化知识。世界模型可通过预测环境对即将执行动作的响应来提供环境特定知识。现有世界模型主要逐步预测下一观测,成本高且信息有限,因为单个观测提供的任务相关指导有限,且并非每一步都需要预见。本文提出“陷阱预见世界模型”(PAWM),仅在潜在陷阱出现时选择性干预,预测即将发生的失败以引导智能体避开。PAWM分两阶段训练:先在标注智能体陷阱的合成数据上进行监督微调(SFT),再与黑盒LLM通过GRPO协同训练以在目标环境中进一步优化。实验表明,PAWM将Claude Sonnet 4.5在ScienceWorld上的性能提升24.3%,在WebArena-Lite上提升7.7%,优于多种基线。
该研究提出了一种高效的世界模型指导方式,通过选择性预见陷阱而非逐步预测,显著提升了黑盒LLM智能体在具体任务中的性能,为智能体与环境交互提供了新思路。
Frontier black-box Large Language Model (LLM) agents are proficient at long-horizon reasoning and precise action generation. However, when it comes to a specific agentic task, they have no internalized knowledge of how that particular environment unfolds. A world model offers a natural remedy, providing the agent with environment specific knowledge by foreseeing how the environment will respond to the action it is about to take. Prior world models for LLM agents mainly predict next observations at each step, which is costly and often uninformative because individual observations provide limited task-relevant guidance and not every step requires call for foresight. This raises a key question: what a world model should predict and when should it be invoked for agentic tasks? Our pilot study suggests that world model guidance is most useful when it anticipates pitfalls within a bounded multi-step future. Motivated by this, we introduce Pitfall Anticipation World Model (PAWM), which selectively intervenes when a potential pitfall arises and predicts the impending failure to steer the agent away from it. PAWM is trained in two stages: Supervised Fine-Tuning (SFT) on synthetic data labeled with agent pitfalls, followed by GRPO co-training with a black-box LLM to further optimize it in the target environment. PAWM improves Claude Sonnet 4.5 performance by 24.3% on ScienceWorld and 7.7% on WebArena-Lite, outperforming a range of baselines. These results demonstrate that PAWM provides an effective form of world model guidance for black-box LLM agents.