GTAGym: Real AAA Game Tasks Environment for Evaluation and Reinforcement Learning

Jiajun Chen, Shicheng Fang, Jiahao Lu, Yuxin Wang, Xipeng Qiu

TL;DR

GTAGym introduces a high-fidelity environment and benchmark (GTAVBench) for training and evaluating AI agents in Grand Theft Auto V. By automating task verification through engine states and providing a scalable reinforcement learning (RL) environment generator, it bridges the gap between simple sandbox games and complex AAA titles, revealing that even frontier LLMs struggle with the dynamic control required for real-world-like navigation and interaction.

What Problem Does This Paper Address?

Evaluating AI agents in complex, open-world AAA games has traditionally been a manual, human-intensive process. While these games offer a rich testbed for perception and reasoning, automatically verifying if an agent actually completed a mission objective is non-trivial. Without automatic verification, applying Reinforcement Learning (RL) to these high-stakes environments is nearly impossible.

Existing benchmarks either use simplified "sandbox" worlds (like Minecraft) or rely on offline video analysis, which lacks the interactivity needed for true agent development. The authors tackle this by creating a framework that can programmatically verify outcomes in a real AAA game environment.

Methods

The authors present GTAGym, a framework built to handle the messiness of AAA gameplay:

  • Engine-State Verification: Instead of relying on vision-based "milestone matching," GTAGym hooks directly into the game engine (using a Babylon.js reconstruction) to check success/failure predicates (e.g., "Is the agent within 3m of the target?").
  • Parallel Web Execution: A web server provides a screenshot-and-action interface, allowing for scalable, parallel evaluation of agents using standard keyboard and mouse controls.
  • The Codex Harness: For the more challenging "AGI" branch of the benchmark, the authors use a harness that mimics real gameplay—instructions appear only once at the start, and the harness automatically compresses long interaction histories to maintain model context.
  • Scalable RL Generation: A template-based generator allows researchers to create thousands of unique training instances by sampling parameters like route length, turn count, and actor speed.

Datasets

The paper introduces GTAVBench, a suite of 150 tasks:

  • Online 3D Track (103 tasks): Reconstructed from GTA V main-story missions across nine categories (Road, On-foot, Aquatic, Vertical, Aerial, Indoor, Following, Interception, Evasion).
  • Image-based Track (47 tasks): Focused on shooting and sniping using actual GTA V imagery.
  • Native GTA V Tasks: 100 tasks used to test the "sim-to-real" transfer of trained agents back into the original, un-reconstructed game.
Overview of the GTAVBench task suite, showing various navigation and interaction categories.

Key Insights and Ideas

  • The "Dynamic Control" Wall: While frontier models like GPT-6 excel at simple navigation (on-foot, indoor), they hit a wall when tasks require sustained, reactive control. Aerial navigation, police evasion, and vehicle interception remain extremely difficult.
  • Calibration vs. Perception: Most agent failures aren't because they don't see the goal; they fail at calibration (choosing the right duration/magnitude of a turn) and regulation (adjusting maneuvers as the situation evolves).
  • The Latency Penalty: In a "real-time" setting where the game doesn't pause for the model to think, accuracy plummeted by over 22%. This highlights that inference speed is just as critical as reasoning for embodied agents.
  • Sim-to-Real Transfer: Training a model (Qwen3.8-27B) on simple generated on-foot tasks actually improved its performance on completely different, native GTA V missions, suggesting that basic spatial reasoning skills are highly transferable.

Key Results

  • Top Performance: GPT-6-Astra achieved the highest overall accuracy at 70.9% on the GTAVBench-AGI branch.
  • Human Gap: There is still a significant gap compared to the human baseline of 89.8%.
  • RL Gains: Using LoRA RL, the Qwen3.8-27B model improved its success rate on native GTA V tasks from 15% to 23%.
  • Error Recovery: GPT models are much better at recovering from mistakes. Astra restored progress in 65.7% of error cases, while non-GPT models hovered around 21-25%.
Accuracy of six frontier models on GTAVBench-AGI, highlighting strengths in navigation and weaknesses in interaction.
Recovery rates within ten decisions, showing GPT models' superior ability to correct course after an error.

Limitations and Future Work

The authors acknowledge that while GTAGym is a major step forward, several hurdles remain:

  • High-Speed Interaction: Current models are too slow for unpaused, high-speed gameplay. The inference-and-action cycle is often too slow for the task's response window.
  • Complex Maneuvers: Tasks like landing a plane or evading police require a level of continuous control that current discrete-action LLM agents struggle to provide.
  • Future Directions: Promising directions include reducing inference latency and developing better "closed-loop" control mechanisms that can handle the rapid state changes of AAA environments.

Summary updated

Abstract

AAA games offer a rich testbed for evaluating agent perception, reasoning, and control. However, evaluating whether agents can complete tasks in AAA games is challenging and often human-annotated because task outcomes are often difficult to verify automatically, let alone applying it for Reinforcement Learning (RL). We introduce GTAGym, an environment and framework for evaluation and RL on GTA V tasks. Its evaluation benchmark, GTAVBench, derived from GTA V main-story missions, contains 103 online tasks reconstructed across nine task families, alongside 47 image-based shooting and sniping tasks using GTA V imagery. A web server provides access to the online environment and evaluation interface, supporting parallel testing through screenshots and keyboard-mouse actions with automatic engine-state outcome checks. We evaluate six frontier LLMs on GTAVBench with textual task instructions and on its GTAVBench-AGI branch, where instructions appear only in the first screenshot and a harness automatically compresses interaction history. The best configuration achieves 70.9% overall accuracy in GTAVBench-AGI, yet aerial navigation, evasion and interception remain difficult. GTAGym also provides a scalable generator that samples task parameters within user-specified ranges and option sets under fixed templates, creating batches of 3D and image-based shooting environments for RL with automatic reward and termination signals. LoRA RL of Qwen3.8-27B on generated on-foot navigation tasks improves the in-domain performance and transfers to out-of-domain task categories, and native GTA V tasks from 15% to 23%.
BibTeX
@misc{chen2026gtagym,
  author = {Jiajun Chen and Shicheng Fang and Jiahao Lu and Yuxin Wang and Xipeng Qiu},
  title = {{GTAGym: Real AAA Game Tasks Environment for Evaluation and Reinforcement Learning}},
  year = {2026},
  eprint = {2611.13028},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.13028},
}
Figure