Manuscript Offprint

arXiv:2610.20939

MAI-Gym: An Open All-in-One Platform for GUI Agent Evaluation and RL Training across Mobile and Computer Environments

Panrong Tong, Quyu Kong, Pengxiang Li, Tianyu Xia, Hanzhang Zhou, Lei Wang, Chenglin Cai, Long Li, Long Chen, Jianan Zhang, Zhengwen Zeng, Xu Zhang, Gongjie Zhang, Yue Wang, Steven Hoi

Abstract

Online reinforcement learning (RL) with verifiable rewards has driven rapid progress in mathematics, coding, and tool use, but scaling this success to GUI agents remains challenging due to the high cost of interactive environments and the scarcity of realistic training tasks. We introduce MAI-Gym, an open all-in-one platform that unifies GUI agent evaluation, data collection, and online RL training across mobile, computer, and web environments. Through a shared rollout pipeline, MAI-Gym ensures consistent agent behavior across evaluation and training, supports ten established benchmarks, and scales to 20,000 parallel environment instances. Beyond scalable infrastructure, MAI-Gym enables automated synthesis of diverse GUI applications and challenging tasks, including resettable mocked apps and coherent cross-app worlds with execution-validated task verifiers. Using MAI-Gym, we train MAI-Gym-9B, a unified 9B agent for mobile and computer use, achieving state-of-the-art performance among open GUI agents under 10B parameters: 78.4% on MobileWorld and 76.2% on OSWorld-Verified. Importantly, RL in a mocked train-ticketing app transfers to its real-world counterpart, improving task success on a physical phone from 28.8% to 48.1%. We release the framework, synthesis skills, mocked apps, 2,000 verified tasks, and the model checkpoint to support reproducible research and further advances in scalable GUI agent training.

Online Environments

Mobile

Figure

MobileWorld

Computer

AndroidWorld

MobileGym

Mocked App

Screenshot

Batched

actions

MAI-Gym

01

One-command Evaluation

10 GUI benchmarks

02

Parallel Rollouts

20K parallel envs.

03

Agentic RL Training

2K open executable tasks

6 algos. · GRPO / SAO / ...

04

Adaptive Task/Env. Synth.

Weaknesses New tasks New envs.

MobileWorld

Figure

OSWorld-Verified

Figure 1: Overview of MAI-Gym. Left: online GUI environments. Center: core capabilities. Bottom: the evaluation–diagnosis–synthesis–retraining loop. Right: performance comparison of MAI-Gym-9B with models of different sizes on MobileWorld and OSWorld-Verified.

*MAI-UI Team. MAI-GYM was used to train Qwen-UI-Agent [1]. See Contributions for the full author list.

Contents

1 Introduction 3

2 Preliminaries 5
2.1 Executable Tasks in GUI Agents 5
2.2 Agent Harness and Action Space 5
2.3 Online Agentic RL 6

3 MAI-Gym 6
3.1 System Architecture 6
3.2 Scalable and Efficient Rollouts 7
3.3 Evaluation and Diagnostics 9
3.4 Synthesizing Environments and Tasks 10
3.4.1 Environment Synthesis 10
3.4.2 Cross-App World Construction 11
3.4.3 Task and Verifier Synthesis 12
3.5 Online RL Training 12

4 Experiments 13
4.1 Experimental Settings 13
4.2 Main Results 14
4.3 Analysis 16
4.3.1 Infrastructure Runs Efficiently at Scale 17
4.3.2 Joint RL Beats Expert Merging 17
4.3.3 Scaling Synthesized Tasks Improves Generalization 17
4.3.4 Clone Training Transfers to the Real App 18
4.3.5 Agents Learn Unfamiliar Apps from Reward 18
4.3.6 Comparing GRPO and SAO 19

5 Related Work 19

6 Conclusion 20

7 Contributions 21

A Appendix 27
A.1 The MAI-Gym Dashboard 27
A.2 Gym Interface and Environment Contract 27
A.3 Action Space 27
A.4 Hyperparameters 28
A.5 Training Configuration 29
A.6 Synthesized Task Examples 30
A.7 Mocked Apps 30
A.7.1 Real-World Clones 30
A.7.2 Novel Apps 31

References (59)