The official repository for paper "Game-RL: Synthesizing Multimodal Verifiable Game Data to Boost VLMs' General Reasoning".
This is the first work, to the best of our knowledge, that adapts game code to synthesize multimodal game data for training VLMs. When we apply Game-RL, which is simple GRPO on GameQA (synthesized via our Code2Logic approach), multiple cutting-edge open-source VLMs exhibit out-of-domain generalization. Remarkably, game data provides improvements comparable to general multimodal reasoning datasets (e.g. geometry/chart). More importantly, scaling up game diversity or game data volume consistently improves VLMs' generalizable reasoning capabilities. Our findings highlight scaling reinforcement learning in game environments as a promising direction for enhancing generalizable multimodal reasoning in foundation models.
[ ๐ Paper ] [ ๐ Project Website ]
[๐ค GameQA-140K Dataset ] [๐ค GameQA-5K Dataset ] [๐ค GameQA-text Dataset ]
[๐ค Game-RL-InternVL3-8B Model ] [๐ค Game-RL-InternVL2.5-8B Model ] [๐ค Game-RL-Qwen2.5-VL-7B Model ]
- [2026/02] ๐ฅAlibaba Group and Shanghai Jiao Tong University use our GameQA-140K dataset at scale in the DeepVision-103K dataset, which accounts for around 50% of its "visual logic problems".
- [2026/01] ๐ฅShanghai AI Lab uses our GameQA-140K dataset at scale in the MMFineReason dataset, which accounts for 87.65% of its "Puzzle/Game" samples.
- [2026/01] ๐ฅTHUML and ByteDance Seed use our Sokoban code for the synthesis of the Sokoban task samples in VisWorld-Eval (and the training data).
- [2026/01] ๐ฅ๐ฅOur work has been accepted by ICLR 2026! ๐๐๐
- [2025/11] ๐ฅDeepWisdom uses the maze-like games in our GameQA dataset in the VR-Bench benchmark, which evaluates video models' reasoning.
- [2025/11] ๐ฅShanghai Innovation Institute uses the games in our GameQA dataset for image editing reasoning tasks ("game-world scenarios"), developing the UniREditBench benchmark and the UniREdit-Data-100K training data.
Please give us a star โญ if you find this work helpful.
Vision-language reinforcement learning (RL) has primarily focused on narrow domains (e.g. geometry or chart reasoning). This leaves broader training scenarios and resources underexplored, limiting the exploration and learning of Vision Language Models (VLMs) through RL. We find video games inherently provide rich visual elements and mechanics that are easy to verify. To fully leverage the multimodal and verifiable rewards in video games, we propose Game-RL, constructing diverse game tasks for RL training to boost VLMsโ general reasoning ability. To obtain training data, we propose Code2Logic, a novel approach that adapts game code to synthesize reasoning data with unlimited examples and controllable difficulty gradation, thus obtaining the GameQA dataset of 30 games and 158 verifiable tasks. Remarkably, RL training solely on GameQA enables multiple VLMs to generalize across 7 diverse out-of-domain vision-language benchmarks, demonstrating the value of Game-RL for enhancing VLMsโ general reasoning. Furthermore, game data provides improvements comparable to general multimodal reasoning datasets (e.g. geometry/chart). More importantly, scaling up game diversity or game data volume consistently improves VLMs' generalizable reasoning capabilities. Our findings highlight scaling reinforcement learning in game environments as a promising direction for enhancing generalizable multimodal reasoning in foundation models.
The Code2Logic approach involves three main steps:
- Using LLMs to construct game code of the selected game (Sokoban).
- LLM-assisted design of the task templates including question and analysis templates based on the generated game code. Each task template condenses one type of reasoning pattern in the game.
- Using LLMs to construct a data engine that directly reuses the core game code from the first step, including functions like
move.
- After these main steps, the data engine is executed to fill in the task templates developed in Step 2 and generate data samples, as illustrated in the "Final Result" Section.
Our GameQA dataset provides diverse verifiable game tasks along with controllable difficulty, extending RL training scenarios for VLMs to the domain of video games.
- It encompasses 30 different games classified into 4 categories based on the core capabilities required to solve game tasks.
- Four games from different categories and their example data samples are illustrated in the image above.
- The GameQA data samples are also reasonably graded by difficulty (see ๐ค GameQA-140K).
RL Training solely on game data (GameQA) enables three VLMs (Qwen2.5-VL, InternVL2.5, InternVL3) to achieve consistent performance improvements across 7 diverse vision reasoning benchmarks, demonstrating strong out-of-domain generalization. These results suggest that the models have successfully learned transferable visual understanding and reasoning abilities through Game-RL.
Based on Qwen2.5-VL-7B, we applied the same training method on 5k GameQA samples, 8k samples from MAVIS, 8k Multimodal-Open-R1 samples, 8k MultiMath samples respectively, to conduct comparative training.
The GameQA-trained model is competitive compared to its counterparts trained on geometry or function data, where general vision benchmarks would be considered in-domain. These results suggest that GameQA enables stronger out-of-domain generalization, even when using less data from a mismatched domain.
-
Game Diversity: Scaling up game diversity (e.g., 4 games โ 20 games) makes better generalization, enabling the model to acquire more robust visual understanding and reasoning abilities.
-
Data Volume: Model's performance score demonstrates an overall upward trend on 7 general vision benchmarks as the amount of training data increases, indicating scaling up training game data volume effectively enhances the VLM's generalizable reasoning abilities.
The following steps will guide you on how to set up the environment, train, and evaluate the models.
-
Clone the Repository
git clone https://github.com/tongjingqi/Game-RL.git cd Game-RL -
Download the Dataset Download the ๐ค GameQA-5K dataset. Please ensure the dataset is placed in an appropriate location within the project, e.g.,
Game-RL/data/GameQA-5K/. -
Setup Environment
# Install main dependencies pip install vllm==0.7.3 pip install flash-attn --no-build-isolation # Install ms-swift cd ms-swift pip install -e . cd ..
-
Training and Evaluation
-
Start the Reward Model First, you need to start the reward model API. Execute the following in the
Game-RLroot directory:bash scripts/reward_api.sh
Ensure this service starts successfully and runs in the background.
-
Start Training After the reward model is running, you can begin training the Qwen2.5-VL model. Execute the following in the
Game-RLroot directory:bash scripts/train_qwen2_5vl.sh
-
Model Inference Once training is complete, perform inference with your model to generate predictions. Execute the following in the
Game-RLroot directory:bash scripts/infer.sh
This will typically output a JSON file containing the model's predictions.
-
Evaluate Results Use the
eval.shscript to evaluate the JSON file output byinfer.sh. Execute the following in theGame-RLroot directory:bash scripts/eval.sh path/to/your/inference_output.json
(Please replace
path/to/your/inference_output.jsonwith the actual path to your inference output file.)Note on Evaluation Model: The evaluation in the paper follows the use of the
qwen2.5-72b-awqmodel. You can also configure the script to use other evaluation APIs or models as needed.In our work, the inference and evaluation configurations were unified across both the original open-source models and our trained models.
-
In this repository, we also provide the code used to generate samples for each game in GameQA - see the src/ directory. There are 30 directories in total - one for each game.
Apart from the code, each game directory contains:
- A README file describing the game tasks and code execution instructions
- A subdirectory with example samples
๐ Feel free to use the code directly to generate more samples, or adapt it to produce more types of training data for your specific requirements.
| 3D Spatial Perception and Understanding | Pattern Recognition and Matching | Multi-step Reasoning | Strategic Planning | |
|---|---|---|---|---|
| In Domain | 3D Maze Rubik's Cube 3D Reconstruction |
Tangram Freecell Tetris Zuma Spider Solitaire Color Hue |
Langton's Ant 2D Turing Machine Word Search Tents Rhythm Game Star Battle |
Sokoban Maze TicTacToe Ultra TicTacToe Space Invaders |
| Out of Domain | Pyramid Chess Minecraft |
Jewel2 Klondike |
Sudoku Lifegame Minesweeper |
Snake Chess Ranger Pacman |
We would like to acknowledge the valuable efforts of the following individuals, whose work on the data synthesis and validation processes was of great importance to the development of this project: (Sorted by last name, then first name)
Ruifeng Chen, Yingqian Huang, Yutong Ke, Hengxi Lin, Yuanhao Ni, Qingyun Shi, Haitian Wang, Xiaoyong Wang, Yufei You, Juntao Zhang, Weixin Zhang, Yang Zhang
We would like to acknowledge the valuable efforts of the following individuals from ByteDance, who provide API access for us to test models and give us some technical instructions.
Zhen Wang, Tao Liang, Zhihui Fei, Mingyang Wan, Guojun Ma
Our work also builds upon or makes use of the ModelScope Swift (ms-swift) framework, an excellent toolkit for efficient large model training and inference. We express our sincere gratitude to the developers of ms-swift for their support and contributions to the community.
- ms-swift Project: https://github.com/modelscope/ms-swift.git
If you find our work (Game-RL) useful, we would appreciate it if you could cite our work:
@misc{tong2025gamerlsynthesizingmultimodalverifiable,
title={Game-RL: Synthesizing Multimodal Verifiable Game Data to Boost VLMs' General Reasoning},
author={Jingqi Tong and Jixin Tang and Hangcheng Li and Yurong Mou and Ming Zhang and Jun Zhao and Yanbo Wen and Fan Song and Jiahao Zhan and Yuyang Lu and Chaoran Tao and Zhiyuan Guo and Jizhou Yu and Tianhao Cheng and Zhiheng Xi and Changhao Jiang and Zhangyue Yin and Yining Zheng and Weifeng Ge and Guanhua Chen and Tao Gui and Xipeng Qiu and Qi Zhang and Xuanjing Huang},
year={2025},
eprint={2505.13886},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2505.13886},
}





