Alibaba's Qwen AI team has developed a novel training system called CUA-Gym that teaches artificial intelligence agents how to interact with real computer interfaces—browsers, applications, files, and more—at scale. This marks a significant step toward truly autonomous AI agents capable of performing tasks on behalf of users.
The system uses reinforcement learning with verifiable rewards (RLVR), a technique that has driven breakthroughs in math, tool use, and software engineering but has been difficult to apply to computer-use agents due to the lack of scalable training data with deterministic rewards. To overcome this, the researchers designed a pipeline that co-generates task instructions, environment states, and reward functions.
A Generator agent creates initial and golden environment states, while a separate Discriminator agent writes the reward function based on the task specification. An orchestrator agent drives iterative rounds of improvement. The generated tuples then pass through a final filter combining LLM majority voting and agent rollouts to ensure quality.
To address the scarcity of training environments, the team synthesized CUA-Gym-Hub, a broad suite of high-fidelity mock web applications grounded in real-world software-use distributions. This expanded the scale of CUA RLVR data by an order of magnitude.
Using this pipeline, the researchers constructed a dataset of 32,112 verified RLVR training tuples grounded in 110 environments. When trained with Group-Successive Policy Optimization (GSPO), their models—CUA-Gym-A3B (3 billion parameters) and CUA-Gym-A17B (17 billion parameters)—achieved 62.1% and 72.6% on the OSWorld-Verified benchmark, outperforming prior open-source computer-use agents at comparable scales. Performance scaled smoothly with both data volume and environment diversity.
Notably, the same checkpoints also improved on the held-out WebArena benchmark, indicating that the training transfers well beyond the training environments. The team plans to open-source the full synthesis pipeline, dataset, CUA-Gym-Hub environments, and models.