2026-12-04 · 专家 · 机器学习 · 计算机视觉

Predict the Product, Not the Observation: Product-Level World Models for Coding Agents

该论文提出了一个名为PreVision的训练方法,该方法通过将产品级世界模型预测内化到代理的推理中,来指导行动选择,从而提高编码代理的任务完成率和产品级预测能力。

更新于 2026-12-05。作者:Qingyao Li、Xinyi Dai、Di Yin、Xing Sun、Weiwen Liu、Weinan Zhang、Yong Yu。

中文摘要

世界模型预测环境如何响应行动而发生变化,帮助LLM智能体进行规划和学习。现有的智能体世界模型大多预测下一个观测值。然而,对于编码智能体来说,观测值往往无法反映程序行为中的有意义变化:编辑后,无论是否修复了错误,都会返回相同的确认信息,而本地测试的结果可能与官方结果不一致。我们认为,编码智能体的世界模型应该预测这些智能体构建的产品状态:代码是否通过官方测试,以及渲染的程序的运行行为。我们提出了PreVision,一种将产品级世界建模内化的训练方法,以指导行动选择。通过在训练过程中将验证过的产品预测写入智能体的推理过程中关键决策点,PreVision教导智能体预测结果并基于自己的预测采取行动。在ProWM-Bench基准测试中,该测试评估了智能体和世界模型在相同真实仓库任务上的能力,PreVision在SWE-MM上的试验级任务成功率比仅使用智能体训练提高了10.4个百分点,在SWE-rebench V2 + ScaleSWE上提高了7.7个百分点,同时改善了产品级预测。这些结果表明,在智能体推理中学习预测产品结果可以将世界模型能力转化为更好的任务完成度。

英文摘要

World models predict how an environment changes in response to actions, helping LLM agents plan and learn. Existing agent world models mostly predict the next observation. For coding agents, however, observations often fail to reflect meaningful changes in program behavior: an edit returns the same confirmation whether or not it fixes a bug, and local tests can disagree with official outcomes. We argue that world models for coding agents should forecast the state of the product these agents build: whether the code passes official tests and how the rendered program behaves. We propose PreVision, a training approach that internalizes product-level world modeling to guide action selection. By writing verified product forecasts into the agent's reasoning at key decision points during training, PreVision teaches the agent to anticipate outcomes and act on its own predictions. On ProWM-Bench, which evaluates agent and world-model ability on the same real repository tasks, PreVision improves trial-level task success over agent-only training by 10.4 percentage points on SWE-MM and 7.7 points on SWE-rebench V2 + ScaleSWE, while also improving product-level prediction. These results show that learning to forecast product outcomes within the agent's reasoning translates world-model capability into better task completion.

解读

一句话总结

该论文提出了一个名为PreVision的训练方法,该方法通过将产品级世界模型预测内化到代理的推理中,来指导行动选择,从而提高编码代理的任务完成率和产品级预测能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt