arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.39711cs.DCcs.AIcs.LG
收藏

Sandman:在共享Kubernetes上为智能体强化学习构建和操作沙箱

Sandman: A Sandbox Service for Production Agentic Reinforcement Learning

Amazon(亚马逊)

Yiming Yan, Hongyang Wang, Wenbo Chen, Xuan Wang, Yichuan Li, Jingguo Liu, Xian Li, Leo Fan, Chen Qi, Siwei Li, Qianli Wu, Ruochen Wen, Qian Qu, Zheshen Wang, Benoit Dumoulin

AI总结:

本文提出亚马逊的Sandman沙箱服务,在共享Kubernetes上为智能体强化学习工作负载提供沙箱管理,可支持高并发沙箱创建,将开源相关组件。

摘要:

智能体强化学习(RL)通常需要在特定任务环境中进行重复的工具调用。训练作业可能会批量创建数千个此类环境,同时与其他作业共享一个集群。我们提出了Sandman,这是亚马逊构建和运营的用于智能体工具执行与评估的沙箱服务。它在共享Kubernetes上为多个生产级智能体强化学习工作负载提供服务。训练框架提供任务镜像,并在返回的沙箱中使用命令和文件操作。文件和进程会在调用之间持续存在,直到框架释放该环境。Sandman负责创建、就绪状态检查和清理。每个沙箱都是一个Kubernetes Pod,其中有一个小型守护进程挂载到未修改的镜像中。在规模测试中,Sandman维持了11858个并发的小型沙箱。2026年10月,四次生产级SWE-bench Verified训练活动创建了310万个沙箱。我们报告了在处理创建批量任务、准备任务环境、回收废弃沙箱以及在受控条件下运行评估时的设计权衡和运营经验。我们将开源Sandman的守护进程、提供者和池。

英文摘要:

Agentic reinforcement learning (RL) needs stateful environments for tool execution and evaluation. Training jobs request thousands of environments in bursts that can overwhelm shared cluster services, while cancelled or timed-out requests can leave resources running. We present Sandman, a sandbox service built and operated at Amazon for large-scale agentic RL workloads in production on shared Kubernetes. A small daemon mounted into unmodified task images preserves files and processes across calls. Sandman paces creation requests, checks sandbox readiness, and retains cleanup responsibility after callers time out or cancel. Production deployments created 3.1 million sandboxes for 122 coding-agent training runs in two weeks. Peak production concurrency was 11,858 sandboxes. In one 10,000-request multi-client burst, Sandman made half the sandboxes usable in 116 seconds and all in 308 seconds. Full delivery took 44% less time than a tuned configuration of agent-sandbox, an open-source sandbox manager for Kubernetes. Sandman left no sandboxes at client exit. On software-engineering task images, median no-op command latency was 2.0 ms, compared with 14.3 ms for agent-sandbox and 203.5 ms for OpenSandbox. We also measure provisioning costs and sandbox delays within training runs, and report design trade-offs and operational lessons from production use and comparisons with three open-source systems. We will open-source Sandman's daemon, provider and pool.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑