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

SWE-MiniSandbox:用于构建软件工程智能体的无容器强化学习

SWE-MiniSandbox: Container-Free Reinforcement Learning for Building Software Engineering Agents

University of Science and Technology of China(中国科学技术大学)

Danlong Yuan, Wei Wu, Enhan Zhao, Zhengren Wang, Xueliang Zhao, Huishuai Zhang, Dongyan Zhao

AI总结:

提出SWE-MiniSandbox,一种轻量级无容器方法,通过内核级隔离和预缓存技术降低磁盘使用和准备时间,实现可扩展的强化学习训练。

摘要:

强化学习已成为训练软件工程智能体的关键范式,但现有流程通常依赖每个任务的容器进行隔离。在大规模场景下,预构建的容器镜像会带来显著的存储开销、缓慢的环境设置,并且需要容器管理权限。我们提出SWE-MiniSandbox,一种轻量级、无容器的方法,能够在无需牺牲隔离性的情况下实现SWE智能体的可扩展强化学习训练。SWE-MiniSandbox不依赖每个实例的容器,而是在由内核级机制支持的隔离工作空间中执行每个任务,从而大幅降低系统开销。它利用轻量级环境预缓存技术,消除了对庞大容器镜像的需求。因此,我们的方法将磁盘使用量降低到基于容器的流程所需的大约5%,并将环境准备时间缩短到容器基线的大约25%。实验结果表明,SWE-MiniSandbox实现了与标准基于容器的流程相当的评估性能。通过消除对重型容器基础设施的依赖,SWE-MiniSandbox为扩展基于强化学习的SWE智能体提供了一个实用且可访问的基础,特别是在资源受限的研究环境中。

英文摘要:

Reinforcement learning (RL) has become a key paradigm for training software engineering (SWE) agents, but existing pipelines typically rely on per-task containers for isolation. At scale, pre-built container images incur substantial storage overhead, slow environment setup, and require container-management privileges. We propose SWE-MiniSandbox, a lightweight, container-free method that enables scalable RL training of SWE agents without sacrificing isolation. Instead of relying on per-instance containers, SWE-MiniSandbox executes each task in an isolated workspace backed by kernel-level mechanisms, substantially reducing system overhead. It leverages lightweight environment pre-caching techniques to eliminate the need for bulky container images. As a result, our approach lowers disk usage to approximately 5\% of that required by container-based pipelines and reduces environment preparation time to about 25\% of the container baseline. Empirical results demonstrate that SWE-MiniSandbox achieves evaluation performance comparable to standard container-based pipelines. By removing the dependency on heavy container infrastructure, SWE-MiniSandbox offers a practical and accessible foundation for scaling RL-based SWE agents, particularly in resource-constrained research environments.

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

↑