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

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

TL;DR

This paper introduces GVGAI-LLM, a novel benchmark designed to rigorously evaluate the reasoning and spatial problem-solving abilities of Large Language Models (LLMs) in diverse video game environments. Their experiments reveal significant, persistent limitations in current LLMs for spatial understanding and planning, even with improved prompting techniques, highlighting the need for further research in these areas.

What Problem Does This Paper Address?

Existing benchmarks for LLMs, while valuable, often focus on static language understanding or code generation. There's a growing need for benchmarks that can assess LLMs' capabilities in dynamic, interactive environments requiring real-time decision-making, spatial reasoning, and planning. Many current LLM benchmarks are also showing signs of saturation, meaning state-of-the-art models are performing near-perfectly, limiting their utility for pushing research boundaries. The authors aim to fill this gap by creating a benchmark that tests LLMs' agentic behavior in complex, rule-based 2D games, which are more representative of real-world sequential decision-making tasks.

Methods

The core of GVGAI-LLM is built upon the General Video Game AI (GVGAI) framework, which uses a formal Video Game Description Language (VGDL) to define games. The authors extend this framework to interface with LLMs:

  • Symbolic Game State Representation: Game environments are represented using compact ASCII character grids, making them directly processable by LLMs without requiring visual input or internal game simulators.
  • Natural Language Prompting: VGDL rules and game states are translated into natural language descriptions, including game mechanics, available actions, and strategy suggestions. This forms a structured prompt for the LLM.
  • Zero-Shot and Contextual Prompting: The primary evaluation is done in a zero-shot setting, where LLMs must perform tasks with no prior examples. They also explore a contextual prompting variant that includes a short history of recent actions and outcomes.
  • Interpretable Metrics: Beyond traditional win rates, they introduce metrics like "meaningful step ratio" (proportion of actions that affect the environment) and "step efficiency" to provide a more nuanced understanding of agent behavior.

Datasets

The benchmark itself, GVGAI-LLM, is the primary dataset. It comprises over 100 diverse 2D arcade-style games, with the potential for infinite game generation through procedural content generation (PCG) and manual creation. This allows for rigorous evaluation and prevents models from overfitting to a fixed set of games.

Key Insights and Ideas

  • LLMs Struggle with Spatial Reasoning: Even with structured ASCII representations and explicit coordinate tagging, LLMs consistently make spatial errors, misinterpreting distances, adjacency, and object positions. This suggests a fundamental limitation in their ability to ground language in spatial contexts.
  • Symbolic Identity Confusion is Prevalent: LLMs sometimes fail to track the identity of game entities when they transform (e.g., picking up a key). They may treat the transformed entity as entirely new, indicating a failure in symbolic reasoning.
  • Behavioral Misalignment is Common: Agents often exhibit "inaction" (choosing ACTION_NIL when meaningful actions are possible) or "misdirected action" (e.g., repeatedly walking into walls). This points to difficulties in translating game state understanding into effective, goal-directed actions.
  • Contextual History Doesn't Always Help: While non-reasoning models can benefit from interaction history, reasoning-oriented models sometimes perform worse with contextual prompts, suggesting they may already internalize history through their reasoning process.
  • Boulderdash is Unsolvable for Current LLMs: This game, which combines navigation, puzzles, and dynamic elements, consistently results in near-zero win rates for all tested LLMs, highlighting a significant challenge.

Key Results

  • Broad Failure Across Models: Even state-of-the-art LLMs like GPT-40-mini and Gemini-3-flash fail to complete the majority of games in GVGAI-LLM, with win rates often below 10%.
  • Reasoning Models Outperform Non-Reasoners: Models designed with stronger reasoning capabilities generally achieve higher scores and win rates, though still far from solving most games.
  • Search-Based Agents Lead: Traditional search-based agents (like MCTS) significantly outperform LLMs in terms of decision speed and often achieve higher win rates, especially in complex games.
  • Spatial Grounding Limitations: While explicit coordinate tagging and verbose spatial grounding improve performance slightly, they do not fully resolve spatial reasoning issues.
  • Decision Time Gap: LLM agents are orders of magnitude slower than MCTS, taking seconds per move compared to milliseconds.

Limitations and Future Work

  • Limitations:
    • The current sample size (n=5 episodes per game-level) limits statistical power for detecting subtle differences between models or prompt strategies.
  • The benchmark is primarily focused on symbolic representations; visual input is not directly handled.
  • LLMs struggle with long-horizon planning, a limitation inherent in their current architectures.
  • Future Work:
    • Extend GVGAI-LLM to support LLMs in designing games, not just playing them, by generating new rules and levels.
  • Develop more sophisticated prompting techniques and spatial grounding methods.
  • Explore multimodal interfaces to incorporate visual information.
  • Investigate methods to improve LLMs' symbolic reasoning, identity tracking, and planning capabilities.

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