PlayScriptBench evaluates whether models can turn game observations into executable game-playing programs. The paper changes the task from asking a model for each next action to testing a controller that must keep working through game states.
Why write a controller instead of calling the model every frame?
The authors argue that repeated calls to vision-language models make a live game wait for inference and add ongoing call costs. A generated controller instead has to connect perception, game dynamics and strategic decisions in executable code.
This setting tests more than a fluent description of a screenshot. The model must produce a program whose observations and actions remain useful when the game moves on. The researchers frame controller synthesis as complementary to existing action-by-action benchmarks.
What does the four-stage pipeline do?
The pipeline comprises Explore, Perception, API Construction and Strategy Composition. It separates learning about the game, recognising its current state, building a usable interface and implementing control decisions. The task combines visual grounding with executable program synthesis.
The benchmark contains 16 deterministic, bounded-state HTML5 games in four genres: runner, arcade, puzzle and platformer. A browser-based sandbox pauses games during model inference so the evaluation focuses on decisions rather than response speed.
What gap did the evaluation find?
The authors evaluate 13 frontier visual-language models and report that even strong systems struggle to produce reliable closed-loop controllers. Models that describe a static screenshot can still fail when their program must act during gameplay. The study uses stage-specific evaluation and ablations to distinguish perception and interface problems from strategic control.
Franklin's Movie2Game-Bench coverage examines a related demand for working, playable output. PlayScriptBench focuses specifically on programs that control existing games, rather than generating an adaptation from source material.
What should developers take from it?
The benchmark is useful for testing game-agent workflows that produce software rather than a sequence of model-selected actions. Franklin analysis: inspect intermediate interfaces and actual controller behaviour alongside the final score. Results on this bounded game set do not establish performance in arbitrary real-time games, and a paused evaluation is not a measurement of live response latency.
Comments