Computer-use agent learning improved with shared runtimes and less memory
CUA-Sandbox: Efficient Environments for Computer-Use Agent Reinforcement Learning
Artificial Intelligence
Summary
Training agents to use software by trial and error often needs separate copies of the software, which takes a lot of memory and time. The authors noticed that while agents need separate states to learn independently, they can share the starting version of the software. They built a system called CUA-Sandbox that lets many learning runs share the same software copy but keep separate states. This approach runs training much faster and uses far less memory and storage without losing quality.
What this means in practice
- •For ai developers: Speed up training of agents that learn to use software by sharing initialized runtimes instead of duplicating them.
- •For automated software testers: Create scalable testing environments that reduce memory and storage needs by separating state from shared software instances.
Authors
Xin Yan, Zhengbo Jiao, Jiaqi Liu, Zhenglin Wan, SiYuan Ma, Xuliang Yu, Tianyi Jiang, Chubin Zhang, Pengfei Zhou, Wangbo Zhao, Xingrui Yu, Bo An, Yang You, Ivor Tsang
Abstract
Reinforcement learning enables computer-use agents to improve through interaction with real software environments, including websites and desktop applications. However, conventional deployments replicate an initialized runtime for each independent rollout, even when trajectories use the same software, incurring repeated memory and initialization costs as the number of parallel environments grows. Does an independent computer-use environment require an independent execution runtime? Our key observation is that trajectories require independent mutable state, while initialized application runtimes can be reused across concurrently evolving environments, making state the natural unit of environment independence. Guided by this observation, we introduce CUA-Sandbox, which separates private state capsules from shared runtimes through state-scoped execution and transactional lifecycle operations, including resets and branches, while retaining the original software interfaces and task evaluators. Experiments show comparable or improved task success relative to Docker, while substantially reducing rollout and resource costs. CUA-Sandbox achieves up to a 6.20x increase in rollout throughput, a 9.2x reduction in per-environment memory, and a 504x reduction in incremental storage.