Predict the Product, Not the Observation: Product-Level World Models for Coding Agents
Abstract
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.
Community
We introduce PreVision, a training approach that internalizes product-level world modeling directly into a coding agent's reasoning, forecasting official test outcomes and rendered product behavior rather than noisy tool observations. On ProWM-Bench (569 items across SWE-bench Multimodal and held-out SWE-rebench V2 + ScaleSWE repositories), PreVision improves trial-level agent success over Agent-SFT by +10.4 pp on SWE-MM (54.7% -> 65.1%) and +7.7 pp on held-out repositories (56.9% -> 64.6%) while also improving product-level prediction.
- Code: https://github.com/SIMONLQY/PreVision
- Benchmark Dataset: https://huggingface.co/datasets/simonlqy/ProWM-Bench
I like the move from predicting an edit confirmation to predicting what the program will actually do. When a forecast says a patch will pass but execution disagrees, does the agent revise the patch, revise its forecast, or tend to repeat the same approach?
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- ANTE: Anticipate, Then Execute -- Learning Internal World Models for Coding Agents from Verified Beliefs (2026)
- Software World Models: From Consequence Prediction to Decision Value (2026)
- From Single-Actor Environments to Multi-Actor Event Worlds: Can LLMs Be Event World Models? (2026)
- VeriCUA: Learning Proactive Verification for Reliable GUI Agent Rewards (2026)
- Before They Can Solve: Predicting Post-Training Coding-Agent Performance from Base Models (2026)
- Which World-Model Errors Matter for Training Language Agents? (2026)
- MLE-World: Predicting Machine Learning Experiment Outcomes with a Learned World Model (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2612.04946 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 1
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper