Verified World Models Can Still Fail in AI Planning

Javier Aguilar Mart\'in· July 17, 2026 View original

Summary

This research demonstrates that Large Language Model (LLM)-synthesized Code World Models (CWMs) can achieve high prediction accuracy yet systematically fail in actual game play. The study argues that "play-adequacy" on the planner's search distribution is a more critical metric than simple prediction accuracy on sampled transitions, revealing a "verified-vs-correct gap."

Large Language Models (LLMs) can generate executable code representing game rules, known as Code World Models (CWMs), which are then used by classical planners. These models are typically deemed adequate if they achieve high transition accuracy on sampled trajectories. However, this paper argues that such prediction accuracy is an insufficient measure of a CWM's true utility for planning. The research presents four key findings. First, a CWM can exhibit 100% transition accuracy and over 98% state accuracy on a planner's search distribution, yet consistently lose in actual gameplay. This "verified-vs-correct gap" occurs because the small percentage of errors often pertains to pivotal game dynamics. Second, this harm follows a quantitative law, where the danger is proportional to the play cost of the omitted rule and inversely related to its rarity. Third, the study shows that increasing training data does not fix this issue, as LLM synthesis acts more as rule translation than rule inference, failing to infer critical omitted rules across different models and data regimes. Finally, the same mechanism applies to belief-inference functions in imperfect-information CWMs, where a verified-but-wrong function can pass accuracy gates but still lead to systematic losses. These results emphasize that adequacy for planning-oriented world models should be measured directly by play performance or on the planner's search distribution, rather than solely by prediction accuracy on sampled transitions.

Why it matters

This research highlights a critical flaw in how AI world models are often evaluated, demonstrating that high prediction accuracy doesn't guarantee effective performance in planning tasks. Professionals developing AI agents for complex environments must shift their evaluation metrics to ensure true operational adequacy.

How to implement this in your domain

  1. 1Re-evaluate existing AI agent world models using play-based metrics rather than just prediction accuracy.
  2. 2Design evaluation strategies that test world models on the planner's specific search distribution.
  3. 3Focus on identifying and mitigating "pivotal dynamics" errors that disproportionately impact planning outcomes.
  4. 4Develop methods for direct play testing of LLM-synthesized code world models.
  5. 5Consider the implications for safety-critical AI systems where small errors can have large consequences.

Who benefits

AI DevelopmentGamingRoboticsAutonomous Systems

Key takeaways

  • High prediction accuracy in LLM-synthesized world models does not guarantee effective planning.
  • A "verified-vs-correct gap" exists where small errors in pivotal dynamics lead to systematic failures.
  • Evaluation should focus on "play-adequacy" on the planner's search distribution, not just sampled transitions.
  • More data or different LLMs may not fix fundamental rule inference issues.

Original post by Javier Aguilar Mart\'in

"arXiv:2607.14169v1 Announce Type: new 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…"

View on X

Originally posted by Javier Aguilar Mart\'in on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses