Think Offline, Act in Real Time: Self-Improving Visual Game Agents through Code

Zipeng Qiu, Shusheng Xu, Jiale Li, Yukun Zhou, Chenyue Li +3 more
11/18/2026
cs.AI

Official code: TabibitoQZP/SIGame (0 stars, Python, last commit 2026-11-19).

Abstract

Pre-trained models can read screens and reason about games, yet on an unfamiliar game, an agent still has to learn to play. We ask how an agent can self-improve on such a game from a few of its own attempts, in real-time visual games where the agent sees only the screen and the game keeps running while the agent thinks.

Show full abstract

We study two kinds of policy that can carry this improvement. In model as policy, a model selects actions during play; we adapt real-time chunking so that committed actions keep executing while the model reasons, and train a 2B controller for this interface. In code as policy, a model writes, tests, and revises a program between attempts, and the program acts during play. Across 170 GameWorld tasks, with at most eight one-minute executions per run, code as policy reaches 47.80% mean progress, against 30.90% for our trained controller, and leads in all five game categories. Improving the controller's weights on a single game, by contrast, yields only modest gains. These results favor letting a model think offline and storing what it learns in a program that acts in real time. Project repository: https://github.com/TabibitoQZP/SIGame

View on arXivView PDF

Code Implementations(1)

TabibitoQZP/SIGameOfficial100%
00Python, ShellNov 17, 20261 weeks ago

Similar Papers

Cite this paper

@article{qiu2026think,
  title  = {Think Offline, Act in Real Time: Self-Improving Visual Game Agents through Code},
  author = {Zipeng Qiu and Shusheng Xu and Jiale Li and Yukun Zhou and Chenyue Li and Wenshuang Li and Tongkai Yang and Binhang Yuan},
  year   = {2026},
  eprint = {2611.24590},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.24590v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.24590.svg)](https://codeofpaper.com/paper/2611.24590)

Discussion