When a Verified World Model Still Loses: Play-Adequacy vs Prediction-Accuracy in LLM-Synthesized Code World Models

Martín, Javier Aguilar

–arXiv.org Artificial Intelligence 

A central observation in recent work on LLMs for game playing is that a small language model plus a well-specified world model plus classical search can outperform a much larger model used as a direct policy. The Code World Model (CWM) paradigm makes this concrete: an LLM is prompted with a game's rules and some sampled trajectories and asked to synthesize a fully executable implementation of the game's transition dynamics. A classical planner -- typically Monte Carlo Tree Search (MCTS) (Coulom, 2006) -- then searches over the synthesized world model, interacts with a referee (the true game), and is evaluated in an arena. We reproduce this baseline on tic-tac-toe and Connect Four (Section 3.1): LLM-synthesized CWMs refined to transition accuracy 1.0 and paired with UCT-MCTS (Monte Carlo tree search with the UCT--upper confidence bounds applied to trees--selection rule (Kocsis and Szepesv ari, 2006)) dominate the same LLM used as a direct policy by wide margins (e.g., 29-1 in Connect Four), reproducing the direction of the result in Lehrach et al. (2025) on known games. Synthesis is trivially cheap: total API cost across all runs in this paper is approximately $2, with roughly $0.001-0.005