OSGym: 用于计算机使用代理的可扩展操作系统基础设施
OSGym: Scalable OS Infra for Computer Use Agents
AI总结:
OSGym通过分布式状态管理、硬件感知复制调度、KVM虚拟化与容器池等优化,实现高可扩展性和资源效率,支持千级操作系统副本,降低代理训练成本。
摘要:
训练计算机使用代理需要功能齐全的操作系统沙箱和图形用户界面环境,但随着沙箱数量的增加,硬件资源消耗显著增加。随机错误进一步要求鲁棒的基础设施设计和可靠的错误恢复。我们提出了OSGym,一种用于计算机使用代理的可扩展操作系统环境基础设施,围绕四个关键优化策略:(1)分布式操作系统状态管理,隔离故障到单个副本并显著提高系统可靠性;(2)硬件感知的操作系统副本调度,解决CPU受限的扩展瓶颈并大幅减少计算开销;(3)KVM虚拟化结合写时复制磁盘管理,通过共享可启动磁盘并在虚拟机实例间共享,减少物理磁盘消耗88%并提高磁盘分配速度37倍;(4)具有多层故障恢复的容器池。这些优化共同实现了强可扩展性和资源效率:OSGym在受限资源下管理超过千个操作系统副本,支持每分钟1420个多轮轨迹并行生成,将每个副本成本降低到每天0.2-0.3美元,比标准部署减少90%。我们的实验验证了OSGym在数据收集和训练计算机使用代理的端到端流程中的有效性。我们相信OSGym为可扩展、通用的计算机使用代理研究奠定了新基础。
英文摘要:
Training computer use agents requires full-featured OS sandboxes with GUI environments, which consume substantial hardware resources as the number of sandboxes scales. Stochastic errors arising from diverse software execution within these sandboxes further demand robust infrastructure design and reliable error recovery. We present OSGym, a scalable OS environment infrastructure for computer use agents, built around these key optimization strategies: (1) Decentralized OS state management, which isolates failures to individual replicas and significantly enhances overall system reliability; (2) Hardware-aware OS replica orchestration, which addresses CPU-bounded scaling bottlenecks and substantially reduces compute overhead; (3) KVM virtualization with copy-on-write disk management, which shares a common bootable disk across VM instances and provisions only instance-specific modifications, reducing physical disk consumption by 88% and increasing disk provisioning speed by 37 times; and (4) Robust container pool with multi-layer fault recovery. Together, these optimizations yield strong scalability and resource efficiency: OSGym manages over a thousand OS replicas under constrained resources, supports parallel trajectory generation at 1420 multi-turn trajectories per minute, and reduces per-replica cost to 0.2-0.3 USD per day, a 90% reduction over standard deployment. Our experiments validate OSGym across end-to-end pipelines for data collection and training for computer use agents. We believe OSGym establishes a new foundation for scalable, general-purpose computer use agent research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。