When a Verified World Model Still Loses: Play-Adequacy vs Prediction-Accuracy in LLM-Synthesized Code World Models
Abstract
Large language models can synthesize a game's rules as executable code - a Code World Model (CWM) - which a classical planner then searches over. Such models are typically accepted when they reach high transition accuracy on sampled trajectories. We argue this is the wrong notion of adequacy for planning. We show four things. (1) An LLM-synthesized CWM can pass a sampling gate at 100% transition accuracy and be state-accurate on the planner's own search distribution, yet lose systematically at play, because the it gets wrong is exactly the pivotal dynamics; the play cost of the omitted rule is (seed-clustered 95% CI , ). We call this the verified-vs-correct gap, and confirm it end-to-end through the synthesis pipeline. (2) The harm follows a quantitative law, , whose gate-miss factor is proven exact and whose play cost is empirically bounded. (3) The failure is not repaired by more data: LLM synthesis behaves as rule translation, not rule inference, and did not infer the omitted rule across models (GPT-5.x) and data regimes (including DAgger and targeted examples). (4) The same mechanism recurs on the belief-inference function of imperfect-information CWMs: we prove a coverage bound (a size- gate is identifying when ), explaining why shallow games such as Kuhn poker show no gap, and hand-construct Beacon, a verified-but-wrong inference function that passes the gate yet loses every game. These results suggest adequacy for planning-oriented world models should be measured on the search distribution or by play directly, not by prediction accuracy on sampled transitions.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
- Comments
- 41 pages, 4 figures. Code and reproduction log: https://github.com/JaviMaligno/code-world-models
Related papers
Coding4Games: Can Modern Coding Agents Play Modern Video Games?
Shared title terminologycs.AIShifang Zhao, Haoyu Wang, Yuyang Yin et al.
Agent psychometrics: Task-level performance prediction in agentic coding benchmarks
Shared title terminologycs.AIChris Ge, Daria Kryvosheieva, Daniel Fried et al.
SeerGuard: A Safety Framework for Mobile GUI Agents via World Model Prediction
Shared title terminologycs.AIXue Yu, Bo Yuan, Kailin Zhao et al.
Do Coding Agents Need Executable World Models, Simplification, and Verification to Solve ARC-AGI-3?
Shared title terminologycs.AISergey Rodionov
On Utilization of Edge-AI for condition monitoring towards predictive maintenance: A use case in dairy processing using explainable AI
Shared title terminologycs.AIRahul Umesh Mhapsekar, Norah O'Shea, Omer Ali et al.
PROVE: Mitigating Long-Horizon LLM Collusion with Reinforcement Learning from Verified Evidence
Shared title terminologycs.AIHaochen Luo, Jie Fu, Mukai Li et al.