利用陷阱预判世界模型引导黑盒大语言模型智能体
Steering Black-Box Large Language Model Agents with Pitfall Anticipation World Model
AI总结:
本研究提出陷阱预判世界模型(PAWM),通过预判多步未来中的潜在陷阱引导黑盒LLM智能体,经两阶段训练后在ScienceWorld和WebArena-Lite数据集上分别提升Claude Sonnet 4.5性能24.3%和7.7%,效果优于基线。
摘要:
前沿黑盒大语言模型(LLM)智能体擅长长程推理与精准动作生成,但在特定智能体任务中,它们缺乏对该特定环境如何展开的内在知识。世界模型提供了一种自然的解决方案,通过预见环境对智能体即将采取的动作的响应,为智能体提供特定环境知识。现有针对LLM智能体的世界模型主要是在每一步预测下一个观测结果,这一方法成本高昂且往往无效,因为单个观测结果提供的与任务相关的指导有限,且并非每一步都需要预见。这引出了一个关键问题:世界模型应预测什么,以及何时在智能体任务中调用它?我们的初步研究表明,当世界模型在有限的多步未来中预判陷阱时,其指导作用最为显著。基于此,我们提出陷阱预判世界模型(PAWM),该模型在潜在陷阱出现时选择性介入,并预测即将发生的失败,以引导智能体避开它。PAWM分两个阶段训练:首先在带有智能体陷阱标注的合成数据上进行监督微调(SFT),随后与黑盒LLM进行GRPO协同训练,以在目标环境中进一步优化它。PAWM在ScienceWorld上将Claude Sonnet 4.5的性能提升了24.3%,在WebArena-Lite上提升了7.7%,优于一系列基线模型。这些结果表明,PAWM为黑盒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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。