AIFeed

From Watching to Playing: Auto-Playing Video Games with a Self-Constructed Code World Model

Summary

arXiv:2611.35702v1 Announce Type: new Abstract: Vision-language model (VLM) agents can play video games by selecting actions from successive screenshots, but calling a VLM at each decision step incurs prohibitive time and token costs. Compiling a VLM's game knowledge into reusable code would amortize these costs, yet raw visual gameplay entangles autonomous physics with player actions, obscuring the transition dynamics a compiled model needs. To address both challenges, we present PlaySmith, an agent harness that constructs three modules from visual gameplay. First, a visual Observer detects game objects and tracks them across frames with persistent identity. Second, action-conditioned displacement (ACD) links actions to object motion, guiding construction of a stateful Predictor that distinguishes action-driven motion from autonomous physics. Third, a controller uses the Predictor to evaluate candidate action sequences multiple steps ahead and executes the selected action. Across eigh…

Original text(via arXiv cs.AI)

Computer Science > Artificial Intelligence

Title:From Watching to Playing: Auto-Playing Video Games with a Self-Constructed Code World Model

Abstract:Vision-language model (VLM) agents can play video games by selecting actions from successive screenshots, but calling a VLM at each decision step incurs prohibitive time and token costs. Compiling a VLM's game knowledge into reusable code would amortize these costs, yet raw visual gameplay entangles autonomous physics with player actions, obscuring the transition dynamics a compiled model needs. To address both challenges, we present PlaySmith, an agent harness that constructs three modules from visual gameplay. First, a visual Observer detects game objects and tracks them across frames with persistent identity. Second, action-conditioned displacement (ACD) links actions to object motion, guiding construction of a stateful Predictor that distinguishes action-driven motion from autonomous physics. Third, a controller uses the Predictor to evaluate candidate action sequences multiple steps ahead and executes the selected action. Across eight 2D browser games, PlaySmith achieves competitive scores relative to direct VLM gameplay using the same backbone, while consuming no VLM tokens during evaluation episodes per game and reducing mean per-step latency from 4.526 to 0.293 seconds. These results demonstrate that a self-constructed code world model can be more practical than direct VLM play in settings requiring repeated deployment.
Subjects:Artificial Intelligence (cs.AI)
Cite as:arXiv:2611.35702 [cs.AI]
(or arXiv:2611.35702v1 [cs.AI] for this version)
https://doi.org/10.48550/arXiv.2611.35702 arXiv-issued DOI via DataCite (pending registration)

Submission history

Access Paper:

  • HTML (experimental)

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by arXiv cs.AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗