cs.AINov 20, 2026

Can Vision-Language Models Synthesize Executable Game-Playing Programs?

Authors: Yao Tong, Jiaxin Qi, Dingyu Zhang, Jianqiang Huang

Organizations: Hangzhou Institute for Advanced Study University of Chinese Academy of Sciences · Computer Network Information Center Chinese Academy of Sciences

Abstract

Recent advances in vision-language models (VLMs) have endowed multimodal agents with increasingly strong visual perception and long-horizon reasoning capabilities, making VLM-based autonomous game playing feasible. Existing game benchmarks primarily evaluate whether an agent can select appropriate actions from the current visual state across different scenarios and games. However, most of them adopt a step-by-step interaction paradigm where the current visual observation is sent to the agent before each action. In practical deployment, this paradigm introduces two fundamental limitations: the game loop must wait for model inference, making real-time interaction impractical, and repeated VLM calls incur substantial cost. Therefore, we propose PlayScriptBench, a script-based game benchmark that evaluates whether VLMs can synthesize an executable game-playing program from game states. This setting jointly evaluates visual grounding, understanding of game dynamics, long-horizon strategic reasoning, and executable program synthesis, providing a more comprehensive assessment of game-playing agents. To support more tractable evaluation for current general-purpose VLMs, we further introduce a four-stage pipeline --- Explore, Perception, API Construction, and Strategy Composition --- that decomposes controller synthesis into game exploration, state perception, interface construction, and strategic control, enabling agents to progressively construct an executable program. Experiments on 16 games spanning 4 genres show that even strong VLMs struggle on our benchmark, revealing a substantial gap between passive visual game understanding and executable closed-loop game control. These results establish script-based controller synthesis as a complementary direction for benchmarking VLM-based game-playing agents.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. From Game Generation to Game Playing: Fully Automated Ability Training for Vision-Language-Action Models

    Nov 8, 2026Changran Liu, Qi Wu, Wenchao Ma +2VLA TrainingVideo Game Playing

  2. GameVerse: Can Vision-Language Models Learn from Video-based Reflection?

    Mar 1, 2026Kuan Zhang, Dongchen Liu, Qiyue Zhao +5Vision-Language ModelsVLM Evaluation

  3. AtariBench: Evaluating Spatiotemporal Reasoning of Vision-Language Models in Atari Gameplay

    Nov 5, 2026Mingjia Huo, Yao Fu, Bo Chang +8Temporal Reasoning in VLMs