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
cs.AI
2026-10-15
Alibaba open-sources MAI-Gym: one platform for GUI agent eval and online RL at 20,000 parallel envs; its 9B agent hits 78.4% on MobileWorld, best among open sub-10B models.
Online RL with verifiable rewards works for math, coding, and tool use because those environments are cheap to run and easy to check. GUI agents have none of that. Each attempt needs its own phone, desktop VM, or browser session reset to an exact initial state, and a real training run keeps thousands alive at once. Evaluation and training also tend to grow separate agent implementations that drift apart, so a reported score may reflect the harness as much as the model. Tasks are the second bottleneck: benchmarks ship a few hundred hand-written tasks that RL consumes quickly, and real apps involving payments or orders cannot absorb unlimited practice. Existing open gyms cover one side each, either a single platform at hundreds of parallel environments, or curated tasks without training code.
MAI-Gym routes evaluation, data collection, and online RL through one rollout path and one agent harness, the glue code that builds context, calls the policy, and executes actions. A fix to the harness reaches all three workloads at once.
The main recipe is GRPO with policy-adaptive task sampling: tasks the policy always or never solves get small recheck budgets, while rollouts concentrate on tasks it sometimes solves, the only ones that produce gradient.
MAI-Gym-9B starts from Qwen3.5-9B, gets an SFT warm-up, then one joint RL run over 5,000 synthesized mobile and computer tasks (512 GPUs, about 96 hours, peak 20,000 concurrent environments). None of the evaluation tasks appear in training.
| Benchmark | MAI-Gym-9B | Comparison |
| MobileWorld | 78.4% | UI-Venus-2-9B 75.2; Opus 4.8 69.2; GPT-5.5 62.4 |
| OSWorld-Verified | 76.2% | UI-Venus-2-9B 70.8; GPT-5.5 78.7; GUI-Owl-1.5-32B 56.5 |
| AndroidWorld (unseen env) | 75.9% | UI-Venus-2-9B 80.2 |
Scaling synthesized tasks from 500 to 5,000 at a fixed rollout budget lifts MobileWorld from 69.2% to 78.4% and OSWorld-Verified from 69.7% to 76.2%. Joint RL also beats training two domain experts and averaging their weights: the best merges reach 76.4 and 74.8, joint training reaches 78.4/76.2.
Two transfer results carry the most weight. RL done only in the 12306 clone lifts success on 52 paired tasks in the real app, tested on a physical phone, from 28.8% to 48.1%. On novel apps, RL raises held-out success from 25.8% to 45.2%, shortens mean trajectories from 33.3 to 16.4 steps, and cuts budget-exhausting attempts from 27 to 5.
For context, SFT provides most of the improvement, taking the Task-OOD average from 29.9 to 66.4, while RL adds the final stretch, raising the Cross average from 44.1 to 50.5. On OSWorld 2.0 the model scores 3.7/11.3, far behind Qwen-CUA's 18.5/48.4.
Before this, a team wanting online RL for GUI agents had to build environments, a harness, a task pool, and a trainer from scratch. MAI-Gym open-sources all four, plus 49 mocked apps, 2,000 execution-tested tasks, and the checkpoint, which makes it the most complete public stack for GUI RL. The shared harness answers a real measurement problem, since harness changes alone move benchmark scores. And the 19.2-point clone-to-real gain is direct evidence that practicing transactions in a mocked app pays off on a physical device, a signal that matters more than the leaderboard position.
The paper concedes two points. Transfer is incomplete: after training, the clone-to-real gap widens from 7.7 to 25.0 points, with 73.1% in the clone but only 48.1% on the real phone. And the evaluate-diagnose-synthesize-retrain loop ran a single round; repeated rounds are not yet evaluated. More concerns from reading: "Task OOD" here means unseen tasks in training environments, since MobileWorld and OSWorld environments do appear in training, and scores drop clearly on genuinely unseen environments. Most baseline numbers come from published reports and leaderboards rather than runs under the same harness, which the paper's own citation about harness sensitivity undercuts. Reproducing the headline run takes 512 GPUs for about four days; open, but not cheap.