GVGAI-LLM: Evaluating Large Language Model Agents with Infinite Games

Yuchen Li, Cong Lin, Muhammad Umair Nasir, Philip Bontrager, Jialin Liu, Julian Togelius · DOI

Abstract

Researchers have introduced GVGAI-LLM, a new benchmark that transforms the General Video Game AI framework into a rigorous testbed for Large Language Model (LLM) agents. By converting symbolic game rules and ASCII-based levels into natural language prompts, the study reveals that even the most advanced models struggle significantly with spatial reasoning, long-term planning, and maintaining "symbolic identity" in dynamic environments.

Introduction

While LLMs excel at static knowledge retrieval and code generation, their ability to act as autonomous agents in dynamic, rule-based environments remains a significant challenge. Most existing agent benchmarks are either too simple, focus on instruction following, or are "static," allowing models to potentially overfit to specific tasks during training.

To address this, the authors leverage the General Video Game AI (GVGAI) framework, which utilizes a formal Video Game Description Language (VGDL). Because VGDL allows for the rapid procedural generation of new games and levels, it creates a virtually "infinite" set of challenges, making it nearly impossible for a model to succeed simply by memorizing training data. This benchmark evaluates sequential decision-making in structured symbolic domains.

Methodology

The authors developed a pipeline to bridge the gap between symbolic game engines and language models through three primary stages:

The GVGAI-LLM pipeline: from game engine to LLM decision.
  1. The Translator: This module parses formal VGDL scripts (e.g., avatar > key = > killSprite) and renders them into human-readable logic (e.g., "If the avatar touches a key, the key disappears and the avatar obtains it").
  2. State Serialization: Game scenes are converted into compact ASCII grids. To assist the models, "Coordinate Taggers" map entities to specific row, col positions and provide "Verbose Grounding"—declarative facts about adjacent tiles.
  3. Zero-Shot Prompting: Unlike agents using reinforcement learning, these LLM agents receive a fresh prompt at every time step containing the rules, the current map, and available actions. They have no memory of previous steps, forcing them to reason purely based on the current state.

Beyond standard win rates, the paper introduces the Meaningful Step Ratio (MSR), measuring the percentage of actions that actually changed the game state, and Step Efficiency, comparing agent progress to a theoretical maximum.

Experimental Setup

The benchmark utilizes the GVGAI framework, consisting of 118 unique games (arcade, puzzle, and navigation) and 540 total levels. A curated subset of six representative games—Aliens, Boulderdash, Escape, Realsokoban, Sokoban, and Zelda—was used for deep-dive comparisons between models including GPT-4o, GPT-o3-mini, Gemini 2.5 Pro, and DeepSeek-r1.

Key Insights and Results

Spatial and Symbolic Reasoning Gaps

Even with coordinate tags, LLMs frequently misinterpret 2D layouts, often reversing vertical orientations or assuming objects are adjacent based solely on their line position in an ASCII map. Furthermore, models suffer from "Symbolic Identity Confusion," losing track of the "self" when state changes occur (e.g., an avatar becoming avatar_with_key).

Performance Analysis

Results indicate a general failure across most models. GPT-4o-mini, for instance, achieved an overall win rate of only 10.27% across the full 118-game suite. Specialized search algorithms like Monte Carlo Tree Search (MCTS) still dominate, often achieving 100% win rates where LLMs score near zero.

Win rates of various LLMs across different GVGAI games and levels.

However, "reasoning" models like GPT-o3-mini and DeepSeek-r1 showed promise. DeepSeek-r1 achieved a 50% win rate in Sokoban, a game requiring intense logical planning. Despite these gains, LLM agents remain two to three orders of magnitude slower than symbolic search methods; while MCTS makes a move in 0.04 seconds, GPT-o3-mini averages 35.94 seconds per move.

Conclusion

The primary limitations of current LLM agents are computational cost, latency, and fundamentally flawed spatial reasoning. Current models lack an internal "world model" capable of understanding 2D physics and adjacency as humans do. Future work may shift from pure agency to using LLMs to design new game rules and levels, leveraging their generative capabilities within the GVGAI framework.

Summary updated

BibTeX
@misc{li2025gvgai,
  author = {Yuchen Li and Cong Lin and Muhammad Umair Nasir and Philip Bontrager and Jialin Liu and Julian Togelius},
  title = {{GVGAI-LLM: Evaluating Large Language Model Agents with Infinite Games}},
  year = {2025},
  eprint = {2508.08501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.08501},
}
Figure